[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
================
@@ -1623,6 +1624,12 @@ mlir::LogicalResult CIRToLLVMFuncOpLowering::matchAndRewrite(
assert(!cir::MissingFeatures::opFuncMultipleReturnVals());
+ // Add inline_kind attribute with "cir." prefix so amendOperation handles it
+ if (auto inlineKind = op.getInlineKind()) {
----------------
andykaylor wrote:
Why not just set the `no_inline`, `always_inline`, or `inline_hint` attribute here? It looks like LLVMFuncOp doesn't have an `inline_hint` attribute at the moment, but that should be fixed.
https://github.com/llvm/llvm-project/pull/162866
More information about the cfe-commits
mailing list