[clang] [CIR] Emit no-trapping-math and stack-protector-buffer-size function attribute (PR #234029)

Konstantinos Parasyris via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 10:46:04 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())) {
----------------
koparasy wrote:

[c21daab](https://github.com/llvm/llvm-project/pull/234029/commits/c21daabdf9fd84e09f194a14886e3568268ba68f)

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


More information about the cfe-commits mailing list