Skip to content

Commit 1a4d588

Browse files
authored
[TableGen] Add missing $ before the dag operator name (#140969)
This way the dump output is roundtripable.
1 parent d0acddb commit 1a4d588

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/TableGen/Record.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2786,7 +2786,7 @@ bool DagInit::isConcrete() const {
27862786
std::string DagInit::getAsString() const {
27872787
std::string Result = "(" + Val->getAsString();
27882788
if (ValName)
2789-
Result += ":" + ValName->getAsUnquotedString();
2789+
Result += ":$" + ValName->getAsUnquotedString();
27902790
if (!arg_empty()) {
27912791
Result += " ";
27922792
ListSeparator LS;

llvm/test/TableGen/usevalname.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ multiclass shuffle<Reg RC> {
2020
RC:$src1, RC:$src2))]>;
2121
}
2222

23-
// CHECK: shufp:src3
23+
// CHECK: shufp:$src3
2424
defm ADD : shuffle<VR128>;

0 commit comments

Comments
 (0)