[Mlir-commits] [clang] [mlir] [CIR] Implement 'noreturn' attribute for functions/calls. (PR #177978)
Andy Kaylor
llvmlistbot at llvm.org
Mon Jan 26 15:49:43 PST 2026
================
@@ -39,6 +39,7 @@ def CIR_Dialect : Dialect {
static llvm::StringRef getOptInfoAttrName() { return "cir.opt_info"; }
static llvm::StringRef getCalleeAttrName() { return "callee"; }
static llvm::StringRef getNoThrowAttrName() { return "nothrow"; }
+ static llvm::StringRef getNoReturnAttrName() { return "no_return"; }
----------------
andykaylor wrote:
We should standardize on whether we want to match the corresponding LLVM IR attribute names or not. It seems we did for `nothrow`. It looks like the LLVM dialect uses the underscore, so I guess it makes sense for CIR to follow that example.
https://github.com/llvm/llvm-project/pull/177978
More information about the Mlir-commits
mailing list