[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


================
@@ -1801,6 +1817,16 @@ void cir::FuncOp::print(OpAsmPrinter &p) {
     p << ")";
   }
 
+  if (auto inlineKind = getInlineKind()) {
+    if (*inlineKind == cir::InlineKind::NoInline) {
----------------
andykaylor wrote:

Maybe make this a switch so we don't have no potential for newly added cases to fall off the end silently?

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


More information about the cfe-commits mailing list