/external/llvm/include/llvm/Target/ |
D | TargetLowering.h | 575 LegalizeAction getLoadExtAction(unsigned ExtType, EVT ValVT, EVT MemVT) const { in getLoadExtAction() argument 576 if (ValVT.isExtended() || MemVT.isExtended()) return Expand; in getLoadExtAction() 578 unsigned MemI = (unsigned) MemVT.getSimpleVT().SimpleTy; in getLoadExtAction() 585 bool isLoadExtLegal(unsigned ExtType, EVT ValVT, EVT MemVT) const { in isLoadExtLegal() argument 586 return ValVT.isSimple() && MemVT.isSimple() && in isLoadExtLegal() 587 getLoadExtAction(ExtType, ValVT, MemVT) == Legal; in isLoadExtLegal() 592 bool isLoadExtLegalOrCustom(unsigned ExtType, EVT ValVT, EVT MemVT) const { in isLoadExtLegalOrCustom() argument 593 return ValVT.isSimple() && MemVT.isSimple() && in isLoadExtLegalOrCustom() 594 (getLoadExtAction(ExtType, ValVT, MemVT) == Legal || in isLoadExtLegalOrCustom() 595 getLoadExtAction(ExtType, ValVT, MemVT) == Custom); in isLoadExtLegalOrCustom() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAGNodes.h | 1197 EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Cmp, SDValue Swp, 1200 : MemSDNode(Opc, Order, dl, VTL, MemVT, MMO) { 1205 EVT MemVT, 1209 : MemSDNode(Opc, Order, dl, VTL, MemVT, MMO) { 1214 EVT MemVT, 1218 : MemSDNode(Opc, Order, dl, VTL, MemVT, MMO) { 1222 AtomicSDNode(unsigned Opc, unsigned Order, DebugLoc dl, SDVTList VTL, EVT MemVT, 1227 : MemSDNode(Opc, Order, dl, VTL, MemVT, MMO) { 1830 SDVTList VTs, ISD::MemIndexedMode AM, EVT MemVT, 1832 : MemSDNode(NodeTy, Order, dl, VTs, MemVT, MMO) { [all …]
|
D | SelectionDAG.h | 744 SDValue getAtomicCmpSwap(unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTs, 750 SDValue getAtomicCmpSwap(unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTs, 759 SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, SDValue Chain, 763 SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, SDValue Chain, 770 SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, EVT VT, 777 SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTList, 782 SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTList, 792 EVT MemVT, MachinePointerInfo PtrInfo, 799 EVT MemVT, MachineMemOperand *MMO); 816 EVT MemVT, bool isVolatile, [all …]
|
D | BasicTTIImpl.h | 506 EVT MemVT = getTLI()->getValueType(Src, true); in getMemoryOpCost() local 507 if (MemVT.isSimple() && MemVT != MVT::Other) { in getMemoryOpCost() 509 LA = getTLI()->getTruncStoreAction(LT.second, MemVT.getSimpleVT()); in getMemoryOpCost() 511 LA = getTLI()->getLoadExtAction(ISD::EXTLOAD, LT.second, MemVT); in getMemoryOpCost()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 4479 SDValue SelectionDAG::getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, in getAtomic() argument 4486 ID.AddInteger(MemVT.getRawBits()); in getAtomic() 4505 dl.getDebugLoc(), VTList, MemVT, in getAtomic() 4514 SDValue SelectionDAG::getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, in getAtomic() argument 4519 return getAtomic(Opcode, dl, MemVT, VTList, Ops, MMO, Ordering, in getAtomic() 4524 unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTs, SDValue Chain, in getAtomicCmpSwap() argument 4533 Alignment = getEVTAlignment(MemVT); in getAtomicCmpSwap() 4544 MF.getMachineMemOperand(PtrInfo, Flags, MemVT.getStoreSize(), Alignment); in getAtomicCmpSwap() 4546 return getAtomicCmpSwap(Opcode, dl, MemVT, VTs, Chain, Ptr, Cmp, Swp, MMO, in getAtomicCmpSwap() 4550 SDValue SelectionDAG::getAtomicCmpSwap(unsigned Opcode, SDLoc dl, EVT MemVT, in getAtomicCmpSwap() argument [all …]
|
D | DAGCombiner.cpp | 389 EVT MemVT, unsigned NumElem, 909 EVT MemVT = LD->getMemoryVT(); in PromoteOperand() local 911 ? (TLI.isLoadExtLegal(ISD::ZEXTLOAD, PVT, MemVT) ? ISD::ZEXTLOAD in PromoteOperand() 917 MemVT, LD->getMemOperand()); in PromoteOperand() 1131 EVT MemVT = LD->getMemoryVT(); in PromoteLoad() local 1133 ? (TLI.isLoadExtLegal(ISD::ZEXTLOAD, PVT, MemVT) ? ISD::ZEXTLOAD in PromoteLoad() 1138 MemVT, LD->getMemOperand()); in PromoteLoad() 3067 EVT MemVT = LN0->getMemoryVT(); in visitAND() local 3072 BitWidth - MemVT.getScalarType().getSizeInBits())) && in visitAND() 3074 TLI.isLoadExtLegal(ISD::ZEXTLOAD, VT, MemVT))) { in visitAND() [all …]
|
D | LegalizeVectorTypes.cpp | 2918 EVT MemVT((MVT::SimpleValueType) VT); in FindMemType() local 2919 unsigned MemVTWidth = MemVT.getSizeInBits(); in FindMemType() 2920 if (MemVT.getSizeInBits() <= WidenEltWidth) in FindMemType() 2922 if (TLI.isTypeLegal(MemVT) && (WidenWidth % MemVTWidth) == 0 && in FindMemType() 2926 RetVT = MemVT; in FindMemType() 2935 EVT MemVT = (MVT::SimpleValueType) VT; in FindMemType() local 2936 unsigned MemVTWidth = MemVT.getSizeInBits(); in FindMemType() 2937 if (TLI.isTypeLegal(MemVT) && WidenEltVT == MemVT.getVectorElementType() && in FindMemType() 2942 if (RetVT.getSizeInBits() < MemVTWidth || MemVT == WidenVT) in FindMemType() 2943 return MemVT; in FindMemType()
|
D | LegalizeDAG.cpp | 359 EVT MemVT = EVT::getIntegerVT(*DAG.getContext(), in ExpandUnalignedStore() local 365 MemVT, false, false, false, 0); in ExpandUnalignedStore() 370 MemVT, ST->isVolatile(), in ExpandUnalignedStore() 476 EVT MemVT = EVT::getIntegerVT(*DAG.getContext(), in ExpandUnalignedLoad() local 480 MemVT, LD->isVolatile(), in ExpandUnalignedLoad() 489 MachinePointerInfo(), MemVT, in ExpandUnalignedLoad() 1079 EVT MemVT = LD->getMemoryVT(); in LegalizeLoadOps() local 1082 if (!TLI.allowsMisalignedMemoryAccesses(MemVT, AS, Align)) { in LegalizeLoadOps() 3798 EVT MemVT = EVT::getIntegerVT(*DAG.getContext(), EntrySize * 8); in ExpandNode() local 3800 MachinePointerInfo::getJumpTable(), MemVT, in ExpandNode()
|
D | LegalizeIntegerTypes.cpp | 1910 EVT MemVT = N->getMemoryVT(); in ExpandIntRes_LOAD() local 1913 MemVT, isVolatile, isNonTemporal, isInvariant, in ExpandIntRes_LOAD() 1959 EVT MemVT = N->getMemoryVT(); in ExpandIntRes_LOAD() local 1960 unsigned EBytes = MemVT.getStoreSize(); in ExpandIntRes_LOAD() 1967 MemVT.getSizeInBits() - ExcessBits), in ExpandIntRes_LOAD()
|
D | SelectionDAGBuilder.cpp | 3716 MVT MemVT = getValue(I.getCompareOperand()).getSimpleValueType(); in visitAtomicCmpXchg() local 3717 SDVTList VTs = DAG.getVTList(MemVT, MVT::i1, MVT::Other); in visitAtomicCmpXchg() 3719 ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS, dl, MemVT, VTs, InChain, in visitAtomicCmpXchg()
|
/external/llvm/lib/Target/R600/ |
D | R600ISelLowering.cpp | 1328 EVT MemVT = StoreNode->getMemoryVT(); in LowerSTORE() local 1330 if (MemVT == MVT::i8) { in LowerSTORE() 1333 assert(MemVT == MVT::i16); in LowerSTORE() 1356 Op->getVTList(), Args, MemVT, in LowerSTORE() 1562 EVT MemVT = LoadNode->getMemoryVT(); in LowerLOAD() local 1563 assert(!MemVT.isVector() && (MemVT == MVT::i16 || MemVT == MVT::i8)); in LowerLOAD() 1565 DAG.getConstant(VT.getSizeInBits() - MemVT.getSizeInBits(), MVT::i32); in LowerLOAD() 1567 LoadNode->getPointerInfo(), MemVT, in LowerLOAD() 1664 EVT MemVT = VA.getLocVT(); in LowerFormalArguments() local 1665 if (!VT.isVector() && MemVT.isVector()) { in LowerFormalArguments() [all …]
|
D | AMDGPUISelLowering.cpp | 1189 EVT MemVT = Load->getMemoryVT(); in ScalarizeVectorLoad() local 1190 EVT MemEltVT = MemVT.getVectorElementType(); in ScalarizeVectorLoad() 1238 EVT MemVT = Load->getMemoryVT(); in SplitVectorLoad() local 1247 std::tie(LoMemVT, HiMemVT) = DAG.GetSplitDestVTs(MemVT); in SplitVectorLoad() 1278 EVT MemVT = Store->getMemoryVT(); in MergeVectorStore() local 1279 unsigned MemBits = MemVT.getSizeInBits(); in MergeVectorStore() 1284 if (!MemVT.isVector() || MemBits > 32) { in MergeVectorStore() 1293 EVT MemEltVT = MemVT.getVectorElementType(); in MergeVectorStore() 1295 unsigned MemNumElements = MemVT.getVectorNumElements(); in MergeVectorStore() 1296 unsigned PackedSize = MemVT.getStoreSizeInBits(); in MergeVectorStore() [all …]
|
D | SIISelLowering.h | 24 SDValue LowerParameter(SelectionDAG &DAG, EVT VT, EVT MemVT, SDLoc DL,
|
D | SIISelLowering.cpp | 371 SDValue SITargetLowering::LowerParameter(SelectionDAG &DAG, EVT VT, EVT MemVT, in LowerParameter() argument 392 VT, SL, Chain, Ptr, PtrOffset, PtrInfo, MemVT, in LowerParameter() 518 EVT MemVT = Splits[i].VT; in LowerFormalArguments() local 522 SDValue Arg = LowerParameter(DAG, VT, MemVT, DL, DAG.getRoot(), in LowerFormalArguments() 537 Info->ABIArgOffset = Offset + MemVT.getStoreSize(); in LowerFormalArguments()
|
/external/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 1562 EVT MemVT = EVT::getIntegerVT(*DAG.getContext(), EntrySize * 8); in lowerBR_JT() local 1564 MachinePointerInfo::getJumpTable(), MemVT, false, false, in lowerBR_JT() 2122 EVT VT = LD->getValueType(0), MemVT = LD->getMemoryVT(); in createLoadLR() local 2132 return DAG.getMemIntrinsicNode(Opc, DL, VTList, Ops, MemVT, in createLoadLR() 2139 EVT MemVT = LD->getMemoryVT(); in lowerLOAD() local 2145 if ((LD->getAlignment() >= MemVT.getSizeInBits() / 8) || in lowerLOAD() 2146 ((MemVT != MVT::i32) && (MemVT != MVT::i64))) in lowerLOAD() 2204 EVT MemVT = SD->getMemoryVT(), BasePtrVT = Ptr.getValueType(); in createStoreLR() local 2213 return DAG.getMemIntrinsicNode(Opc, DL, VTList, Ops, MemVT, in createStoreLR() 2264 EVT MemVT = SD->getMemoryVT(); in lowerSTORE() local [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 533 MVT MemVT; in PreprocessISelDAG() local 535 MemVT = DstVT; // FP_ROUND must use DstVT, we can't do a 'trunc load'. in PreprocessISelDAG() 537 MemVT = SrcIsSSE ? SrcVT : DstVT; in PreprocessISelDAG() 539 SDValue MemTmp = CurDAG->CreateStackTemporary(MemVT); in PreprocessISelDAG() 545 MemTmp, MachinePointerInfo(), MemVT, in PreprocessISelDAG() 549 MemVT, false, false, false, 0); in PreprocessISelDAG()
|
D | X86ISelLowering.cpp | 13780 EVT MemVT = Ld->getMemoryVT(); in LowerExtendedLoad() local 13788 assert(MemVT != RegVT && "Cannot extend to the same type"); in LowerExtendedLoad() 13789 assert(MemVT.isVector() && "Must load a vector from memory"); in LowerExtendedLoad() 13792 unsigned MemSz = MemVT.getSizeInBits(); in LowerExtendedLoad() 13807 assert(TLI.isTypeLegal(MemVT) && "If the memory type is a 128-bit type, " in LowerExtendedLoad() 13810 Load = DAG.getLoad(MemVT, dl, Ld->getChain(), Ld->getBasePtr(), in LowerExtendedLoad() 13825 Ld->getPointerInfo(), MemVT, Ld->isVolatile(), in LowerExtendedLoad() 13875 EVT::getVectorVT(*DAG.getContext(), MemVT.getScalarType(), in LowerExtendedLoad() 13876 loadRegZize / MemVT.getScalarType().getSizeInBits()); in LowerExtendedLoad() 13942 MemVT.getVectorElementType().getSizeInBits(); in LowerExtendedLoad() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelLowering.cpp | 1135 EVT MemVT = EltVT; in LowerCall() local 1155 MemVT, MachinePointerInfo()); in LowerCall() 1172 MemVT, MachinePointerInfo()); in LowerCall() 1192 unsigned PerStoreOffset = MemVT.getStoreSizeInBits() / 8 * VecSize; in LowerCall() 1246 MemVT, MachinePointerInfo()); in LowerCall() 3995 EVT MemVT = Mem->getMemoryVT(); in PerformANDCombine() local 3996 if (MemVT != MVT::v2i8 && MemVT != MVT::v4i8) { in PerformANDCombine()
|
D | NVPTXISelDAGToDAG.cpp | 2616 EVT MemVT = Mem->getMemoryVT(); in SelectLoadParam() local 2624 switch (MemVT.getSimpleVT().SimpleTy) { in SelectLoadParam() 2651 switch (MemVT.getSimpleVT().SimpleTy) { in SelectLoadParam() 2678 switch (MemVT.getSimpleVT().SimpleTy) { in SelectLoadParam()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 2558 EVT MemVT = Node->getMemoryVT(); in lowerATOMIC_LOAD_SUB() local 2559 if (MemVT == MVT::i32 || MemVT == MVT::i64) { in lowerATOMIC_LOAD_SUB() 2561 assert(Op.getValueType() == MemVT && "Mismatched VTs"); in lowerATOMIC_LOAD_SUB() 2571 NegSrc2 = DAG.getConstant(Value, MemVT); in lowerATOMIC_LOAD_SUB() 2574 NegSrc2 = DAG.getNode(ISD::SUB, DL, MemVT, DAG.getConstant(0, MemVT), in lowerATOMIC_LOAD_SUB() 2578 return DAG.getAtomic(ISD::ATOMIC_LOAD_ADD, DL, MemVT, in lowerATOMIC_LOAD_SUB()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 5973 bool PPCTargetLowering::canReuseLoadAddress(SDValue Op, EVT MemVT, in canReuseLoadAddress() argument 5992 if (LD->getMemoryVT() != MemVT) in canReuseLoadAddress() 7363 EVT MemVT = LN->getMemoryVT(); in LowerVectorLoad() local 7367 if (Alignment >= MemVT.getStoreSize()) in LowerVectorLoad() 7371 ScalarMemVT = MemVT.getScalarType(); in LowerVectorLoad() 7459 EVT MemVT = SN->getMemoryVT(); in LowerVectorStore() local 7463 if (Alignment >= MemVT.getStoreSize()) in LowerVectorStore() 7467 ScalarMemVT = MemVT.getScalarType(); in LowerVectorStore() 9960 EVT MemVT = LD->getMemoryVT(); in PerformDAGCombine() local 9961 Type *Ty = MemVT.getTypeForEVT(*DAG.getContext()); in PerformDAGCombine() [all …]
|
D | PPCISelLowering.h | 649 bool canReuseLoadAddress(SDValue Op, EVT MemVT, ReuseLoadInfo &RLI,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 2181 MVT MemVT = VA.getValVT(); in LowerFormalArguments() local 2187 MemVT = VA.getLocVT(); in LowerFormalArguments() 2202 MemVT, false, false, false, 0); in LowerFormalArguments() 8085 EVT MemVT = LoadSDN->getMemoryVT(); in performPostLD1Combine() local 8087 if (MemVT != VT.getVectorElementType()) in performPostLD1Combine() 8142 MemVT, in performPostLD1Combine()
|