Skip to content

Commit a04ae23

Browse files
author
Yuanke Luo
committed
[TableGen] Address Haohai's comments
1 parent 64e6793 commit a04ae23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/test/TableGen/DFAPacketizer.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def Itin {
3131
// CHECK-NEXT: std::begin(TestTargetProcIdToProcResourceIdxTable),
3232
// CHECK-NEXT: std::end(TestTargetProcIdToProcResourceIdxTable), ProcID,
3333
// CHECK-NEXT: [](const unsigned LHS[], unsigned Val) { return LHS[0] < Val; });
34+
// CHECK-NEXT: assert(*It[0] == ProcID);
3435
// CHECK-NEXT: return (*It)[1];
3536
// CHECK-NEXT: }
3637

llvm/utils/TableGen/DFAPacketizerEmitter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ void DFAPacketizerEmitter::emitForItineraries(
284284
<< "ProcIdToProcResourceIdxTable), ProcID,\n"
285285
<< " [](const unsigned LHS[], unsigned Val) { return LHS[0] < Val; "
286286
"});\n"
287+
<< " assert(*It[0] == ProcID);\n"
287288
<< " return (*It)[1];\n"
288289
<< "}\n\n";
289290

0 commit comments

Comments
 (0)