[llvm-commits] [llvm] r166623 - /llvm/trunk/include/llvm/Target/TargetLowering.h
Nadav Rotem
nrotem at apple.com
Wed Oct 24 13:59:18 PDT 2012
Author: nadav
Date: Wed Oct 24 15:59:17 2012
New Revision: 166623
URL: http://llvm.org/viewvc/llvm-project?rev=166623&view=rev
Log:
Make LegalizeKind public so that we can use it outside of TargetLowering.
Modified:
llvm/trunk/include/llvm/Target/TargetLowering.h
Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=166623&r1=166622&r2=166623&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Wed Oct 24 15:59:17 2012
@@ -103,6 +103,10 @@
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 @@
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.
More information about the llvm-commits
mailing list