[clang] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)
Hood Chatham via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 01:43:16 PDT 2025
https://github.com/hoodmane created https://github.com/llvm/llvm-project/pull/151107
See suggestion here:
https://github.com/llvm/llvm-project/pull/150201#discussion_r2237982637
>From bb71b4795d85938772e78de3022d5d58b25d6d20 Mon Sep 17 00:00:00 2001
From: Hood Chatham <roberthoodchatham at gmail.com>
Date: Tue, 29 Jul 2025 10:41:49 +0200
Subject: [PATCH] [WebAssembly] Add gc target feature to
addBleedingEdgeFeatures
https://github.com/llvm/llvm-project/pull/150201#discussion_r2237982637
---
clang/lib/Basic/Targets/WebAssembly.cpp | 1 +
1 file changed, 1 insertion(+)
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") {
More information about the cfe-commits
mailing list