[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
================
@@ -2218,7 +2279,7 @@ emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
// This is a new operand kind. Add a handler for it to the
// converter driver.
- CvtOS << " case " << Name << ":\n";
+ CvtOS << " case " << Name << ":" << (HasRegCoercion ? " {\n" : "\n");
----------------
topperc wrote:
maybe better to just duplicate the colon into both strings.
```suggestion
CvtOS << " case " << Name << (HasRegCoercion ? ": {\n" : ":\n");
```
https://github.com/llvm/llvm-project/pull/241022
More information about the llvm-branch-commits
mailing list