[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
================
@@ -1720,6 +1720,22 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, OperationState &state) {
hasAlias = true;
}
+ // Parse optional inline attribute: inline_never, inline_always, or
+ // inline_hint
+ if (parser.parseOptionalKeyword("inline_never").succeeded()) {
----------------
andykaylor wrote:
I think it would be better if this we represented as `inline([always|never|hint])` so that we could more easily enforce only having one of them present.
https://github.com/llvm/llvm-project/pull/162866
More information about the cfe-commits
mailing list