aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-24 20:59:17 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-24 20:59:17 +0000
commit30cc37ae2b0f345e085a1369d814d712a1703895 (patch)
tree3bc31ea9c6004a8b2ffce6afee2ab0a974c31264
parente4f491e7ee8a367617e34c79bdcfc7603d98908b (diff)
downloadllvm-30cc37ae2b0f345e085a1369d814d712a1703895.zip
llvm-30cc37ae2b0f345e085a1369d814d712a1703895.tar.gz
llvm-30cc37ae2b0f345e085a1369d814d712a1703895.tar.bz2
Make LegalizeKind public so that we can use it outside of TargetLowering.
llvm-svn: 166623
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index ad85c7e..0dbdd25 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/include/llvm/Target/TargetLowering.h
@@ -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.