[clang] [CIR] Emit no-trapping-math and stack-protector-buffer-size function attribute (PR #234029)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 17:09:30 PST 2026
================
@@ -3270,6 +3271,21 @@ mlir::LogicalResult CIRToLLVMFuncOpLowering::matchAndRewrite(
passthrough.push_back(rewriter.getArrayAttr(
{rewriter.getStringAttr(dontCallAttr), diagnostic}));
+ // Every function but a runtime function gets the TU-wide default function
+ // attributes.
+ if (!op->hasAttr(CIRDialect::getRuntimeFuncAttrName())) {
----------------
andykaylor wrote:
This seems a bit late to be adding these. Won't they be useful during MLIR optimization?
https://github.com/llvm/llvm-project/pull/234029
More information about the cfe-commits
mailing list