[llvm-branch-commits] [llvm] [TableGen][AsmMatcher] Support generated register coercion logic (PR #241022)
Craig Topper via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 12 13:46:36 PST 2026
================
@@ -2184,20 +2235,30 @@ emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
const MatchableInfo::AsmOperand &Op =
II->AsmOperands[OpInfo.AsmOperandNum];
+ const Record *RegClass = Op.getRegClass();
+ bool HasRegCoercion =
+ RegClass && Info.RegConversions.contains(RegClass);
// Registers are always converted the same, don't duplicate the
----------------
topperc wrote:
Maybe this should be "Registers are always converted the same unless they need to be coerced, don't duplicate the conversion function based on them."
https://github.com/llvm/llvm-project/pull/241022
More information about the llvm-branch-commits
mailing list