diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-08-26 00:59:04 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-08-26 00:59:04 +0000 |
commit | 676d731c611156cfc515fda96cf97321c2bf4c04 (patch) | |
tree | 55b09a425a9b0bdf1b26a94fd3c2891463c3cc45 /utils/TableGen/DAGISelEmitter.h | |
parent | 8d3e1d66135433a956e1d5216f0d1f981afa51dc (diff) | |
download | external_llvm-676d731c611156cfc515fda96cf97321c2bf4c04.zip external_llvm-676d731c611156cfc515fda96cf97321c2bf4c04.tar.gz external_llvm-676d731c611156cfc515fda96cf97321c2bf4c04.tar.bz2 |
- Clean up tablegen dag isel generator code.
- Clean up the code generated by tablegen:
* AddToISelQueue now takes one argument.
* ComplexPattern matching condition can now be shared.
* Eliminate passing unnecessary arguments to emit routines.
* Eliminate some unneeded SDOperand declarations in select routines.
* Other minor clean ups.
- This reduces foot print slightly: X86ISelDAGToDAG.o is reduced from 971k
to 823k.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.h')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelEmitter.h b/utils/TableGen/DAGISelEmitter.h index b118a1d..340b37c 100644 --- a/utils/TableGen/DAGISelEmitter.h +++ b/utils/TableGen/DAGISelEmitter.h @@ -520,12 +520,12 @@ private: std::vector<Record*> &InstImpInputs, std::vector<Record*> &InstImpResults); void GenerateCodeForPattern(PatternToMatch &Pattern, - std::vector<std::pair<bool, std::string> > &GeneratedCode, + std::vector<std::pair<unsigned, std::string> > &GeneratedCode, std::set<std::pair<unsigned, std::string> > &GeneratedDecl, std::vector<std::string> &TargetOpcodes, std::vector<std::string> &TargetVTs); void EmitPatterns(std::vector<std::pair<PatternToMatch*, - std::vector<std::pair<bool, std::string> > > > &Patterns, + std::vector<std::pair<unsigned, std::string> > > > &Patterns, unsigned Indent, std::ostream &OS); void EmitInstructionSelector(std::ostream &OS); }; |