[TableGen] Add missing $ before the dag operator name (#140969)

This way the dump output is roundtripable.
This commit is contained in:
Adam Nemet
2025-05-22 16:21:19 -07:00
committed by GitHub
parent d0acddbdd6
commit 1a4d588738
2 changed files with 2 additions and 2 deletions

View File

@@ -2786,7 +2786,7 @@ bool DagInit::isConcrete() const {
std::string DagInit::getAsString() const {
std::string Result = "(" + Val->getAsString();
if (ValName)
Result += ":" + ValName->getAsUnquotedString();
Result += ":$" + ValName->getAsUnquotedString();
if (!arg_empty()) {
Result += " ";
ListSeparator LS;

View File

@@ -20,5 +20,5 @@ multiclass shuffle<Reg RC> {
RC:$src1, RC:$src2))]>;
}
// CHECK: shufp:src3
// CHECK: shufp:$src3
defm ADD : shuffle<VR128>;