DAGCombinerInformation: add a getter that exposes the dagcombine level.
authorNadav Rotem <nrotem@apple.com>
Thu, 27 Dec 2012 08:44:35 +0000 (08:44 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 27 Dec 2012 08:44:35 +0000 (08:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171152 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index d6445006833f2a4df1569a3fdc24d68410d87933..0a49fae6216da2f06ca20f7cc70318b273623f93 100644 (file)
@@ -977,6 +977,7 @@ public:
     bool isAfterLegalizeVectorOps() const {
       return Level == AfterLegalizeDAG;
     }
+    CombineLevel getDAGCombineLevel() { return Level; }
     bool isCalledByLegalizer() const { return CalledByLegalizer; }
 
     void AddToWorklist(SDNode *N);