Skip to content

Commit 2641525

Browse files
committed
[hexagon] Add {con,de}structive interference size defn
This support was originally added in 72c373b ([C++17] Support __GCC_[CON|DE]STRUCTIVE_SIZE (llvm#89446), 2024-04-26). We're overriding the values for Hexagon here. Signed-off-by: Brian Cain <[email protected]>
1 parent dcb71c0 commit 2641525

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Basic/Targets/Hexagon.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ class LLVM_LIBRARY_VISIBILITY HexagonTargetInfo : public TargetInfo {
139139
}
140140

141141
bool hasBitIntType() const override { return true; }
142+
143+
std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
144+
return std::make_pair(32, 32);
145+
}
142146
};
143147
} // namespace targets
144148
} // namespace clang

0 commit comments

Comments
 (0)