[llvm] 0274ed9 - TableGen/GlobalISel: Fix slightly wrong generated comment
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 07:29:42 PST 2020
Author: Matt Arsenault
Date: 2020-01-09T10:29:31-05:00
New Revision: 0274ed9dc75a0efb2b6130122226ee45f7e57dde
URL: https://github.com/llvm/llvm-project/commit/0274ed9dc75a0efb2b6130122226ee45f7e57dde
DIFF: https://github.com/llvm/llvm-project/commit/0274ed9dc75a0efb2b6130122226ee45f7e57dde.diff
LOG: TableGen/GlobalISel: Fix slightly wrong generated comment
Added:
Modified:
llvm/test/TableGen/GlobalISelEmitter.td
llvm/utils/TableGen/GlobalISelEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/test/TableGen/GlobalISelEmitter.td b/llvm/test/TableGen/GlobalISelEmitter.td
index 41c825950ca2..59816497cc93 100644
--- a/llvm/test/TableGen/GlobalISelEmitter.td
+++ b/llvm/test/TableGen/GlobalISelEmitter.td
@@ -210,7 +210,7 @@ def HasC : Predicate<"Subtarget->hasC()"> { let RecomputePerFunction = 1; }
// CHECK-NEXT: };
// CHECK-NEXT: MyTargetInstructionSelector::CustomRendererFn
// CHECK-NEXT: MyTargetInstructionSelector::CustomRenderers[] = {
-// CHECK-NEXT: nullptr, // GICP_Invalid
+// CHECK-NEXT: nullptr, // GICR_Invalid
// CHECK-NEXT: &MyTargetInstructionSelector::renderImm8, // gi_cimm8
// CHECK-NEXT: };
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp
index b2e3903eda8b..99b067d5b527 100644
--- a/llvm/utils/TableGen/GlobalISelEmitter.cpp
+++ b/llvm/utils/TableGen/GlobalISelEmitter.cpp
@@ -5283,7 +5283,7 @@ void GlobalISelEmitter::run(raw_ostream &OS) {
OS << Target.getName() << "InstructionSelector::CustomRendererFn\n"
<< Target.getName() << "InstructionSelector::CustomRenderers[] = {\n"
- << " nullptr, // GICP_Invalid\n";
+ << " nullptr, // GICR_Invalid\n";
for (const auto &Record : CustomRendererFns)
OS << " &" << Target.getName()
<< "InstructionSelector::" << Record->getValueAsString("RendererFn")
More information about the llvm-commits
mailing list