[llvm] [TTI][Inline] Define inlining behavior in SubtargetFeature (PR #205348)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 02:31:47 PDT 2026
================
@@ -522,11 +522,25 @@ class DwarfRegAlias<Register reg> {
Register DwarfAlias = reg;
}
+// Determine whether inlining is allowed if caller and callee differ in whether
+// a feature is enabled.
+class InlineBehavior;
+
+// Arbitrary differences are allowed.
+def InlineIgnore : InlineBehavior;
+// Allow caller to enable feature even if callee does not.
+// (InlineDefault caller features are a superset of callee features.)
+def InlineDefault : InlineBehavior;
----------------
nikic wrote:
Yeah, that makes sense. I've adopted your wording.
https://github.com/llvm/llvm-project/pull/205348
More information about the llvm-commits
mailing list