LLVM API Documentation

ARMISelLowering.cpp File Reference

#include "ARM.h"
#include "ARMAddressingModes.h"
#include "ARMConstantPoolValue.h"
#include "ARMISelLowering.h"
#include "ARMMachineFunctionInfo.h"
#include "ARMPerfectShuffle.h"
#include "ARMRegisterInfo.h"
#include "ARMSubtarget.h"
#include "ARMTargetMachine.h"
#include "ARMTargetObjectFile.h"
#include "llvm/CallingConv.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Instruction.h"
#include "llvm/Intrinsics.h"
#include "llvm/GlobalValue.h"
#include "llvm/CodeGen/CallingConvLower.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/PseudoSourceValue.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/ADT/VectorExtras.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "ARMGenCallingConv.inc"

Include dependency graph for ARMISelLowering.cpp:

Go to the source code of this file.

Functions

static bool CC_ARM_APCS_Custom_f64 (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
static bool CC_ARM_AAPCS_Custom_f64 (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
static bool RetCC_ARM_APCS_Custom_f64 (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
static bool RetCC_ARM_AAPCS_Custom_f64 (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
static TargetLoweringObjectFile * createTLOF (TargetMachine &TM)
static ARMCC::CondCodes IntCCToARMCC (ISD::CondCode CC)
 IntCCToARMCC - Convert a DAG integer condition code to an ARM CC.
static bool FPCCToARMCC (ISD::CondCode CC, ARMCC::CondCodes &CondCode, ARMCC::CondCodes &CondCode2)
static bool f64AssignAPCS (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, CCState &State, bool CanFail)
static bool f64AssignAAPCS (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, CCState &State, bool CanFail)
static bool f64RetAssign (unsigned &ValNo, EVT &ValVT, EVT &LocVT, CCValAssign::LocInfo &LocInfo, CCState &State)
static SDValue CreateCopyOfByValArgument (SDValue Src, SDValue Dst, SDValue Chain, ISD::ArgFlagsTy Flags, SelectionDAG &DAG, DebugLoc dl)
static SDValue LowerConstantPool (SDValue Op, SelectionDAG &DAG)
static SDValue LowerNeonVLDIntrinsic (SDValue Op, SelectionDAG &DAG, unsigned Opcode)
static SDValue LowerNeonVSTIntrinsic (SDValue Op, SelectionDAG &DAG, unsigned Opcode, unsigned NumVecs)
static SDValue LowerVASTART (SDValue Op, SelectionDAG &DAG, unsigned VarArgsFrameIndex)
static bool isFloatingPointZero (SDValue Op)
 isFloatingPointZero - Return true if this is +0.0.
static bool isLegalCmpImmediate (unsigned C, bool isThumb1Only)
static SDValue getARMCmp (SDValue LHS, SDValue RHS, ISD::CondCode CC, SDValue &ARMCC, SelectionDAG &DAG, bool isThumb1Only, DebugLoc dl)
static SDValue getVFPCmp (SDValue LHS, SDValue RHS, SelectionDAG &DAG, DebugLoc dl)
 Returns a appropriate VFP CMP (fcmp{s|d}+fmstat) for the given operands.
static SDValue LowerSELECT_CC (SDValue Op, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue LowerBR_CC (SDValue Op, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue LowerFP_TO_INT (SDValue Op, SelectionDAG &DAG)
static SDValue LowerINT_TO_FP (SDValue Op, SelectionDAG &DAG)
static SDValue LowerFCOPYSIGN (SDValue Op, SelectionDAG &DAG)
static SDValue ExpandBIT_CONVERT (SDNode *N, SelectionDAG &DAG)
static SDValue getZeroVector (EVT VT, SelectionDAG &DAG, DebugLoc dl)
static SDValue getOnesVector (EVT VT, SelectionDAG &DAG, DebugLoc dl)
static SDValue LowerShift (SDNode *N, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue LowerVSETCC (SDValue Op, SelectionDAG &DAG)
static SDValue isVMOVSplat (uint64_t SplatBits, uint64_t SplatUndef, unsigned SplatBitSize, SelectionDAG &DAG)
static bool isVEXTMask (const SmallVectorImpl< int > &M, EVT VT, bool &ReverseVEXT, unsigned &Imm)
static bool isVREVMask (const SmallVectorImpl< int > &M, EVT VT, unsigned BlockSize)
static bool isVTRNMask (const SmallVectorImpl< int > &M, EVT VT, unsigned &WhichResult)
static bool isVUZPMask (const SmallVectorImpl< int > &M, EVT VT, unsigned &WhichResult)
static bool isVZIPMask (const SmallVectorImpl< int > &M, EVT VT, unsigned &WhichResult)
static SDValue BuildSplat (SDValue Val, EVT VT, SelectionDAG &DAG, DebugLoc dl)
static SDValue LowerBUILD_VECTOR (SDValue Op, SelectionDAG &DAG)
static SDValue GeneratePerfectShuffle (unsigned PFEntry, SDValue LHS, SDValue RHS, SelectionDAG &DAG, DebugLoc dl)
static SDValue LowerVECTOR_SHUFFLE (SDValue Op, SelectionDAG &DAG)
static SDValue LowerSCALAR_TO_VECTOR (SDValue Op, SelectionDAG &DAG)
static SDValue LowerEXTRACT_VECTOR_ELT (SDValue Op, SelectionDAG &DAG)
static SDValue LowerCONCAT_VECTORS (SDValue Op, SelectionDAG &DAG)
static SDValue combineSelectAndUse (SDNode *N, SDValue Slct, SDValue OtherOp, TargetLowering::DAGCombinerInfo &DCI)
static SDValue PerformADDCombine (SDNode *N, TargetLowering::DAGCombinerInfo &DCI)
 PerformADDCombine - Target-specific dag combine xforms for ISD::ADD.
static SDValue PerformSUBCombine (SDNode *N, TargetLowering::DAGCombinerInfo &DCI)
 PerformSUBCombine - Target-specific dag combine xforms for ISD::SUB.
static SDValue PerformFMRRDCombine (SDNode *N, TargetLowering::DAGCombinerInfo &DCI)
 PerformFMRRDCombine - Target-specific dag combine xforms for ARMISD::FMRRD.
static bool getVShiftImm (SDValue Op, unsigned ElementBits, int64_t &Cnt)
static bool isVShiftLImm (SDValue Op, EVT VT, bool isLong, int64_t &Cnt)
static bool isVShiftRImm (SDValue Op, EVT VT, bool isNarrow, bool isIntrinsic, int64_t &Cnt)
static SDValue PerformIntrinsicCombine (SDNode *N, SelectionDAG &DAG)
 PerformIntrinsicCombine - ARM-specific DAG combining for intrinsics.
static SDValue PerformShiftCombine (SDNode *N, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue PerformExtendCombine (SDNode *N, SelectionDAG &DAG, const ARMSubtarget *ST)
static bool isLegalT1AddressImmediate (int64_t V, EVT VT)
static bool isLegalT2AddressImmediate (int64_t V, EVT VT, const ARMSubtarget *Subtarget)
static bool isLegalAddressImmediate (int64_t V, EVT VT, const ARMSubtarget *Subtarget)
static bool getARMIndexedAddressParts (SDNode *Ptr, EVT VT, bool isSEXTLoad, SDValue &Base, SDValue &Offset, bool &isInc, SelectionDAG &DAG)
static bool getT2IndexedAddressParts (SDNode *Ptr, EVT VT, bool isSEXTLoad, SDValue &Base, SDValue &Offset, bool &isInc, SelectionDAG &DAG)


Function Documentation

static SDValue BuildSplat ( SDValue  Val,
EVT  VT,
SelectionDAG &  DAG,
DebugLoc  dl 
) [static]

static bool CC_ARM_AAPCS_Custom_f64 ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
ISD::ArgFlagsTy &  ArgFlags,
CCState &  State 
) [static]

Definition at line 641 of file ARMISelLowering.cpp.

References f64AssignAAPCS(), and llvm::MVT::v2f64.

static bool CC_ARM_APCS_Custom_f64 ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
ISD::ArgFlagsTy &  ArgFlags,
CCState &  State 
) [static]

Definition at line 598 of file ARMISelLowering.cpp.

References f64AssignAPCS(), and llvm::MVT::v2f64.

static SDValue combineSelectAndUse ( SDNode *  N,
SDValue  Slct,
SDValue  OtherOp,
TargetLowering::DAGCombinerInfo &  DCI 
) [static]

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" of size "Size". Alignment information is specified by the specific parameter attribute. The copy will be passed as a byval function parameter. Sometimes what we are copying is the end of a larger object, the part that does not fit in registers.

Definition at line 800 of file ARMISelLowering.cpp.

References llvm::ISD::ArgFlagsTy::getByValAlign(), llvm::ISD::ArgFlagsTy::getByValSize(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getMemcpy(), and llvm::MVT::i32.

static TargetLoweringObjectFile* createTLOF ( TargetMachine &  TM  )  [static]

Definition at line 114 of file ARMISelLowering.cpp.

References llvm::TargetMachine::getSubtarget().

static SDValue ExpandBIT_CONVERT ( SDNode *  N,
SelectionDAG &  DAG 
) [static]

static bool f64AssignAAPCS ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
CCState &  State,
bool  CanFail 
) [static]

static bool f64AssignAPCS ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
CCState &  State,
bool  CanFail 
) [static]

static bool f64RetAssign ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
CCState &  State 
) [static]

static bool FPCCToARMCC ( ISD::CondCode  CC,
ARMCC::CondCodes &  CondCode,
ARMCC::CondCodes &  CondCode2 
) [static]

static SDValue GeneratePerfectShuffle ( unsigned  PFEntry,
SDValue  LHS,
SDValue  RHS,
SelectionDAG &  DAG,
DebugLoc  dl 
) [static]

static SDValue getARMCmp ( SDValue  LHS,
SDValue  RHS,
ISD::CondCode  CC,
SDValue &  ARMCC,
SelectionDAG &  DAG,
bool  isThumb1Only,
DebugLoc  dl 
) [static]

static bool getARMIndexedAddressParts ( SDNode *  Ptr,
EVT  VT,
bool  isSEXTLoad,
SDValue &  Base,
SDValue &  Offset,
bool &  isInc,
SelectionDAG &  DAG 
) [static]

static SDValue getOnesVector ( EVT  VT,
SelectionDAG &  DAG,
DebugLoc  dl 
) [static]

static bool getT2IndexedAddressParts ( SDNode *  Ptr,
EVT  VT,
bool  isSEXTLoad,
SDValue &  Base,
SDValue &  Offset,
bool &  isInc,
SelectionDAG &  DAG 
) [static]

static SDValue getVFPCmp ( SDValue  LHS,
SDValue  RHS,
SelectionDAG &  DAG,
DebugLoc  dl 
) [static]

Returns a appropriate VFP CMP (fcmp{s|d}+fmstat) for the given operands.

Definition at line 1757 of file ARMISelLowering.cpp.

References llvm::ARMISD::CMPFP, llvm::ARMISD::CMPFPw0, llvm::MVT::Flag, llvm::ARMISD::FMSTAT, llvm::SelectionDAG::getNode(), and isFloatingPointZero().

Referenced by LowerBR_CC(), LowerFCOPYSIGN(), and LowerSELECT_CC().

static bool getVShiftImm ( SDValue  Op,
unsigned  ElementBits,
int64_t &  Cnt 
) [static]

getVShiftImm - Check if this is a valid build_vector for the immediate operand of a vector shift operation, where all the elements of the build_vector must have the same constant integer value.

Definition at line 3052 of file ARMISelLowering.cpp.

References llvm::ISD::BIT_CONVERT, llvm::dyn_cast(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), and llvm::BuildVectorSDNode::isConstantSplat().

Referenced by isVShiftLImm(), and isVShiftRImm().

static SDValue getZeroVector ( EVT  VT,
SelectionDAG &  DAG,
DebugLoc  dl 
) [static]

static ARMCC::CondCodes IntCCToARMCC ( ISD::CondCode  CC  )  [static]

static bool isFloatingPointZero ( SDValue  Op  )  [static]

isFloatingPointZero - Return true if this is +0.0.

Definition at line 1677 of file ARMISelLowering.cpp.

References CP, llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::ISD::isEXTLoad(), llvm::ISD::isNON_EXTLoad(), and llvm::ARMISD::Wrapper.

Referenced by getVFPCmp().

static bool isLegalAddressImmediate ( int64_t  V,
EVT  VT,
const ARMSubtarget *  Subtarget 
) [static]

isLegalAddressImmediate - Return true if the integer value can be used as the offset of the target addressing mode for load / store of the given type.

Definition at line 3435 of file ARMISelLowering.cpp.

References llvm::MVT::f32, llvm::MVT::f64, llvm::EVT::getSimpleVT(), llvm::ARMSubtarget::hasVFP2(), llvm::MVT::i1, llvm::MVT::i16, llvm::MVT::i8, isLegalT1AddressImmediate(), isLegalT2AddressImmediate(), llvm::EVT::isSimple(), llvm::ARMSubtarget::isThumb1Only(), llvm::ARMSubtarget::isThumb2(), and llvm::MVT::SimpleTy.

Referenced by llvm::ARMTargetLowering::isLegalAddressingMode().

static bool isLegalCmpImmediate ( unsigned  C,
bool  isThumb1Only 
) [static]

Definition at line 1692 of file ARMISelLowering.cpp.

References llvm::ARM_AM::getSOImmVal().

Referenced by getARMCmp().

static bool isLegalT1AddressImmediate ( int64_t  V,
EVT  VT 
) [static]

static bool isLegalT2AddressImmediate ( int64_t  V,
EVT  VT,
const ARMSubtarget *  Subtarget 
) [static]

static bool isVEXTMask ( const SmallVectorImpl< int > &  M,
EVT  VT,
bool &  ReverseVEXT,
unsigned &  Imm 
) [static]

static SDValue isVMOVSplat ( uint64_t  SplatBits,
uint64_t  SplatUndef,
unsigned  SplatBitSize,
SelectionDAG &  DAG 
) [static]

isVMOVSplat - Check if the specified splat value corresponds to an immediate VMOV instruction, and if so, return the constant being splatted.

Definition at line 2254 of file ARMISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), llvm::MVT::i16, llvm::MVT::i64, llvm::MVT::i8, and llvm_unreachable.

Referenced by llvm::ARM::getVMOVImm(), and LowerBUILD_VECTOR().

static bool isVREVMask ( const SmallVectorImpl< int > &  M,
EVT  VT,
unsigned  BlockSize 
) [static]

isVREVMask - Check if a vector shuffle corresponds to a VREV instruction with the specified blocksize. (The order of the elements within each block of the vector is reversed.)

Definition at line 2370 of file ARMISelLowering.cpp.

References llvm::EVT::getSizeInBits(), llvm::EVT::getVectorElementType(), and llvm::EVT::getVectorNumElements().

Referenced by llvm::ARMTargetLowering::isShuffleMaskLegal(), and LowerVECTOR_SHUFFLE().

static bool isVShiftLImm ( SDValue  Op,
EVT  VT,
bool  isLong,
int64_t &  Cnt 
) [static]

isVShiftLImm - Check if this is a valid build_vector for the immediate operand of a vector shift left operation. That value must be in the range: 0 <= Value < ElementBits for a left shift; or 0 <= Value <= ElementBits for a long left shift.

Definition at line 3072 of file ARMISelLowering.cpp.

References llvm::EVT::getSizeInBits(), llvm::EVT::getVectorElementType(), getVShiftImm(), and llvm::EVT::isVector().

Referenced by PerformIntrinsicCombine(), and PerformShiftCombine().

static bool isVShiftRImm ( SDValue  Op,
EVT  VT,
bool  isNarrow,
bool  isIntrinsic,
int64_t &  Cnt 
) [static]

isVShiftRImm - Check if this is a valid build_vector for the immediate operand of a vector shift right operation. For a shift opcode, the value is positive, but for an intrinsic the value count must be negative. The absolute value must be in the range: 1 <= |Value| <= ElementBits for a right shift; or 1 <= |Value| <= ElementBits/2 for a narrow right shift.

Definition at line 3086 of file ARMISelLowering.cpp.

References llvm::EVT::getSizeInBits(), llvm::EVT::getVectorElementType(), getVShiftImm(), and llvm::EVT::isVector().

Referenced by PerformIntrinsicCombine(), and PerformShiftCombine().

static bool isVTRNMask ( const SmallVectorImpl< int > &  M,
EVT  VT,
unsigned &  WhichResult 
) [static]

static bool isVUZPMask ( const SmallVectorImpl< int > &  M,
EVT  VT,
unsigned &  WhichResult 
) [static]

static bool isVZIPMask ( const SmallVectorImpl< int > &  M,
EVT  VT,
unsigned &  WhichResult 
) [static]

static SDValue LowerBR_CC ( SDValue  Op,
SelectionDAG &  DAG,
const ARMSubtarget *  ST 
) [static]

static SDValue LowerBUILD_VECTOR ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerCONCAT_VECTORS ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerConstantPool ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerEXTRACT_VECTOR_ELT ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerFCOPYSIGN ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerFP_TO_INT ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerINT_TO_FP ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerNeonVLDIntrinsic ( SDValue  Op,
SelectionDAG &  DAG,
unsigned  Opcode 
) [static]

static SDValue LowerNeonVSTIntrinsic ( SDValue  Op,
SelectionDAG &  DAG,
unsigned  Opcode,
unsigned  NumVecs 
) [static]

static SDValue LowerSCALAR_TO_VECTOR ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerSELECT_CC ( SDValue  Op,
SelectionDAG &  DAG,
const ARMSubtarget *  ST 
) [static]

static SDValue LowerShift ( SDNode *  N,
SelectionDAG &  DAG,
const ARMSubtarget *  ST 
) [static]

static SDValue LowerVASTART ( SDValue  Op,
SelectionDAG &  DAG,
unsigned  VarArgsFrameIndex 
) [static]

static SDValue LowerVECTOR_SHUFFLE ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue LowerVSETCC ( SDValue  Op,
SelectionDAG &  DAG 
) [static]

static SDValue PerformADDCombine ( SDNode *  N,
TargetLowering::DAGCombinerInfo &  DCI 
) [static]

PerformADDCombine - Target-specific dag combine xforms for ISD::ADD.

Definition at line 3005 of file ARMISelLowering.cpp.

References combineSelectAndUse(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDNode::getOperand(), llvm::SDNode::hasOneUse(), and llvm::ISD::SELECT.

Referenced by llvm::ARMTargetLowering::PerformDAGCombine().

static SDValue PerformExtendCombine ( SDNode *  N,
SelectionDAG &  DAG,
const ARMSubtarget *  ST 
) [static]

static SDValue PerformFMRRDCombine ( SDNode *  N,
TargetLowering::DAGCombinerInfo &  DCI 
) [static]

PerformFMRRDCombine - Target-specific dag combine xforms for ARMISD::FMRRD.

Definition at line 3040 of file ARMISelLowering.cpp.

References llvm::TargetLowering::DAGCombinerInfo::CombineTo(), llvm::ARMISD::FMDRR, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), and llvm::SDNode::getOperand().

Referenced by llvm::ARMTargetLowering::PerformDAGCombine().

static SDValue PerformIntrinsicCombine ( SDNode *  N,
SelectionDAG &  DAG 
) [static]

PerformIntrinsicCombine - ARM-specific DAG combining for intrinsics.

Definition at line 3098 of file ARMISelLowering.cpp.

References llvm::Intrinsic::arm_neon_vqrshiftns, llvm::Intrinsic::arm_neon_vqrshiftnsu, llvm::Intrinsic::arm_neon_vqrshiftnu, llvm::Intrinsic::arm_neon_vqrshifts, llvm::Intrinsic::arm_neon_vqrshiftu, llvm::Intrinsic::arm_neon_vqshiftns, llvm::Intrinsic::arm_neon_vqshiftnsu, llvm::Intrinsic::arm_neon_vqshiftnu, llvm::Intrinsic::arm_neon_vqshifts, llvm::Intrinsic::arm_neon_vqshiftsu, llvm::Intrinsic::arm_neon_vqshiftu, llvm::Intrinsic::arm_neon_vrshiftn, llvm::Intrinsic::arm_neon_vrshifts, llvm::Intrinsic::arm_neon_vrshiftu, llvm::Intrinsic::arm_neon_vshiftins, llvm::Intrinsic::arm_neon_vshiftls, llvm::Intrinsic::arm_neon_vshiftlu, llvm::Intrinsic::arm_neon_vshiftn, llvm::Intrinsic::arm_neon_vshifts, llvm::Intrinsic::arm_neon_vshiftu, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOperand(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), isVShiftLImm(), isVShiftRImm(), llvm_unreachable, llvm::ARMISD::VQRSHRNs, llvm::ARMISD::VQRSHRNsu, llvm::ARMISD::VQRSHRNu, llvm::ARMISD::VQSHLs, llvm::ARMISD::VQSHLsu, llvm::ARMISD::VQSHLu, llvm::ARMISD::VQSHRNs, llvm::ARMISD::VQSHRNsu, llvm::ARMISD::VQSHRNu, llvm::ARMISD::VRSHRN, llvm::ARMISD::VRSHRs, llvm::ARMISD::VRSHRu, llvm::ARMISD::VSHL, llvm::ARMISD::VSHLLi, llvm::ARMISD::VSHLLs, llvm::ARMISD::VSHLLu, llvm::ARMISD::VSHRN, llvm::ARMISD::VSHRs, llvm::ARMISD::VSHRu, llvm::ARMISD::VSLI, and llvm::ARMISD::VSRI.

Referenced by llvm::ARMTargetLowering::PerformDAGCombine().

static SDValue PerformShiftCombine ( SDNode *  N,
SelectionDAG &  DAG,
const ARMSubtarget *  ST 
) [static]

PerformShiftCombine - Checks for immediate versions of vector shifts and lowers them. As with the vector shift intrinsics, this is done during DAG combining instead of DAG legalizing because the build_vectors for 64-bit vector element shift counts are generally not legal, and it is hard to see their values after they get legalized to loads from a constant pool.

Definition at line 3262 of file ARMISelLowering.cpp.

References llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::ARMSubtarget::hasNEON(), llvm::EVT::isVector(), isVShiftLImm(), isVShiftRImm(), llvm_unreachable, llvm::ISD::SHL, llvm::ISD::SRA, llvm::ISD::SRL, llvm::ARMISD::VSHL, llvm::ARMISD::VSHRs, and llvm::ARMISD::VSHRu.

Referenced by llvm::X86TargetLowering::PerformDAGCombine(), and llvm::ARMTargetLowering::PerformDAGCombine().

static SDValue PerformSUBCombine ( SDNode *  N,
TargetLowering::DAGCombinerInfo &  DCI 
) [static]

PerformSUBCombine - Target-specific dag combine xforms for ISD::SUB.

Definition at line 3024 of file ARMISelLowering.cpp.

References combineSelectAndUse(), llvm::SDValue::getNode(), llvm::SDNode::getOperand(), and llvm::ISD::SELECT.

Referenced by llvm::ARMTargetLowering::PerformDAGCombine().

static bool RetCC_ARM_AAPCS_Custom_f64 ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
ISD::ArgFlagsTy &  ArgFlags,
CCState &  State 
) [static]

Definition at line 684 of file ARMISelLowering.cpp.

References RetCC_ARM_APCS_Custom_f64().

static bool RetCC_ARM_APCS_Custom_f64 ( unsigned &  ValNo,
EVT &  ValVT,
EVT &  LocVT,
CCValAssign::LocInfo &  LocInfo,
ISD::ArgFlagsTy &  ArgFlags,
CCState &  State 
) [static]

Definition at line 673 of file ARMISelLowering.cpp.

References f64RetAssign(), and llvm::MVT::v2f64.

Referenced by RetCC_ARM_AAPCS_Custom_f64().