summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrSelectorEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-07 06:02:15 +0000
committerChris Lattner <sabre@nondot.org>2003-08-07 06:02:15 +0000
commitbc659ddb85e8c1f6f20165b4df0caa1c149414f3 (patch)
tree6ec3c9202a2f667ca9968cfdc642d8d646b0e5f5 /utils/TableGen/InstrSelectorEmitter.h
parent54c66feed926f6cdaf544895f78b5bb1ead6f0ea (diff)
downloadllvm-bc659ddb85e8c1f6f20165b4df0caa1c149414f3.tar.gz
llvm-bc659ddb85e8c1f6f20165b4df0caa1c149414f3.tar.bz2
llvm-bc659ddb85e8c1f6f20165b4df0caa1c149414f3.tar.xz
Finish implementation of the type inference engine.
Start working on reading in nonterminals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrSelectorEmitter.h')
-rw-r--r--utils/TableGen/InstrSelectorEmitter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/TableGen/InstrSelectorEmitter.h b/utils/TableGen/InstrSelectorEmitter.h
index dc16fb20f4..108aeee20c 100644
--- a/utils/TableGen/InstrSelectorEmitter.h
+++ b/utils/TableGen/InstrSelectorEmitter.h
@@ -9,7 +9,7 @@
#define INSTRSELECTOR_EMITTER_H
#include "TableGenBackend.h"
-#include "llvm/CodeGen/ValueTypes.h"
+#include "CodeGenWrappers.h"
#include <vector>
#include <map>
class DagInit;
@@ -82,6 +82,7 @@ std::ostream &operator<<(std::ostream &OS, const TreePatternNode &N);
class InstrSelectorEmitter : public TableGenBackend {
RecordKeeper &Records;
+ CodeGenTarget Target;
std::map<Record*, NodeType> NodeTypes;
public:
@@ -96,6 +97,10 @@ private:
// structure.
void ProcessNodeTypes();
+ // ProcessNonTerminals - Read in all nonterminals and incorporate them into
+ // our pattern database.
+ void ProcessNonTerminals();
+
// ProcessInstructionPatterns - Read in all subclasses of Instruction, and
// process those with a useful Pattern field.
void ProcessInstructionPatterns();