diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-22 00:20:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-22 00:20:26 +0000 |
commit | 22bb31103de3337f0bb74c7bee16d1817d4dca14 (patch) | |
tree | 6b3248d4c091d2b5b82e3ce2e55ddcf2b8495ee6 /utils/TableGen/CodeGenDAGPatterns.h | |
parent | a6211d9e83dfce3f8e3109af0d4b9a8e6647eedf (diff) | |
download | llvm-22bb31103de3337f0bb74c7bee16d1817d4dca14.tar.gz llvm-22bb31103de3337f0bb74c7bee16d1817d4dca14.tar.bz2 llvm-22bb31103de3337f0bb74c7bee16d1817d4dca14.tar.xz |
Factor out the predicate check code from DAGISelEmitter.cpp
and use it in FastISelEmitter.cpp, and make FastISel
subtarget aware. Among other things, this lets it work
properly on x86 targets that don't have SSE, where it
successfully selects x87 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenDAGPatterns.h')
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index 4434cf0c1c..4d7ea58b06 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -444,6 +444,8 @@ struct PatternToMatch { TreePatternNode *getDstPattern() const { return DstPattern; } const std::vector<Record*> &getDstRegs() const { return Dstregs; } unsigned getAddedComplexity() const { return AddedComplexity; } + + std::string getPredicateCheck() const; }; |