Make LegalizeKind public so that we can use it outside of TargetLowering.
authorNadav Rotem <nrotem@apple.com>
Wed, 24 Oct 2012 20:59:17 +0000 (20:59 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 24 Oct 2012 20:59:17 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166623 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index ad85c7e13ae36522692f9cb22fe6c0115b7e2b28..0dbdd2514098f34274500657c011a56c80085e06 100644 (file)
@@ -103,6 +103,10 @@ public:
     TypeWidenVector      // This vector should be widened into a larger vector.
   };
 
+  /// LegalizeKind holds the legalization kind that needs to happen to EVT
+  /// in order to type-legalize it.
+  typedef std::pair<LegalizeTypeAction, EVT> LegalizeKind;
+
   enum BooleanContent { // How the target represents true/false values.
     UndefinedBooleanContent,    // Only bit 0 counts, the rest can hold garbage.
     ZeroOrOneBooleanContent,        // All bits zero except for bit 0.
@@ -1954,8 +1958,6 @@ private:
 
   ValueTypeActionImpl ValueTypeActions;
 
-  typedef std::pair<LegalizeTypeAction, EVT> LegalizeKind;
-
   LegalizeKind
   getTypeConversion(LLVMContext &Context, EVT VT) const {
     // If this is a simple type, use the ComputeRegisterProp mechanism.