[clang] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 01:43:48 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Hood Chatham (hoodmane)
<details>
<summary>Changes</summary>
See suggestion here:
https://github.com/llvm/llvm-project/pull/150201#discussion_r2237982637
---
Full diff: https://github.com/llvm/llvm-project/pull/151107.diff
1 Files Affected:
- (modified) clang/lib/Basic/Targets/WebAssembly.cpp (+1)
``````````diff
diff --git a/clang/lib/Basic/Targets/WebAssembly.cpp b/clang/lib/Basic/Targets/WebAssembly.cpp
index e362350ea678f..2ea505874e38b 100644
--- a/clang/lib/Basic/Targets/WebAssembly.cpp
+++ b/clang/lib/Basic/Targets/WebAssembly.cpp
@@ -197,6 +197,7 @@ bool WebAssemblyTargetInfo::initFeatureMap(
Features["multimemory"] = true;
Features["tail-call"] = true;
Features["wide-arithmetic"] = true;
+ Features["gc"] = true;
setSIMDLevel(Features, RelaxedSIMD, true);
};
if (CPU == "generic") {
``````````
</details>
https://github.com/llvm/llvm-project/pull/151107
More information about the cfe-commits
mailing list