diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-06 01:20:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-06 01:20:13 +0000 |
commit | ef8339b11a0180c6df6ade4e9f4fd75a76ebc419 (patch) | |
tree | bed819ddd9b8f1f760849f64f82a47653fbaaa7d /utils/TableGen/InstrInfoEmitter.h | |
parent | 951740afb41bbae2c8b034bab1911c9ec949ccf4 (diff) | |
download | llvm-ef8339b11a0180c6df6ade4e9f4fd75a76ebc419.tar.gz llvm-ef8339b11a0180c6df6ade4e9f4fd75a76ebc419.tar.bz2 llvm-ef8339b11a0180c6df6ade4e9f4fd75a76ebc419.tar.xz |
further simplifications and cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.h')
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.h b/utils/TableGen/InstrInfoEmitter.h index 5893d4473b..b6d02459a5 100644 --- a/utils/TableGen/InstrInfoEmitter.h +++ b/utils/TableGen/InstrInfoEmitter.h @@ -39,18 +39,24 @@ public: void run(std::ostream &OS); 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, - std::map<std::vector<std::string>, unsigned> &OpInfo, + const OperandInfoMapTy &OpInfo, std::ostream &OS); + void GatherItinClasses(); unsigned getItinClassNumber(const Record *InstRec); + + 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); - std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst); }; } // End llvm namespace |