diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-16 06:10:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-16 06:10:58 +0000 |
commit | e39650a805425ffdbd79692c7d1bad80f7332dae (patch) | |
tree | 8f37117cb54641819bccacc5809ef98d6c0f6dd2 /utils/TableGen/DAGISelMatcherEmitter.cpp | |
parent | a08b587494a09a94a72245dd9d7088564e511f4e (diff) | |
download | external_llvm-e39650a805425ffdbd79692c7d1bad80f7332dae.zip external_llvm-e39650a805425ffdbd79692c7d1bad80f7332dae.tar.gz external_llvm-e39650a805425ffdbd79692c7d1bad80f7332dae.tar.bz2 |
add support for the new isel matcher to generate
(isprofitable|islegal)tofold checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcherEmitter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index 1a41713..ee838d0 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -151,6 +151,12 @@ static unsigned EmitMatcher(const MatcherNode *N, formatted_raw_ostream &OS, OS << "OPC_CheckOrImm" << ClassifyInt(Val) << ", "; return EmitInt(Val, OS)+1; } + case MatcherNode::CheckProfitableToFold: + OS << "OPC_IsProfitableToFold,\n"; + return 1; + case MatcherNode::CheckLegalToFold: + OS << "OPC_IsLegalToFold,\n"; + return 1; } assert(0 && "Unreachable"); return 0; |