[Mlir-commits] [mlir] [MLIR][FuncToLLVM] Propagate no_inline attribute (PR #143809)

Slava Zakharin llvmlistbot at llvm.org
Thu Jun 12 14:03:49 PDT 2025


================
@@ -381,6 +382,11 @@ mlir::convertFuncOpToLLVMFuncOp(FunctionOpInterface funcOp,
     newFuncOp.setMemoryEffectsAttr(memoryAttr);
   }
 
+  // Propagate no_inline attributes
+  if (funcOp->hasAttr(noInlineAttr)) {
+    newFuncOp->setAttr(noInlineAttr, rewriter.getUnitAttr());
----------------
vzakhari wrote:

I see. Thanks for trying it!

Then this will work for me:
```
newFuncOp->setNoInline(funcOp->hasAttr(noInlineAttr));
```

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


More information about the Mlir-commits mailing list