[clang] [hexagon] Add {con, de}structive interference size defn (PR #94877)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 8 17:09:44 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Brian Cain (androm3da)

<details>
<summary>Changes</summary>

This support was originally added in 72c373bfdc98 ([C++17] Support __GCC_[CON|DE]STRUCTIVE_SIZE (#<!-- -->89446), 2024-04-26).  We're overriding the values for Hexagon here.

---
Full diff: https://github.com/llvm/llvm-project/pull/94877.diff


1 Files Affected:

- (modified) clang/lib/Basic/Targets/Hexagon.h (+4) 


``````````diff
diff --git a/clang/lib/Basic/Targets/Hexagon.h b/clang/lib/Basic/Targets/Hexagon.h
index cdb47dbae7999..f5e7a8878f01b 100644
--- a/clang/lib/Basic/Targets/Hexagon.h
+++ b/clang/lib/Basic/Targets/Hexagon.h
@@ -139,6 +139,10 @@ class LLVM_LIBRARY_VISIBILITY HexagonTargetInfo : public TargetInfo {
   }
 
   bool hasBitIntType() const override { return true; }
+
+  std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
+    return std::make_pair(32, 32);
+  }
 };
 } // namespace targets
 } // namespace clang

``````````

</details>


https://github.com/llvm/llvm-project/pull/94877


More information about the cfe-commits mailing list