[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:45:54 PST 2026


================
@@ -665,12 +674,22 @@ cir::FuncOp LoweringPreparePass::buildRuntimeFunction(
         cir::GlobalLinkageKindAttr::get(builder.getContext(), linkage));
     mlir::SymbolTable::setSymbolVisibility(
         f, mlir::SymbolTable::Visibility::Private);
+    f->setAttr(cir::CIRDialect::getRuntimeFuncAttrName(),
+               builder.getUnitAttr());
 
     assert(!cir::MissingFeatures::opFuncExtraAttrs());
   }
   return f;
 }
 
+cir::FuncOp LoweringPreparePass::buildGlobalInitOrCleanUpFunction(
----------------
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