LLVM API Documentation
#include "X86.h"#include "X86InstrBuilder.h"#include "X86ISelLowering.h"#include "X86TargetMachine.h"#include "llvm/CallingConv.h"#include "llvm/Constants.h"#include "llvm/DerivedTypes.h"#include "llvm/GlobalAlias.h"#include "llvm/GlobalVariable.h"#include "llvm/Function.h"#include "llvm/Instructions.h"#include "llvm/Intrinsics.h"#include "llvm/LLVMContext.h"#include "llvm/ADT/BitVector.h"#include "llvm/ADT/VectorExtras.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/PseudoSourceValue.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/Debug.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Target/TargetLoweringObjectFile.h"#include "llvm/Target/TargetOptions.h"#include "llvm/ADT/SmallSet.h"#include "llvm/ADT/StringExtras.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/raw_ostream.h"#include "X86GenCallingConv.inc"
Go to the source code of this file.
| static bool ArgsAreStructReturn | ( | const SmallVectorImpl< ISD::InputArg > & | Ins | ) | [static] |
ArgsAreStructReturn - Determines whether a function uses struct return semantics.
Definition at line 1249 of file X86ISelLowering.cpp.
References llvm::SmallVectorImpl< T >::empty().
| static bool CallIsStructReturn | ( | const SmallVectorImpl< ISD::OutputArg > & | Outs | ) | [static] |
CallIsStructReturn - Determines whether a call uses struct return semantics.
Definition at line 1239 of file X86ISelLowering.cpp.
References llvm::SmallVectorImpl< T >::empty().
| static SDValue CommuteVectorShuffle | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
CommuteVectorShuffle - Swap vector_shuffle operands as well as values in their permute mask.
Definition at line 2772 of file X86ISelLowering.cpp.
References llvm::SDNode::getDebugLoc(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), and llvm::SmallVectorImpl< T >::push_back().
| static void CommuteVectorShuffleMask | ( | SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
CommuteVectorShuffleMask - Change values in a shuffle permute mask assuming the two vector operands have swapped position.
Definition at line 2793 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements().
Referenced by LowerVECTOR_SHUFFLE_4wide().
| static SDValue CreateCopyOfByValArgument | ( | SDValue | Src, | |
| SDValue | Dst, | |||
| SDValue | Chain, | |||
| ISD::ArgFlagsTy | Flags, | |||
| SelectionDAG & | DAG, | |||
| DebugLoc | dl | |||
| ) | [static] |
CreateCopyOfByValArgument - Make a copy of an aggregate at address specified by "Src" to address "Dst" with size and alignment information specified by the specific parameter attribute. The copy will be passed as a byval function parameter.
Definition at line 1309 of file X86ISelLowering.cpp.
References llvm::ISD::ArgFlagsTy::getByValAlign(), llvm::ISD::ArgFlagsTy::getByValSize(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getMemcpy(), and llvm::MVT::i32.
| static TargetLoweringObjectFile* createTLOF | ( | X86TargetMachine & | TM | ) | [static] |
Definition at line 54 of file X86ISelLowering.cpp.
References llvm::TargetMachine::getSubtarget(), and llvm_unreachable.
| static bool EltsFromConsecutiveLoads | ( | ShuffleVectorSDNode * | N, | |
| unsigned | NumElems, | |||
| EVT | EVT, | |||
| LoadSDNode *& | LDBase, | |||
| unsigned & | LastLoadedElt, | |||
| SelectionDAG & | DAG, | |||
| MachineFrameInfo * | MFI, | |||
| const TargetLowering & | TLI | |||
| ) | [static] |
Definition at line 8083 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDValue::getNode(), llvm::SDNode::getOpcode(), llvm::SDValue::getOpcode(), llvm::SelectionDAG::getShuffleScalarElt(), llvm::EVT::getSizeInBits(), llvm::TargetLowering::isConsecutiveLoad(), llvm::ISD::isNON_EXTLoad(), and llvm::ISD::UNDEF.
Referenced by PerformShuffleCombine().
| static SDValue EmitTailCallStoreRetAddr | ( | SelectionDAG & | DAG, | |
| MachineFunction & | MF, | |||
| SDValue | Chain, | |||
| SDValue | RetAddrFrIdx, | |||
| bool | Is64Bit, | |||
| int | FPDiff, | |||
| DebugLoc | dl | |||
| ) | [static] |
EmitTailCallStoreRetAddr - Emit a store of the return adress if tail call optimization is performed and it is required (FPDiff!=0).
Definition at line 1637 of file X86ISelLowering.cpp.
References llvm::MachineFrameInfo::CreateFixedObject(), llvm::PseudoSourceValue::getFixedStack(), llvm::SelectionDAG::getFrameIndex(), llvm::MachineFunction::getFrameInfo(), llvm::SelectionDAG::getStore(), llvm::MVT::i32, and llvm::MVT::i64.
getMaxByValAlign - Helper for getByValTypeAlignment to determine the desired ByVal argument alignment.
Definition at line 972 of file X86ISelLowering.cpp.
Referenced by llvm::X86TargetLowering::getByValTypeAlignment().
getMOVLMask - Returns a vector_shuffle mask for an movs{s|d}, movd operation of specified width.
Definition at line 2967 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), and llvm::SmallVectorImpl< T >::push_back().
| static unsigned getNumOfConsecutiveZeros | ( | ShuffleVectorSDNode * | SVOp, | |
| int | NumElems, | |||
| bool | Low, | |||
| SelectionDAG & | DAG | |||
| ) | [static] |
getNumOfConsecutiveZeros - Return the number of elements in a result of a shuffle that is zero.
Definition at line 3054 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDValue::getNode(), llvm::SelectionDAG::getShuffleScalarElt(), Idx, Index, and llvm::X86::isZeroNode().
Referenced by isVectorShift().
| static SDValue getOnesVector | ( | EVT | VT, | |
| SelectionDAG & | DAG, | |||
| DebugLoc | dl | |||
| ) | [static] |
getOnesVector - Returns a vector of specified type with all bits set.
Definition at line 2928 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::ISD::BUILD_VECTOR, llvm::SelectionDAG::getNode(), llvm::EVT::getSizeInBits(), llvm::SelectionDAG::getTargetConstant(), llvm::MVT::i32, llvm::EVT::isVector(), llvm::MVT::v2i32, and llvm::MVT::v4i32.
| static SDValue getShuffleVectorZeroOrUndef | ( | SDValue | V2, | |
| unsigned | Idx, | |||
| bool | isZero, | |||
| bool | HasSSE2, | |||
| SelectionDAG & | DAG | |||
| ) | [static] |
getShuffleVectorZeroOrUndef - Return a vector_shuffle of the specified vector of zero or undef vector. This produces a shuffle where the low element of V2 is swizzled into the zero/undef vector, landing at element Idx. This produces a shuffle mask like 4,1,2,3 (idx=0) or 0,1,2,4 (idx=3).
Definition at line 3037 of file X86ISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), getZeroVector(), llvm::SmallVectorImpl< T >::push_back(), and V1.
| static SDValue GetTLSADDR | ( | SelectionDAG & | DAG, | |
| SDValue | Chain, | |||
| GlobalAddressSDNode * | GA, | |||
| SDValue * | InFlag, | |||
| const EVT | PtrVT, | |||
| unsigned | ReturnReg, | |||
| unsigned char | OperandFlags | |||
| ) | [static] |
Definition at line 4645 of file X86ISelLowering.cpp.
References llvm::MVT::Flag, llvm::SelectionDAG::getCopyFromReg(), llvm::SDNode::getDebugLoc(), llvm::GlobalAddressSDNode::getGlobal(), llvm::SelectionDAG::getNode(), llvm::GlobalAddressSDNode::getOffset(), llvm::SelectionDAG::getTargetGlobalAddress(), llvm::SDValue::getValue(), llvm::SDNode::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MVT::Other, and llvm::X86ISD::TLSADDR.
Referenced by LowerToTLSGeneralDynamicModel32(), and LowerToTLSGeneralDynamicModel64().
| static SDValue getUnpackh | ( | SelectionDAG & | DAG, | |
| DebugLoc | dl, | |||
| EVT | VT, | |||
| SDValue | V1, | |||
| SDValue | V2 | |||
| ) | [static] |
getUnpackhMask - Returns a vector_shuffle node for an unpackh operation.
Definition at line 2990 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), and llvm::SmallVectorImpl< T >::push_back().
Referenced by PromoteSplat().
| static SDValue getUnpackl | ( | SelectionDAG & | DAG, | |
| DebugLoc | dl, | |||
| EVT | VT, | |||
| SDValue | V1, | |||
| SDValue | V2 | |||
| ) | [static] |
getUnpackl - Returns a vector_shuffle node for an unpackl operation.
Definition at line 2978 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), and llvm::SmallVectorImpl< T >::push_back().
Referenced by PromoteSplat().
| static SDValue getVShift | ( | bool | isLeft, | |
| EVT | VT, | |||
| SDValue | SrcOp, | |||
| unsigned | NumBits, | |||
| SelectionDAG & | DAG, | |||
| const TargetLowering & | TLI, | |||
| DebugLoc | dl | |||
| ) | [static] |
getVShift - Return a vector logical shift node.
Definition at line 3191 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::TargetLowering::getShiftAmountTy(), llvm::EVT::getSizeInBits(), llvm::MVT::v1i64, llvm::MVT::v2i64, llvm::X86ISD::VSHL, and llvm::X86ISD::VSRL.
| static SDValue getVZextMovL | ( | EVT | VT, | |
| EVT | OpVT, | |||
| SDValue | SrcOp, | |||
| SelectionDAG & | DAG, | |||
| const X86Subtarget * | Subtarget, | |||
| DebugLoc | dl | |||
| ) | [static] |
getVZextMovL - Return a zero-extending vector move low node.
Definition at line 3899 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::dyn_cast(), llvm::SelectionDAG::getNode(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::MVT::i32, llvm::MVT::i64, llvm::X86Subtarget::is64Bit(), isScalarLoadToVector(), llvm::ISD::SCALAR_TO_VECTOR, llvm::MVT::SimpleTy, llvm::MVT::v2f64, llvm::MVT::v2i64, llvm::MVT::v4f32, llvm::MVT::v4i32, and llvm::X86ISD::VZEXT_MOVL.
| static SDValue getZeroVector | ( | EVT | VT, | |
| bool | HasSSE2, | |||
| SelectionDAG & | DAG, | |||
| DebugLoc | dl | |||
| ) | [static] |
getZeroVector - Returns a vector of specified type with all zero elements.
Definition at line 2906 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::ISD::BUILD_VECTOR, llvm::MVT::f32, llvm::SelectionDAG::getNode(), llvm::EVT::getSizeInBits(), llvm::SelectionDAG::getTargetConstant(), llvm::SelectionDAG::getTargetConstantFP(), llvm::MVT::i32, llvm::EVT::isVector(), llvm::MVT::v2i32, llvm::MVT::v4f32, and llvm::MVT::v4i32.
hasFPCMov - is there a floating point cmov for the specific X86 condition code. Current x86 isa includes the following FP cmov instructions: fcmovb, fcomvbe, fcomve, fcmovu, fcmovae, fcmova, fcmovne, fcmovnu.
Definition at line 2267 of file X86ISelLowering.cpp.
References llvm::X86::COND_A, llvm::X86::COND_AE, llvm::X86::COND_B, llvm::X86::COND_BE, llvm::X86::COND_E, llvm::X86::COND_NE, llvm::X86::COND_NP, and llvm::X86::COND_P.
Definition at line 5641 of file X86ISelLowering.cpp.
References llvm::ISD::AND, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::hasOneUse(), llvm::ISD::OR, and llvm::X86ISD::SETCC.
| static bool isBaseAlignmentOfN | ( | unsigned | N, | |
| SDNode * | Base, | |||
| const TargetLowering & | TLI | |||
| ) | [static] |
Definition at line 8073 of file X86ISelLowering.cpp.
References llvm::GlobalValue::getAlignment(), and llvm::TargetLowering::isGAPlusOffset().
Referenced by PerformShuffleCombine().
| static bool isCommutedMOVL | ( | ShuffleVectorSDNode * | N, | |
| bool | V2IsSplat = false, |
|||
| bool | V2IsUndef = false | |||
| ) | [static] |
Definition at line 2637 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMask(), llvm::SDNode::getValueType(), isCommutedMOVLMask(), and M.
| static bool isCommutedMOVLMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT, | |||
| bool | V2IsSplat = false, |
|||
| bool | V2IsUndef = false | |||
| ) | [static] |
isCommutedMOVL - Returns true if the shuffle mask is except the reverse of what x86 movss want. X86 movs requires the lowest element to be lowest element of vector 2 and the other elements to come from vector 1 in order.
Definition at line 2619 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), isUndefOrEqual(), and isUndefOrInRange().
Referenced by isCommutedMOVL(), and llvm::X86TargetLowering::isVectorClearMaskLegal().
| static bool isCommutedSHUFP | ( | ShuffleVectorSDNode * | N | ) | [static] |
Definition at line 2408 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMask(), llvm::SDNode::getValueType(), isCommutedSHUFPMask(), and M.
| static bool isCommutedSHUFPMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isCommutedSHUFP - Returns true if the shuffle mask is exactly the reverse of what x86 shuffles want. x86 shuffles requires the lower half elements to come from vector 1 (which would equal the dest.) and the upper half to come from vector 2.
Definition at line 2392 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), and isUndefOrInRange().
Referenced by isCommutedSHUFP(), and llvm::X86TargetLowering::isVectorClearMaskLegal().
| static bool isMOVLMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isMOVLMask - Return true if the specified VECTOR_SHUFFLE operand specifies a shuffle of elements that is suitable for input to MOVSS, MOVSD, and MOVD, i.e. setting the lowest element.
Definition at line 2594 of file X86ISelLowering.cpp.
References llvm::EVT::getSizeInBits(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), and isUndefOrEqual().
Referenced by llvm::X86::isMOVLMask(), llvm::X86TargetLowering::isShuffleMaskLegal(), and llvm::X86TargetLowering::isVectorClearMaskLegal().
| static bool isPSHUFDMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isPSHUFDMask - Return true if the node specifies a shuffle of elements that is suitable for input to PSHUFD or PSHUFW. That is, it doesn't reference the second operand.
Definition at line 2300 of file X86ISelLowering.cpp.
References llvm::MVT::v2f64, llvm::MVT::v2i64, llvm::MVT::v4f32, llvm::MVT::v4i16, and llvm::MVT::v4i32.
Referenced by llvm::X86::isPSHUFDMask(), and llvm::X86TargetLowering::isShuffleMaskLegal().
| static bool isPSHUFHWMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isPSHUFHWMask - Return true if the node specifies a shuffle of elements that is suitable for input to PSHUFHW.
Definition at line 2316 of file X86ISelLowering.cpp.
References llvm::MVT::v8i16.
Referenced by llvm::X86::isPSHUFHWMask(), and llvm::X86TargetLowering::isShuffleMaskLegal().
| static bool isPSHUFLWMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isPSHUFLWMask - Return true if the node specifies a shuffle of elements that is suitable for input to PSHUFLW.
Definition at line 2341 of file X86ISelLowering.cpp.
References llvm::MVT::v8i16.
Referenced by llvm::X86::isPSHUFLWMask(), and llvm::X86TargetLowering::isShuffleMaskLegal().
| static bool isScalarLoadToVector | ( | SDNode * | N, | |
| LoadSDNode ** | LD = NULL | |||
| ) | [static] |
isScalarLoadToVector - Returns true if the node is a scalar load that is promoted to a vector. It also returns the LoadSDNode by reference if required.
Definition at line 2825 of file X86ISelLowering.cpp.
References llvm::SDValue::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::ISD::isNON_EXTLoad(), and llvm::ISD::SCALAR_TO_VECTOR.
Referenced by getVZextMovL(), and ShouldXformToMOVLP().
| static bool isSHUFPMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isSHUFPMask - Return true if the specified VECTOR_SHUFFLE operand specifies a shuffle of elements that is suitable for input to SHUFP*.
Definition at line 2366 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), and isUndefOrInRange().
Referenced by llvm::X86TargetLowering::isShuffleMaskLegal(), llvm::X86::isSHUFPMask(), and llvm::X86TargetLowering::isVectorClearMaskLegal().
isSplatVector - Returns true if N is a BUILD_VECTOR node whose elements are all the same.
Definition at line 2865 of file X86ISelLowering.cpp.
References llvm::ISD::BUILD_VECTOR, llvm::SDNode::getNumOperands(), llvm::SDNode::getOpcode(), and llvm::SDNode::getOperand().
| static bool isUndefOrEqual | ( | int | Val, | |
| int | CmpVal | |||
| ) | [static] |
isUndefOrEqual - Val is either less than zero (undef) or equal to the specified value.
Definition at line 2291 of file X86ISelLowering.cpp.
Referenced by isCommutedMOVLMask(), llvm::X86::isMOVDDUPMask(), llvm::X86::isMOVHLPS_v_undef_Mask(), llvm::X86::isMOVHLPSMask(), llvm::X86::isMOVHPMask(), isMOVLMask(), llvm::X86::isMOVLPMask(), isUNPCKH_v_undef_Mask(), isUNPCKHMask(), isUNPCKL_v_undef_Mask(), isUNPCKLMask(), ShouldXformToMOVHLPS(), and ShouldXformToMOVLP().
| static bool isUndefOrInRange | ( | int | Val, | |
| int | Low, | |||
| int | Hi | |||
| ) | [static] |
isUndefOrInRange - Return true if Val is undef or if its value falls within the specified range (L, H].
Definition at line 2285 of file X86ISelLowering.cpp.
Referenced by isCommutedMOVLMask(), isCommutedSHUFPMask(), and isSHUFPMask().
| static bool isUNPCKH_v_undef_Mask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isUNPCKH_v_undef_Mask - Special case of isUNPCKHMask for canonical form of vector_shuffle v, v, <2, 6, 3, 7>, i.e. vector_shuffle v, undef, <2, 2, 3, 3>
Definition at line 2569 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), and isUndefOrEqual().
Referenced by llvm::X86TargetLowering::isShuffleMaskLegal(), and llvm::X86::isUNPCKH_v_undef_Mask().
| static bool isUNPCKHMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT, | |||
| bool | V2IsSplat = false | |||
| ) | [static] |
isUNPCKHMask - Return true if the specified VECTOR_SHUFFLE operand specifies a shuffle of elements that is suitable for input to UNPCKH.
Definition at line 2513 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), and isUndefOrEqual().
Referenced by llvm::X86TargetLowering::isShuffleMaskLegal(), and llvm::X86::isUNPCKHMask().
| static bool isUNPCKL_v_undef_Mask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT | |||
| ) | [static] |
isUNPCKL_v_undef_Mask - Special case of isUNPCKLMask for canonical form of vector_shuffle v, v, <0, 4, 1, 5>, i.e. vector_shuffle v, undef, <0, 0, 1, 1>
Definition at line 2544 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), and isUndefOrEqual().
Referenced by llvm::X86TargetLowering::isShuffleMaskLegal(), and llvm::X86::isUNPCKL_v_undef_Mask().
| static bool isUNPCKLMask | ( | const SmallVectorImpl< int > & | Mask, | |
| EVT | VT, | |||
| bool | V2IsSplat = false | |||
| ) | [static] |
isUNPCKLMask - Return true if the specified VECTOR_SHUFFLE operand specifies a shuffle of elements that is suitable for input to UNPCKL.
Definition at line 2483 of file X86ISelLowering.cpp.
References llvm::EVT::getVectorNumElements(), and isUndefOrEqual().
Referenced by llvm::X86TargetLowering::isShuffleMaskLegal(), and llvm::X86::isUNPCKLMask().
| static bool isVectorShift | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG, | |||
| bool & | isLeft, | |||
| SDValue & | ShVal, | |||
| unsigned & | ShAmt | |||
| ) | [static] |
isVectorShift - Returns true if the shuffle can be implemented as a logical left or right shift of a vector. FIXME: split into pslldqi, psrldqi, palignr variants.
Definition at line 3076 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMaskElt(), getNumOfConsecutiveZeros(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), and Idx.
Definition at line 5576 of file X86ISelLowering.cpp.
References llvm::X86ISD::ADD, llvm::X86ISD::CMP, llvm::X86ISD::COMI, llvm::X86ISD::DEC, llvm::SDValue::getNode(), llvm::SDNode::getOpcode(), llvm::SDValue::getResNo(), llvm::X86ISD::INC, llvm::X86ISD::SMUL, llvm::X86ISD::SUB, llvm::X86ISD::UCOMI, and llvm::X86ISD::UMUL.
Definition at line 5653 of file X86ISelLowering.cpp.
References llvm::dyn_cast(), llvm::ConstantSDNode::getAPIntValue(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::hasOneUse(), llvm::X86ISD::SETCC, and llvm::ISD::XOR.
| static bool isZeroShuffle | ( | ShuffleVectorSDNode * | N | ) | [static] |
isZeroShuffle - Returns true if N is a VECTOR_SHUFFLE that can be resolved to an zero vector. FIXME: move to dag combiner / method on ShuffleVectorSDNode
Definition at line 2879 of file X86ISelLowering.cpp.
References llvm::ISD::BUILD_VECTOR, llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), Idx, llvm::ISD::isBuildVectorAllZeros(), llvm::X86::isZeroNode(), llvm::ISD::UNDEF, and V1.
| static SDValue LowerBuildVectorv16i8 | ( | SDValue | Op, | |
| unsigned | NonZeros, | |||
| unsigned | NumNonZero, | |||
| unsigned | NumZero, | |||
| SelectionDAG & | DAG, | |||
| TargetLowering & | TLI | |||
| ) | [static] |
LowerBuildVectorv16i8 - Custom lower build_vector of v16i8.
Definition at line 3115 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::SelectionDAG::getConstant(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getIntPtrConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SelectionDAG::getUNDEF(), getZeroVector(), llvm::MVT::i16, llvm::MVT::i8, llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::OR, llvm::ISD::SHL, V, llvm::MVT::v16i8, llvm::MVT::v8i16, and llvm::ISD::ZERO_EXTEND.
| static SDValue LowerBuildVectorv8i16 | ( | SDValue | Op, | |
| unsigned | NonZeros, | |||
| unsigned | NumNonZero, | |||
| unsigned | NumZero, | |||
| SelectionDAG & | DAG, | |||
| TargetLowering & | TLI | |||
| ) | [static] |
LowerBuildVectorv8i16 - Custom lower build_vector of v8i16.
Definition at line 3161 of file X86ISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getIntPtrConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SelectionDAG::getUNDEF(), getZeroVector(), llvm::ISD::INSERT_VECTOR_ELT, V, and llvm::MVT::v8i16.
Definition at line 8850 of file X86ISelLowering.cpp.
References llvm::Intrinsic::bswap, llvm::CallInst::Create(), llvm::dyn_cast(), llvm::Instruction::eraseFromParent(), llvm::IntegerType::getBitWidth(), llvm::Intrinsic::getDeclaration(), llvm::Value::getName(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::GlobalValue::getParent(), llvm::BasicBlock::getParent(), llvm::Instruction::getParent(), llvm::Value::getType(), llvm::Type::isInteger(), llvm::Value::replaceAllUsesWith(), and Ty.
Referenced by llvm::X86TargetLowering::ExpandInlineAsm().
| static SDValue LowerToTLSExecModel | ( | GlobalAddressSDNode * | GA, | |
| SelectionDAG & | DAG, | |||
| const EVT | PtrVT, | |||
| TLSModel::Model | model, | |||
| bool | is64Bit | |||
| ) | [static] |
Definition at line 4690 of file X86ISelLowering.cpp.
References llvm::ISD::ADD, Base, llvm::X86II::FS, llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getEntryNode(), llvm::GlobalAddressSDNode::getGlobal(), llvm::PseudoSourceValue::getGOT(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getNode(), llvm::GlobalAddressSDNode::getOffset(), llvm::SelectionDAG::getRegister(), llvm::SelectionDAG::getTargetGlobalAddress(), llvm::DebugLoc::getUnknownLoc(), llvm::SDNode::getValueType(), llvm::X86II::GS, llvm::MVT::i32, llvm::TLSModel::InitialExec, llvm::TLSModel::LocalExec, llvm::X86II::MO_GOTTPOFF, llvm::X86II::MO_INDNTPOFF, llvm::X86II::MO_NTPOFF, llvm::X86II::MO_TPOFF, llvm::X86ISD::SegmentBaseAddress, llvm::X86ISD::Wrapper, and llvm::X86ISD::WrapperRIP.
| static SDValue LowerToTLSGeneralDynamicModel32 | ( | GlobalAddressSDNode * | GA, | |
| SelectionDAG & | DAG, | |||
| const EVT | PtrVT | |||
| ) | [static] |
Definition at line 4667 of file X86ISelLowering.cpp.
References llvm::N86::EAX, llvm::N86::EBX, llvm::SelectionDAG::getCopyToReg(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getEntryNode(), llvm::SelectionDAG::getNode(), GetTLSADDR(), llvm::DebugLoc::getUnknownLoc(), llvm::SDValue::getValue(), llvm::X86ISD::GlobalBaseReg, and llvm::X86II::MO_TLSGD.
| static SDValue LowerToTLSGeneralDynamicModel64 | ( | GlobalAddressSDNode * | GA, | |
| SelectionDAG & | DAG, | |||
| const EVT | PtrVT | |||
| ) | [static] |
Definition at line 4682 of file X86ISelLowering.cpp.
References llvm::SelectionDAG::getEntryNode(), GetTLSADDR(), and llvm::X86II::MO_TLSGD.
| static SDValue LowerVECTOR_SHUFFLE_4wide | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
LowerVECTOR_SHUFFLE_4wide - Handle all 4 wide cases with a number of shuffles.
Definition at line 3935 of file X86ISelLowering.cpp.
References llvm::SmallVectorImpl< T >::clear(), CommuteVectorShuffleMask(), llvm::SDNode::getDebugLoc(), llvm::ShuffleVectorSDNode::getMask(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::SelectionDAG::getVectorShuffle(), llvm::SmallVectorImpl< T >::push_back(), llvm::SmallVectorImpl< T >::resize(), std::swap(), and V1.
| static SDValue LowerVECTOR_SHUFFLEv16i8 | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG, | |||
| X86TargetLowering & | TLI | |||
| ) | [static] |
Definition at line 3703 of file X86ISelLowering.cpp.
References llvm::ISD::AND, llvm::ISD::BIT_CONVERT, llvm::ISD::BUILD_VECTOR, llvm::SmallVectorImpl< T >::clear(), llvm::ISD::EXTRACT_VECTOR_ELT, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getIntPtrConstant(), llvm::ShuffleVectorSDNode::getMask(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperand(), llvm::TargetLowering::getShiftAmountTy(), llvm::X86TargetLowering::getSubtarget(), llvm::X86Subtarget::hasSSSE3(), llvm::MVT::i16, llvm::MVT::i8, llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::OR, llvm::X86ISD::PSHUFB, llvm::SmallVectorImpl< T >::push_back(), llvm::ISD::SHL, llvm::ISD::SRL, V1, llvm::MVT::v16i8, and llvm::MVT::v8i16.
| static SDValue LowerVECTOR_SHUFFLEv8i16 | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG, | |||
| X86TargetLowering & | TLI | |||
| ) | [static] |
Definition at line 3460 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::ISD::BUILD_VECTOR, llvm::SmallVectorImpl< T >::clear(), llvm::BitVector::count(), llvm::ISD::EXTRACT_VECTOR_ELT, llvm::BitVector::find_first(), llvm::BitVector::find_next(), llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getIntPtrConstant(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperand(), llvm::X86TargetLowering::getSubtarget(), llvm::SelectionDAG::getUNDEF(), llvm::SelectionDAG::getVectorShuffle(), llvm::X86Subtarget::hasSSSE3(), llvm::MVT::i16, llvm::MVT::i8, llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::OR, llvm::X86ISD::PSHUFB, llvm::SmallVectorImpl< T >::push_back(), llvm::BitVector::set(), V1, llvm::MVT::v16i8, llvm::MVT::v2i64, and llvm::MVT::v8i16.
| static SDValue NormalizeMask | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
NormalizeMask - V2 is a splat, modify the mask (if needed) so all elements that point to V2 points to its first element.
Definition at line 2945 of file X86ISelLowering.cpp.
References Changed, llvm::SDNode::getDebugLoc(), llvm::ShuffleVectorSDNode::getMask(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::SelectionDAG::getVectorShuffle().
| static SDValue PerformBTCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| TargetLowering::DAGCombinerInfo & | DCI | |||
| ) | [static] |
Definition at line 8739 of file X86ISelLowering.cpp.
References llvm::TargetLowering::DAGCombinerInfo::CommitTargetLoweringOpt(), llvm::APInt::getLowBitsSet(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getTargetLoweringInfo(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::hasOneUse(), llvm::Log2_32(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedConstant(), llvm::TargetLowering::SimplifyDemandedBits(), and TLI.
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformCMOVCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| TargetLowering::DAGCombinerInfo & | DCI | |||
| ) | [static] |
Optimize X86ISD::CMOV [LHS, RHS, CONDCODE (e.g. X86::COND_NE), CONDVAL].
Definition at line 8326 of file X86ISelLowering.cpp.
References llvm::ISD::ADD, llvm::TargetLowering::DAGCombinerInfo::CombineTo(), llvm::SelectionDAG::getConstant(), llvm::SDNode::getConstantOperandVal(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDNode::getNumValues(), llvm::SDNode::getOperand(), GetOppositeBranchCondition(), llvm::SDNode::getValueType(), llvm::SDValue::getValueType(), llvm::MVT::i32, llvm::MVT::i8, llvm::ISD::MUL, llvm::X86ISD::SETCC, llvm::ISD::SHL, std::swap(), and llvm::ISD::ZERO_EXTEND.
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformFANDCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
PerformFANDCombine - Do target-specific dag combines on X86ISD::FAND nodes.
Definition at line 8727 of file X86ISelLowering.cpp.
References llvm::SDNode::getOperand().
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformFORCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
PerformFORCombine - Do target-specific dag combines on X86ISD::FOR and X86ISD::FXOR nodes.
Definition at line 8713 of file X86ISelLowering.cpp.
References llvm::X86ISD::FOR, llvm::X86ISD::FXOR, llvm::SDNode::getOpcode(), and llvm::SDNode::getOperand().
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformMEMBARRIERCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
Definition at line 8775 of file X86ISelLowering.cpp.
References llvm::ISD::ATOMIC_CMP_SWAP, llvm::ISD::ATOMIC_LOAD_ADD, llvm::ISD::ATOMIC_LOAD_AND, llvm::ISD::ATOMIC_LOAD_MAX, llvm::ISD::ATOMIC_LOAD_MIN, llvm::ISD::ATOMIC_LOAD_NAND, llvm::ISD::ATOMIC_LOAD_OR, llvm::ISD::ATOMIC_LOAD_SUB, llvm::ISD::ATOMIC_LOAD_UMAX, llvm::ISD::ATOMIC_LOAD_UMIN, llvm::ISD::ATOMIC_LOAD_XOR, llvm::ISD::ATOMIC_SWAP, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::ISD::MEMBARRIER, and llvm::SelectionDAG::UpdateNodeOperands().
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformMulCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| TargetLowering::DAGCombinerInfo & | DCI | |||
| ) | [static] |
PerformMulCombine - Optimize a single multiply with constant into two in order to implement it with two cheaper instructions, e.g. LEA + SHL, LEA + LEA.
Definition at line 8438 of file X86ISelLowering.cpp.
References llvm::ISD::ADD, llvm::TargetLowering::DAGCombinerInfo::CombineTo(), llvm::dyn_cast(), llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getMachineFunction(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::ConstantSDNode::getZExtValue(), llvm::SDNode::hasOneUse(), llvm::MVT::i8, llvm::TargetLowering::DAGCombinerInfo::isBeforeLegalize(), llvm::TargetLowering::DAGCombinerInfo::isCalledByLegalizer(), llvm::isPowerOf2_64(), llvm::Log2_64(), llvm::X86ISD::MUL_IMM, llvm::Attribute::OptimizeForSize, llvm::ISD::SHL, std::swap(), and llvm::SDNode::use_begin().
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformSELECTCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| const X86Subtarget * | Subtarget | |||
| ) | [static] |
PerformSELECTCombine - Do target-specific dag combines on SELECT nodes.
Definition at line 8162 of file X86ISelLowering.cpp.
References llvm::ISD::ADD, llvm::MVT::f32, llvm::MVT::f64, llvm::X86ISD::FMAX, llvm::X86ISD::FMIN, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getTargetLoweringInfo(), llvm::SDNode::getValueType(), llvm::SDValue::getValueType(), llvm::X86Subtarget::hasSSE2(), llvm::MVT::i32, llvm::MVT::i8, llvm::TargetLowering::isTypeLegal(), llvm::ISD::MUL, llvm::ISD::SETCC, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETOGT, llvm::ISD::SETOLE, llvm::ISD::SETOLT, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, llvm::ISD::SHL, std::swap(), llvm::UnsafeFPMath, llvm::ISD::XOR, and llvm::ISD::ZERO_EXTEND.
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformShiftCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| const X86Subtarget * | Subtarget | |||
| ) | [static] |
PerformShiftCombine - Transforms vector shift nodes to use vector shifts when possible.
Definition at line 8505 of file X86ISelLowering.cpp.
References llvm::ISD::ANY_EXTEND, llvm::EVT::bitsGT(), llvm::EVT::bitsLT(), llvm::ISD::BUILD_VECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getIntPtrConstant(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOpcode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::X86Subtarget::hasSSE2(), llvm::MVT::i32, llvm::ISD::INTRINSIC_WO_CHAIN, llvm_unreachable, llvm::ISD::SHL, llvm::ISD::SRA, llvm::ISD::SRL, llvm::ISD::TRUNCATE, llvm::ISD::UNDEF, llvm::MVT::v2i64, llvm::MVT::v4i32, llvm::MVT::v8i16, llvm::ISD::VECTOR_SHUFFLE, llvm::Intrinsic::x86_sse2_pslli_d, llvm::Intrinsic::x86_sse2_pslli_q, llvm::Intrinsic::x86_sse2_pslli_w, llvm::Intrinsic::x86_sse2_psrai_d, llvm::Intrinsic::x86_sse2_psrai_w, llvm::Intrinsic::x86_sse2_psrli_d, llvm::Intrinsic::x86_sse2_psrli_q, and llvm::Intrinsic::x86_sse2_psrli_w.
| static SDValue PerformShuffleCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| const TargetLowering & | TLI | |||
| ) | [static] |
PerformShuffleCombine - Combine a vector_shuffle that is equal to build_vector load1, load2, load3, load4, <0, 1, 2, 3> into a 128-bit load if the load addresses are consecutive, non-overlapping, and in the right order. In the case of v2i64, it will see if it can rewrite the shuffle to be an appropriate build vector so it can take advantage of
Definition at line 8125 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, EltsFromConsecutiveLoads(), llvm::MemSDNode::getAlignment(), llvm::LoadSDNode::getBasePtr(), llvm::MemSDNode::getChain(), llvm::SDNode::getDebugLoc(), llvm::MachineFunction::getFrameInfo(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getMachineFunction(), llvm::SelectionDAG::getNode(), llvm::SDValue::getNode(), llvm::EVT::getSizeInBits(), llvm::MemSDNode::getSrcValue(), llvm::MemSDNode::getSrcValueOffset(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVTList(), isBaseAlignmentOfN(), llvm::MemSDNode::isVolatile(), llvm::MVT::Other, llvm::MVT::v2i64, and llvm::X86ISD::VZEXT_LOAD.
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformSTORECombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG, | |||
| const X86Subtarget * | Subtarget | |||
| ) | [static] |
PerformSTORECombine - Do target-specific dag combines on STORE nodes.
Definition at line 8599 of file X86ISelLowering.cpp.
References llvm::ISD::ADD, llvm::MVT::f64, llvm::MemSDNode::getAlignment(), llvm::StoreSDNode::getBasePtr(), llvm::LoadSDNode::getBasePtr(), llvm::MemSDNode::getChain(), llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::MachineFunction::getFunction(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getMachineFunction(), llvm::SelectionDAG::getNode(), llvm::SDValue::getNode(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::MemSDNode::getSrcValue(), llvm::MemSDNode::getSrcValueOffset(), llvm::SelectionDAG::getStore(), llvm::SDValue::getValue(), llvm::StoreSDNode::getValue(), llvm::SDValue::getValueType(), llvm::Function::hasFnAttr(), llvm::SDNode::hasNUsesOfValue(), llvm::SDValue::hasOneUse(), llvm::X86Subtarget::hasSSE2(), llvm::MVT::i32, llvm::X86Subtarget::is64Bit(), llvm::ISD::isNormalLoad(), llvm::MemSDNode::isVolatile(), llvm::MinAlign(), llvm::Attribute::NoImplicitFloat, llvm::MVT::Other, llvm::SmallVectorImpl< T >::push_back(), llvm::SmallVectorImpl< T >::size(), llvm::ISD::TokenFactor, and llvm::UseSoftFloat.
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PerformVZEXT_MOVLCombine | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) | [static] |
Definition at line 8757 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), and llvm::X86ISD::VZEXT_LOAD.
Referenced by llvm::X86TargetLowering::PerformDAGCombine().
| static SDValue PromoteSplat | ( | ShuffleVectorSDNode * | SV, | |
| SelectionDAG & | DAG, | |||
| bool | HasSSE2 | |||
| ) | [static] |
PromoteSplat - Promote a splat of v4f32, v8i16 or v16i8 to v4i32.
Definition at line 3003 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperand(), llvm::ShuffleVectorSDNode::getSplatIndex(), llvm::SelectionDAG::getUNDEF(), getUnpackh(), getUnpackl(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), V1, and llvm::MVT::v4f32.
| static SDValue RewriteAsNarrowerShuffle | ( | ShuffleVectorSDNode * | SVOp, | |
| SelectionDAG & | DAG, | |||
| TargetLowering & | TLI, | |||
| DebugLoc | dl | |||
| ) | [static] |
RewriteAsNarrowerShuffle - Try rewriting v8i16 and v16i8 shuffles as 4 wide ones, or rewriting v4i32 / v2f32 as 2 wide ones if possible. This can be done when every pair / quad of shuffle mask elements point to elements in the right sequence. e.g. vector_shuffle <>, <>, < 3, 4, | 10, 11, | 0, 1, | 14, 15>
Definition at line 3848 of file X86ISelLowering.cpp.
References llvm::ISD::BIT_CONVERT, llvm::MVT::getIntVectorWithNumElements(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVectorShuffle(), llvm::EVT::isInteger(), llvm::SmallVectorImpl< T >::push_back(), Scale, llvm::MVT::SimpleTy, V1, llvm::MVT::v16i8, llvm::MVT::v2f64, llvm::MVT::v2i64, llvm::MVT::v4f32, llvm::MVT::v4i32, and llvm::MVT::v8i16.
| static bool ShouldXformToMOVHLPS | ( | ShuffleVectorSDNode * | Op | ) | [static] |
ShouldXformToMOVHLPS - Return true if the node should be transformed to match movhlps. The lower half elements should come from upper half of V1 (and in order), and the upper half elements should come from the upper half of V2 (and in order).
Definition at line 2810 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), and isUndefOrEqual().
| static bool ShouldXformToMOVLP | ( | SDNode * | V1, | |
| SDNode * | V2, | |||
| ShuffleVectorSDNode * | Op | |||
| ) | [static] |
ShouldXformToMOVLP{S|D} - Return true if the node should be transformed to match movlp{s|d}. The lower half elements should come from lower half of V1 (and in order), and the upper half elements should come from the upper half of V2 (and in order). And since V1 will become the source of the MOVLP, it must be either a vector load or a scalar load to vector.
Definition at line 2841 of file X86ISelLowering.cpp.
References llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ISD::isNON_EXTLoad(), isScalarLoadToVector(), and isUndefOrEqual().
| static unsigned TranslateX86CC | ( | ISD::CondCode | SetCCOpcode, | |
| bool | isFP, | |||
| SDValue & | LHS, | |||
| SDValue & | RHS, | |||
| SelectionDAG & | DAG | |||
| ) | [static] |
TranslateX86CC - do a one to one translation of a ISD::CondCode to the X86 specific condition code, returning the condition code and the LHS/RHS of the comparison to make.
Definition at line 2183 of file X86ISelLowering.cpp.
References llvm::X86::COND_A, llvm::X86::COND_AE, llvm::X86::COND_B, llvm::X86::COND_BE, llvm::X86::COND_E, llvm::X86::COND_G, llvm::X86::COND_GE, llvm::X86::COND_L, llvm::X86::COND_LE, llvm::X86::COND_NE, llvm::X86::COND_NP, llvm::X86::COND_NS, llvm::X86::COND_P, llvm::X86::COND_S, llvm::SelectionDAG::getConstant(), llvm::SDValue::getNode(), llvm::ISD::getSetCCSwappedOperands(), llvm::SDValue::getValueType(), llvm::SDValue::hasOneUse(), llvm::ISD::isNON_EXTLoad(), llvm_unreachable, llvm::ISD::SETEQ, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETO, llvm::ISD::SETOGE, llvm::ISD::SETOGT, llvm::ISD::SETOLE, llvm::ISD::SETOLT, llvm::ISD::SETONE, llvm::ISD::SETUEQ, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, llvm::ISD::SETULT, llvm::ISD::SETUO, and std::swap().
cl::opt<bool> DisableMMX("disable-mmx", cl::Hidden, cl::desc("Disable use of MMX")) [static] |
Referenced by llvm::X86TargetLowering::X86TargetLowering().