[clang] [CIR] Add inline function attributes (PR #162866)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 10 11:48:46 PDT 2025


================
@@ -1885,6 +1885,87 @@ void CIRGenModule::setFunctionAttributes(GlobalDecl globalDecl,
   }
 }
 
+void CIRGenModule::setCIRFunctionAttributesForDefinition(
+    const clang::FunctionDecl *decl, cir::FuncOp f) {
+  assert(!cir::MissingFeatures::opFuncUnwindTablesAttr());
+  assert(!cir::MissingFeatures::stackProtector());
+
+  auto existingInlineKind = f.getInlineKind();
----------------
andykaylor wrote:

No auto here

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


More information about the cfe-commits mailing list