[clang] [llvm] Implement operand bundles for floating-point operations (PR #109798)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 15:18:38 PDT 2024


================
@@ -357,6 +357,9 @@ class IRBuilderBase {
 
   void setConstrainedFPCallAttr(CallBase *I) {
     I->addFnAttr(Attribute::StrictFP);
+    MemoryEffects ME = MemoryEffects::inaccessibleMemOnly();
----------------
andykaylor wrote:

>From the LangRef "Calls and invokes with operand bundles have unknown read / write effect on the heap on entry and exit (even if the call target specifies a memory attribute), unless they’re overridden with callsite specific attributes." I assumed that's why the callsite attribute is being set here.

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


More information about the cfe-commits mailing list