diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-04-17 22:05:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-04-17 22:05:17 +0000 |
| commit | 7ed1391ff66012e4963081cfb20b6166e8784f50 (patch) | |
| tree | 5daca144fdadefe1c48e3479be81a0a96b35659b /utils/TableGen/CodeGenDAGPatterns.h | |
| parent | 543790673c747ab2793fc657e239ce5f78419dc0 (diff) | |
now that predicates have a decent abstraction layer on them, introduce a new
kind of predicate: one that is specific to imm nodes. The predicate function
specified here just checks an int64_t directly instead of messing around with
SDNode's. The virtue of this is that it means that fastisel and other things
can reason about these predicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenDAGPatterns.h')
| -rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index 2624495a8d..b113a59e4a 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -249,7 +249,7 @@ class TreePredicateFn { TreePattern *PatFragRec; public: /// TreePredicateFn constructor. Here 'N' is a subclass of PatFrag. - TreePredicateFn(TreePattern *N) : PatFragRec(N) {} + TreePredicateFn(TreePattern *N); TreePattern *getOrigPatFragRecord() const { return PatFragRec; } @@ -276,6 +276,7 @@ public: private: std::string getPredCode() const; + std::string getImmCode() const; }; |
