[Mlir-commits] [mlir] [MLIR] Add attributes no_unwind and will_return to the LLVMIR dialect (PR #98921)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jul 16 01:08:05 PDT 2024
================
@@ -1438,6 +1438,10 @@ static void convertFunctionAttributes(LLVMFuncOp func,
llvmFunc->addFnAttr(llvm::Attribute::OptimizeNone);
if (func.getConvergentAttr())
llvmFunc->addFnAttr(llvm::Attribute::Convergent);
+ if (func.getNoUnwind())
+ llvmFunc->addFnAttr(llvm::Attribute::NoUnwind);
+ if (func.getWillReturn())
+ llvmFunc->addFnAttr(llvm::Attribute::WillReturn);
----------------
FMarno wrote:
good spot! I've updated that.
https://github.com/llvm/llvm-project/pull/98921
More information about the Mlir-commits
mailing list