diff options
| author | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-07-06 10:37:17 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-07-06 10:37:17 +0000 |
| commit | 3ae33209cc6b3fca126af66b88f5463e8734971f (patch) | |
| tree | 942ab5df68082778adb52b32fb9562c20e8c5efb | |
| parent | 7528d4bd4294ed5fb42de0883b112e986b3f98dd (diff) | |
| download | bcm5719-llvm-3ae33209cc6b3fca126af66b88f5463e8734971f.tar.gz bcm5719-llvm-3ae33209cc6b3fca126af66b88f5463e8734971f.zip | |
[globalisel][tablegen] Rename and re-comment render functions to match the new MatchTables. NFC.
The conversion to MatchTable left the function names and comments referring to
C++ statements and expressions. Updated the names and comments to account for
the fact that they're no longer unconstrained statements/expressions.
llvm-svn: 307248
| -rw-r--r-- | llvm/utils/TableGen/GlobalISelEmitter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp index 15184c78ef1..ef65317c739 100644 --- a/llvm/utils/TableGen/GlobalISelEmitter.cpp +++ b/llvm/utils/TableGen/GlobalISelEmitter.cpp @@ -899,7 +899,7 @@ public: RendererKind getKind() const { return Kind; } - virtual void emitCxxRenderStmts(raw_ostream &OS, RuleMatcher &Rule) const = 0; + virtual void emitRenderOpcodes(raw_ostream &OS, RuleMatcher &Rule) const = 0; }; /// A CopyRenderer emits code to copy a single operand from an existing @@ -926,7 +926,7 @@ public: const StringRef getSymbolicName() const { return SymbolicName; } - void emitCxxRenderStmts(raw_ostream &OS, RuleMatcher &Rule) const override { + void emitRenderOpcodes(raw_ostream &OS, RuleMatcher &Rule) const override { const OperandMatcher &Operand = Matched.getOperand(SymbolicName); unsigned OldInsnVarID = Rule.getInsnVarID(Operand.getInstructionMatcher()); OS << " GIR_Copy, /*NewInsnID*/" << NewInsnID << ", /*OldInsnID*/" @@ -962,7 +962,7 @@ public: const StringRef getSymbolicName() const { return SymbolicName; } - void emitCxxRenderStmts(raw_ostream &OS, RuleMatcher &Rule) const override { + void emitRenderOpcodes(raw_ostream &OS, RuleMatcher &Rule) const override { const OperandMatcher &Operand = Matched.getOperand(SymbolicName); unsigned OldInsnVarID = Rule.getInsnVarID(Operand.getInstructionMatcher()); OS << " GIR_CopySubReg, /*NewInsnID*/" << NewInsnID @@ -988,7 +988,7 @@ public: return R->getKind() == OR_Register; } - void emitCxxRenderStmts(raw_ostream &OS, RuleMatcher &Rule) const override { + void emitRenderOpcodes(raw_ostream &OS, RuleMatcher &Rule) const override { OS << " GIR_AddRegister, /*InsnID*/" << InsnID << ", " << (RegisterDef->getValue("Namespace") ? RegisterDef->getValueAsString("Namespace") @@ -1011,7 +1011,7 @@ public: return R->getKind() == OR_Imm; } - void emitCxxRenderStmts(raw_ostream &OS, RuleMatcher &Rule) const override { + void emitRenderOpcodes(raw_ostream &OS, RuleMatcher &Rule) const override { OS << " GIR_AddImm, /*InsnID*/" << InsnID << ", /*Imm*/" << Imm << ",\n"; } @@ -1043,7 +1043,7 @@ public: return R->getKind() == OR_ComplexPattern; } - void emitCxxRenderStmts(raw_ostream &OS, RuleMatcher &Rule) const override { + void emitRenderOpcodes(raw_ostream &OS, RuleMatcher &Rule) const override { OS << " GIR_ComplexRenderer, /*InsnID*/" << InsnID << ", /*RendererID*/" << RendererID << ",\n"; } @@ -1153,7 +1153,7 @@ public: OS << " GIR_BuildMI, /*InsnID*/" << InsnID << ", /*Opcode*/" << I->Namespace << "::" << I->TheDef->getName() << ",\n"; for (const auto &Renderer : OperandRenderers) - Renderer->emitCxxRenderStmts(OS, Rule); + Renderer->emitRenderOpcodes(OS, Rule); OS << " GIR_MergeMemOperands, /*InsnID*/" << InsnID << ",\n" << " GIR_EraseFromParent, /*InsnID*/" << RecycleInsnID << ",\n"; |

