diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 24 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 8 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/XCore/XCoreISelLowering.cpp | 2 |
11 files changed, 29 insertions, 29 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index eb6481c996a..05272755654 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -5444,7 +5444,7 @@ SDValue DAGCombiner::SimplifySelectCC(SDValue N0, SDValue N1, // fold select C, 16, 0 -> shl C, 4 if (N2C && N3C && N3C->isNullValue() && N2C->getAPIntValue().isPowerOf2() && - TLI.getSetCCResultContents() == TargetLowering::ZeroOrOneSetCCResult) { + TLI.getBooleanContents() == TargetLowering::ZeroOrOneBooleanContent) { // If the caller doesn't want us to simplify this into a zext of a compare, // don't do it. diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 179329b5903..6e781076b85 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -698,19 +698,19 @@ SDValue DAGTypeLegalizer::PromoteIntOp_BRCOND(SDNode *N, unsigned OpNo) { SDValue Cond = GetPromotedInteger(N->getOperand(1)); // Promote condition. // Make sure the extra bits coming from type promotion conform to - // getSetCCResultContents. + // getBooleanContents. unsigned CondBits = Cond.getValueSizeInBits(); - switch (TLI.getSetCCResultContents()) { + switch (TLI.getBooleanContents()) { default: - assert(false && "Unknown SetCCResultValue!"); - case TargetLowering::UndefinedSetCCResult: + assert(false && "Unknown BooleanContent!"); + case TargetLowering::UndefinedBooleanContent: // The promoted value, which may contain rubbish in the upper bits, is fine. break; - case TargetLowering::ZeroOrOneSetCCResult: + case TargetLowering::ZeroOrOneBooleanContent: if (!DAG.MaskedValueIsZero(Cond,APInt::getHighBitsSet(CondBits,CondBits-1))) Cond = DAG.getZeroExtendInReg(Cond, MVT::i1); break; - case TargetLowering::ZeroOrNegativeOneSetCCResult: + case TargetLowering::ZeroOrNegativeOneBooleanContent: if (DAG.ComputeNumSignBits(Cond) != CondBits) Cond = DAG.getNode(ISD::SIGN_EXTEND_INREG, Cond.getValueType(), Cond, DAG.getValueType(MVT::i1)); @@ -830,27 +830,27 @@ SDValue DAGTypeLegalizer::PromoteIntOp_SELECT(SDNode *N, unsigned OpNo) { assert(isTypeLegal(SVT) && "Illegal SetCC type!"); assert(Cond.getValueType().bitsLE(SVT) && "Unexpected SetCC type!"); - // Make sure the extra bits conform to getSetCCResultContents. There are + // Make sure the extra bits conform to getBooleanContents. There are // two sets of extra bits: those in Cond, which come from type promotion, // and those we need to add to have the final type be SVT (for most targets // this last set of bits is empty). unsigned CondBits = Cond.getValueSizeInBits(); ISD::NodeType ExtendCode; - switch (TLI.getSetCCResultContents()) { + switch (TLI.getBooleanContents()) { default: - assert(false && "Unknown SetCCResultValue!"); - case TargetLowering::UndefinedSetCCResult: + assert(false && "Unknown BooleanContent!"); + case TargetLowering::UndefinedBooleanContent: // Extend to SVT by adding rubbish. ExtendCode = ISD::ANY_EXTEND; break; - case TargetLowering::ZeroOrOneSetCCResult: + case TargetLowering::ZeroOrOneBooleanContent: ExtendCode = ISD::ZERO_EXTEND; if (!DAG.MaskedValueIsZero(Cond,APInt::getHighBitsSet(CondBits,CondBits-1))) // All extra bits need to be cleared. Do this by zero extending the // original condition value all the way to SVT. Cond = N->getOperand(0); break; - case TargetLowering::ZeroOrNegativeOneSetCCResult: { + case TargetLowering::ZeroOrNegativeOneBooleanContent: { ExtendCode = ISD::SIGN_EXTEND; unsigned SignBits = DAG.ComputeNumSignBits(Cond); if (SignBits != CondBits) diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index acd42a05ba4..4d602114261 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -210,8 +210,8 @@ SDValue DAGTypeLegalizer::ScalarizeVecRes_VSETCC(SDNode *N) { if (NVT.bitsLE(SVT)) { // The SETCC result type is bigger than the vector element type. // Ensure the SETCC result is sign-extended. - if (TLI.getSetCCResultContents() != - TargetLowering::ZeroOrNegativeOneSetCCResult) + if (TLI.getBooleanContents() != + TargetLowering::ZeroOrNegativeOneBooleanContent) Res = DAG.getNode(ISD::SIGN_EXTEND_INREG, SVT, Res, DAG.getValueType(MVT::i1)); // Truncate to the final type. @@ -219,8 +219,8 @@ SDValue DAGTypeLegalizer::ScalarizeVecRes_VSETCC(SDNode *N) { } else { // The SETCC result type is smaller than the vector element type. // If the SetCC result is not sign-extended, chop it down to MVT::i1. - if (TLI.getSetCCResultContents() != - TargetLowering::ZeroOrNegativeOneSetCCResult) + if (TLI.getBooleanContents() != + TargetLowering::ZeroOrNegativeOneBooleanContent) Res = DAG.getNode(ISD::TRUNCATE, MVT::i1, Res); // Sign extend to the final type. return DAG.getNode(ISD::SIGN_EXTEND, NVT, Res); diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7d64b2441d9..f55bdec968f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1495,10 +1495,10 @@ void SelectionDAG::ComputeMaskedBits(SDValue Op, const APInt &Mask, case ISD::UADDO: if (Op.getResNo() != 1) return; - // The boolean result conforms to getSetCCResultContents. Fall through. + // The boolean result conforms to getBooleanContents. Fall through. case ISD::SETCC: // If we know the result of a setcc has the top bits zero, use this info. - if (TLI.getSetCCResultContents() == TargetLowering::ZeroOrOneSetCCResult && + if (TLI.getBooleanContents() == TargetLowering::ZeroOrOneBooleanContent && BitWidth > 1) KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - 1); return; @@ -1903,11 +1903,11 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{ case ISD::UADDO: if (Op.getResNo() != 1) break; - // The boolean result conforms to getSetCCResultContents. Fall through. + // The boolean result conforms to getBooleanContents. Fall through. case ISD::SETCC: // If setcc returns 0/-1, all bits are sign bits. - if (TLI.getSetCCResultContents() == - TargetLowering::ZeroOrNegativeOneSetCCResult) + if (TLI.getBooleanContents() == + TargetLowering::ZeroOrNegativeOneBooleanContent) return VTBits; break; case ISD::ROTL: diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 62a6df3259f..01977908be6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -462,7 +462,7 @@ TargetLowering::TargetLowering(TargetMachine &tm) StackPointerRegisterToSaveRestore = 0; ExceptionPointerRegister = 0; ExceptionSelectorRegister = 0; - SetCCResultContents = UndefinedSetCCResult; + BooleanContents = UndefinedBooleanContent; SchedPreferenceInfo = SchedulingForLatency; JumpBufSize = 0; JumpBufAlignment = 0; diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index 1872b42275e..360db5fcffc 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -41,7 +41,7 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) // Set up the TargetLowering object. //I am having problems with shr n ubyte 1 setShiftAmountType(MVT::i64); - setSetCCResultContents(ZeroOrOneSetCCResult); + setBooleanContents(ZeroOrOneBooleanContent); setUsesGlobalOffsetTable(true); diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp index d44da756530..033b8a7338c 100644 --- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp @@ -393,7 +393,7 @@ SPUTargetLowering::SPUTargetLowering(SPUTargetMachine &TM) setOperationAction(ISD::SCALAR_TO_VECTOR, MVT::v4f32, Custom); setShiftAmountType(MVT::i32); - setSetCCResultContents(ZeroOrOneSetCCResult); + setBooleanContents(ZeroOrOneBooleanContent); setStackPointerRegisterToSaveRestore(SPU::R1); diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index 8fdc4b799b8..60f96ae4dd3 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -59,7 +59,7 @@ MipsTargetLowering(MipsTargetMachine &TM): TargetLowering(TM) // Mips does not have i1 type, so use i32 for // setcc operations results (slt, sgt, ...). - setSetCCResultContents(ZeroOrOneSetCCResult); + setBooleanContents(ZeroOrOneBooleanContent); // JumpTable targets must use GOT when using PIC_ setUsesGlobalOffsetTable(true); diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index c02988ee920..2b3aa2f7391 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -341,7 +341,7 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) } setShiftAmountType(MVT::i32); - setSetCCResultContents(ZeroOrOneSetCCResult); + setBooleanContents(ZeroOrOneBooleanContent); if (TM.getSubtarget<PPCSubtarget>().isPPC64()) { setStackPointerRegisterToSaveRestore(PPC::X1); diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 869b9389978..852e3ff8513 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -63,7 +63,7 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM) // X86 is weird, it always uses i8 for shift amounts and setcc results. setShiftAmountType(MVT::i8); - setSetCCResultContents(ZeroOrOneSetCCResult); + setBooleanContents(ZeroOrOneBooleanContent); setSchedulingPreference(SchedulingForRegPressure); setShiftAmountFlavor(Mask); // shl X, 32 == shl X, 0 setStackPointerRegisterToSaveRestore(X86StackPtr); diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp index 822550aef7e..4e06c243536 100644 --- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp +++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp @@ -74,7 +74,7 @@ XCoreTargetLowering::XCoreTargetLowering(XCoreTargetMachine &XTM) setSchedulingPreference(SchedulingForRegPressure); // Use i32 for setcc operations results (slt, sgt, ...). - setSetCCResultContents(ZeroOrOneSetCCResult); + setBooleanContents(ZeroOrOneBooleanContent); // XCore does not have the NodeTypes below. setOperationAction(ISD::BR_CC, MVT::Other, Expand); |