[clang] [lld] [llvm] [WebAssembly] Define call-indirect-overlong and bulk-memory-opt features (PR #117087)
Dan Gohman via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 17:35:31 PST 2024
================
@@ -79,6 +81,8 @@ void WebAssemblyTargetInfo::getTargetDefines(const LangOptions &Opts,
Builder.defineMacro("__wasm_atomics__");
if (HasBulkMemory)
Builder.defineMacro("__wasm_bulk_memory__");
+ if (HasBulkMemoryOpt)
+ Builder.defineMacro("__wasm_bulk_memory_opt__");
----------------
sunfishcode wrote:
I couldn't think of a reason C/C++ code would need to know about call-indirect overlongs. I'm not opposed to adding it if we think there might be a reason though.
https://github.com/llvm/llvm-project/pull/117087
More information about the cfe-commits
mailing list