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

Slava Zakharin llvmlistbot at llvm.org
Thu Jun 12 09:58:37 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:

```suggestion
  newFuncOp->setNoInline(funcOp->getNoInline());
```

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


More information about the Mlir-commits mailing list