From 49e19e906fd445f8dcc90b6b6d620ade9dc2f7dd Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 22 Aug 2008 00:20:26 +0000 Subject: 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. llvm-svn: 55156 --- llvm/utils/TableGen/CodeGenDAGPatterns.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h') diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index 4434cf0c1c1..4d7ea58b06b 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -444,6 +444,8 @@ struct PatternToMatch { TreePatternNode *getDstPattern() const { return DstPattern; } const std::vector &getDstRegs() const { return Dstregs; } unsigned getAddedComplexity() const { return AddedComplexity; } + + std::string getPredicateCheck() const; }; -- cgit v1.2.3