aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/DAGISelEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-13 21:20:49 +0000
committerChris Lattner <sabre@nondot.org>2005-09-13 21:20:49 +0000
commitee9f0c3c2ea8d32218680488fe030bd19547e8b4 (patch)
tree5025db427895703d47df9159dbd18f7bafe2a013 /utils/TableGen/DAGISelEmitter.h
parent7b738342f0b27b9f7fdcf93f08ebb99fa510ae09 (diff)
downloadexternal_llvm-ee9f0c3c2ea8d32218680488fe030bd19547e8b4.zip
external_llvm-ee9f0c3c2ea8d32218680488fe030bd19547e8b4.tar.gz
external_llvm-ee9f0c3c2ea8d32218680488fe030bd19547e8b4.tar.bz2
completely eliminate TreePattern::PatternType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.h')
-rw-r--r--utils/TableGen/DAGISelEmitter.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/utils/TableGen/DAGISelEmitter.h b/utils/TableGen/DAGISelEmitter.h
index ecca505..6e39a5f 100644
--- a/utils/TableGen/DAGISelEmitter.h
+++ b/utils/TableGen/DAGISelEmitter.h
@@ -190,19 +190,10 @@ namespace llvm {
};
- /// TreePattern - Represent a pattern of one form or another. Currently, two
- /// types of patterns are possible: Instructions and PatFrags.
+ /// TreePattern - Represent a pattern, used for instructions, pattern
+ /// fragments, etc.
///
class TreePattern {
- public:
- enum PatternType {
- PatFrag, Instruction
- };
- private:
- /// PTy - The type of pattern this is.
- ///
- PatternType PTy;
-
/// Trees - The list of pattern trees which corresponds to this pattern.
/// Note that PatFrag's only have a single tree.
///
@@ -223,13 +214,9 @@ namespace llvm {
/// TreePattern constructor - Parse the specified DagInits into the
/// current record.
- TreePattern(PatternType pty, Record *TheRec,
+ TreePattern(Record *TheRec,
const std::vector<DagInit *> &RawPat, DAGISelEmitter &ise);
- /// getPatternType - Return what flavor of Record this pattern originated from
- ///
- PatternType getPatternType() const { return PTy; }
-
/// getTrees - Return the tree patterns which corresponds to this pattern.
///
const std::vector<TreePatternNode*> &getTrees() const { return Trees; }
@@ -250,6 +237,7 @@ namespace llvm {
assert(i < Args.size() && "Argument reference out of range!");
return Args[i];
}
+ std::vector<std::string> &getArgList() { return Args; }
DAGISelEmitter &getDAGISelEmitter() const { return ISE; }