aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-01 06:59:22 +0000
committerChris Lattner <sabre@nondot.org>2010-03-01 06:59:22 +0000
commiteb66921adb943ea841e72c8eee4777607c48b70e (patch)
tree3fdd7526a69161b2a068815424b87456b8f442cc /include
parentc99b5a25bb7ea5ed14e242d16dbfd683dba68f4a (diff)
downloadexternal_llvm-eb66921adb943ea841e72c8eee4777607c48b70e.zip
external_llvm-eb66921adb943ea841e72c8eee4777607c48b70e.tar.gz
external_llvm-eb66921adb943ea841e72c8eee4777607c48b70e.tar.bz2
add a new OPC_SwitchOpcode which is semantically equivalent
to a scope where every child starts with a CheckOpcode, but executes more efficiently. Enhance DAGISelMatcherOpt to form it. This also fixes a bug in CheckOpcode: apparently the SDNodeInfo objects are not pointer comparable, we have to compare the enum name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index 2a0341c..0e856a1 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -112,6 +112,7 @@ public:
OPC_CheckPatternPredicate,
OPC_CheckPredicate,
OPC_CheckOpcode,
+ OPC_SwitchOpcode,
OPC_CheckMultiOpcode,
OPC_CheckType,
OPC_CheckChild0Type, OPC_CheckChild1Type, OPC_CheckChild2Type,