[clang] [lld] [llvm] [WebAssembly] Define call-indirect-overlong and bulk-memory-opt features (PR #117087)

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 17:39:22 PST 2024


================
@@ -34,6 +34,15 @@ WebAssemblySubtarget::initializeSubtargetDependencies(StringRef CPU,
     CPU = "generic";
 
   ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS);
+
+  // reference-types implies call-indirect-overlong
+  if (HasReferenceTypes)
+    HasCallIndirectOverlong = true;
+
+  // bulk-memory implies bulk-memory-opt
+  if (HasBulkMemory)
+    HasBulkMemoryOpt = true;
----------------
sunfishcode wrote:

Nit: the replacement here has trailing whitespace

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


More information about the llvm-commits mailing list