aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-06 01:21:51 +0000
committerChris Lattner <sabre@nondot.org>2008-01-06 01:21:51 +0000
commit4533a721edbf45eaaa3f48003415588efe8cb238 (patch)
tree4f1cb61cece4ec8365799ecb82cf5890bc9a9a9d /utils/TableGen
parent0d58d025879d06e01847af9c96ff6bac7259bd3b (diff)
downloadexternal_llvm-4533a721edbf45eaaa3f48003415588efe8cb238.zip
external_llvm-4533a721edbf45eaaa3f48003415588efe8cb238.tar.gz
external_llvm-4533a721edbf45eaaa3f48003415588efe8cb238.tar.bz2
final cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp8
-rw-r--r--utils/TableGen/InstrInfoEmitter.h9
2 files changed, 8 insertions, 9 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index b406df3..3f2b49f 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -19,8 +19,8 @@
#include <iostream>
using namespace llvm;
-void InstrInfoEmitter::printDefList(const std::vector<Record*> &Uses,
- unsigned Num, std::ostream &OS) const {
+static void PrintDefList(const std::vector<Record*> &Uses,
+ unsigned Num, std::ostream &OS) {
OS << "static const unsigned ImplicitList" << Num << "[] = { ";
for (unsigned i = 0, e = Uses.size(); i != e; ++i)
OS << getQualifiedName(Uses[i]) << ", ";
@@ -163,12 +163,12 @@ void InstrInfoEmitter::run(std::ostream &OS) {
std::vector<Record*> Uses = Inst->getValueAsListOfDefs("Uses");
if (!Uses.empty()) {
unsigned &IL = EmittedLists[Uses];
- if (!IL) printDefList(Uses, IL = ++ListNumber, OS);
+ if (!IL) PrintDefList(Uses, IL = ++ListNumber, OS);
}
std::vector<Record*> Defs = Inst->getValueAsListOfDefs("Defs");
if (!Defs.empty()) {
unsigned &IL = EmittedLists[Defs];
- if (!IL) printDefList(Defs, IL = ++ListNumber, OS);
+ if (!IL) PrintDefList(Defs, IL = ++ListNumber, OS);
}
}
diff --git a/utils/TableGen/InstrInfoEmitter.h b/utils/TableGen/InstrInfoEmitter.h
index b6d0245..2dd3a0f 100644
--- a/utils/TableGen/InstrInfoEmitter.h
+++ b/utils/TableGen/InstrInfoEmitter.h
@@ -41,22 +41,21 @@ public:
private:
typedef std::map<std::vector<std::string>, unsigned> OperandInfoMapTy;
- void printDefList(const std::vector<Record*> &Uses, unsigned Num,
- std::ostream &OS) const;
void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
Record *InstrInfo,
std::map<std::vector<Record*>, unsigned> &EL,
const OperandInfoMapTy &OpInfo,
std::ostream &OS);
+ void emitShiftedValue(Record *R, StringInit *Val, IntInit *Shift,
+ std::ostream &OS);
+ // Itinerary information.
void GatherItinClasses();
unsigned getItinClassNumber(const Record *InstRec);
+ // Operand information.
void EmitOperandInfo(std::ostream &OS, OperandInfoMapTy &OperandInfoIDs);
std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
-
- void emitShiftedValue(Record *R, StringInit *Val, IntInit *Shift,
- std::ostream &OS);
};
} // End llvm namespace