Home
last modified time | relevance | path

Searched refs:MemVT (Results 1 – 25 of 68) sorted by relevance

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.h781 bool canMergeStoresTo(unsigned AddressSpace, EVT MemVT,
1040 bool storeOfVectorConstantIsCheap(EVT MemVT, unsigned NumElem, in storeOfVectorConstantIsCheap() argument
1388 SDVTList VTs, EVT MemVT, in X86StoreSDNode() argument
1390 :MemSDNode(Opcode, Order, dl, VTs, MemVT, MMO) {} in X86StoreSDNode()
1406 const DebugLoc &dl, SDVTList VTs, EVT MemVT, in X86MaskedStoreSDNode() argument
1408 : MemSDNode(Opcode, Order, dl, VTs, MemVT, MMO) {} in X86MaskedStoreSDNode()
1424 SDVTList VTs, EVT MemVT, MachineMemOperand *MMO) in TruncSStoreSDNode() argument
1425 : X86StoreSDNode(X86ISD::VTRUNCSTORES, Order, dl, VTs, MemVT, MMO) {} in TruncSStoreSDNode()
1436 SDVTList VTs, EVT MemVT, MachineMemOperand *MMO) in TruncUSStoreSDNode() argument
1437 : X86StoreSDNode(X86ISD::VTRUNCSTOREUS, Order, dl, VTs, MemVT, MMO) {} in TruncUSStoreSDNode()
[all …]
DX86ISelDAGToDAG.cpp800 MVT MemVT; in PreprocessISelDAG() local
802 MemVT = DstVT; // FP_ROUND must use DstVT, we can't do a 'trunc load'. in PreprocessISelDAG()
804 MemVT = SrcIsSSE ? SrcVT : DstVT; in PreprocessISelDAG()
806 SDValue MemTmp = CurDAG->CreateStackTemporary(MemVT); in PreprocessISelDAG()
812 MemTmp, MachinePointerInfo(), MemVT); in PreprocessISelDAG()
814 MachinePointerInfo(), MemVT); in PreprocessISelDAG()
2350 EVT MemVT = StoreNode->getMemoryVT(); in foldLoadStoreIntoMemOperand() local
2351 if (MemVT != MVT::i64 && MemVT != MVT::i32 && MemVT != MVT::i16 && in foldLoadStoreIntoMemOperand()
2352 MemVT != MVT::i8) in foldLoadStoreIntoMemOperand()
2382 switch (MemVT.getSimpleVT().SimpleTy) { in foldLoadStoreIntoMemOperand()
[all …]
/external/llvm/include/llvm/Target/
DTargetLowering.h303 virtual bool storeOfVectorConstantIsCheap(EVT MemVT, in storeOfVectorConstantIsCheap() argument
658 EVT MemVT) const { in getLoadExtAction() argument
659 if (ValVT.isExtended() || MemVT.isExtended()) return Expand; in getLoadExtAction()
661 unsigned MemI = (unsigned) MemVT.getSimpleVT().SimpleTy; in getLoadExtAction()
669 bool isLoadExtLegal(unsigned ExtType, EVT ValVT, EVT MemVT) const { in isLoadExtLegal() argument
670 return getLoadExtAction(ExtType, ValVT, MemVT) == Legal; in isLoadExtLegal()
675 bool isLoadExtLegalOrCustom(unsigned ExtType, EVT ValVT, EVT MemVT) const { in isLoadExtLegalOrCustom() argument
676 return getLoadExtAction(ExtType, ValVT, MemVT) == Legal || in isLoadExtLegalOrCustom()
677 getLoadExtAction(ExtType, ValVT, MemVT) == Custom; in isLoadExtLegalOrCustom()
683 LegalizeAction getTruncStoreAction(EVT ValVT, EVT MemVT) const { in getTruncStoreAction() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetLowering.h409 virtual bool storeOfVectorConstantIsCheap(EVT MemVT, in storeOfVectorConstantIsCheap() argument
421 virtual bool canMergeStoresTo(unsigned AS, EVT MemVT, in canMergeStoresTo() argument
945 EVT MemVT) const { in getLoadExtAction() argument
946 if (ValVT.isExtended() || MemVT.isExtended()) return Expand; in getLoadExtAction()
948 unsigned MemI = (unsigned) MemVT.getSimpleVT().SimpleTy; in getLoadExtAction()
956 bool isLoadExtLegal(unsigned ExtType, EVT ValVT, EVT MemVT) const { in isLoadExtLegal() argument
957 return getLoadExtAction(ExtType, ValVT, MemVT) == Legal; in isLoadExtLegal()
962 bool isLoadExtLegalOrCustom(unsigned ExtType, EVT ValVT, EVT MemVT) const { in isLoadExtLegalOrCustom() argument
963 return getLoadExtAction(ExtType, ValVT, MemVT) == Legal || in isLoadExtLegalOrCustom()
964 getLoadExtAction(ExtType, ValVT, MemVT) == Custom; in isLoadExtLegalOrCustom()
[all …]
DSelectionDAG.h992 SDValue getAtomicCmpSwap(unsigned Opcode, const SDLoc &dl, EVT MemVT,
998 SDValue getAtomicCmpSwap(unsigned Opcode, const SDLoc &dl, EVT MemVT,
1004 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, SDValue Chain,
1008 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, SDValue Chain,
1013 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, EVT VT,
1018 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT,
1028 ArrayRef<SDValue> Ops, EVT MemVT,
1036 ArrayRef<SDValue> Ops, EVT MemVT,
1056 SDValue Ptr, MachinePointerInfo PtrInfo, EVT MemVT,
1061 SDValue Chain, SDValue Ptr, EVT MemVT,
[all …]
DSelectionDAGNodes.h1368 EVT MemVT, MachineMemOperand *MMO)
1369 : MemSDNode(Opc, Order, dl, VTL, MemVT, MMO) {}
2018 SDVTList VTs, ISD::MemIndexedMode AM, EVT MemVT,
2020 : MemSDNode(NodeTy, Order, dl, VTs, MemVT, MMO) {
2052 ISD::MemIndexedMode AM, ISD::LoadExtType ETy, EVT MemVT,
2054 : LSBaseSDNode(ISD::LOAD, Order, dl, VTs, AM, MemVT, MMO) {
2080 ISD::MemIndexedMode AM, bool isTrunc, EVT MemVT,
2082 : LSBaseSDNode(ISD::STORE, Order, dl, VTs, AM, MemVT, MMO) {
2112 const DebugLoc &dl, SDVTList VTs, EVT MemVT,
2114 : MemSDNode(NodeTy, Order, dl, VTs, MemVT, MMO) {}
[all …]
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1154 EVT MemVT, MachineMemOperand *MMO,
1157 : MemSDNode(Opc, Order, dl, VTL, MemVT, MMO) {
1780 SDVTList VTs, ISD::MemIndexedMode AM, EVT MemVT,
1782 : MemSDNode(NodeTy, Order, dl, VTs, MemVT, MMO) {
1813 ISD::MemIndexedMode AM, ISD::LoadExtType ETy, EVT MemVT,
1815 : LSBaseSDNode(ISD::LOAD, Order, dl, VTs, AM, MemVT, MMO) {
1841 ISD::MemIndexedMode AM, bool isTrunc, EVT MemVT,
1843 : LSBaseSDNode(ISD::STORE, Order, dl, VTs, AM, MemVT, MMO) {
1870 const DebugLoc &dl, SDVTList VTs, EVT MemVT,
1872 : MemSDNode(NodeTy, Order, dl, VTs, MemVT, MMO) {}
[all …]
DSelectionDAG.h854 SDValue getAtomicCmpSwap(unsigned Opcode, const SDLoc &dl, EVT MemVT,
860 SDValue getAtomicCmpSwap(unsigned Opcode, const SDLoc &dl, EVT MemVT,
869 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, SDValue Chain,
873 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, SDValue Chain,
879 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, EVT VT,
885 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT,
890 SDValue getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT,
900 ArrayRef<SDValue> Ops, EVT MemVT,
906 ArrayRef<SDValue> Ops, EVT MemVT,
924 EVT MemVT, bool isVolatile, bool isNonTemporal,
[all …]
DBasicTTIImpl.h539 EVT MemVT = getTLI()->getValueType(DL, Src); in getMemoryOpCost() local
541 LA = getTLI()->getTruncStoreAction(LT.second, MemVT); in getMemoryOpCost()
543 LA = getTLI()->getLoadExtAction(ISD::EXTLOAD, LT.second, MemVT); in getMemoryOpCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp1163 EVT MemVT = Store->getMemoryVT(); in lowerPrivateTruncStore() local
1197 SDValue MaskedValue = DAG.getZeroExtendInReg(SExtValue, DL, MemVT); in lowerPrivateTruncStore()
1238 EVT MemVT = StoreNode->getMemoryVT(); in LowerSTORE() local
1253 MemVT, StoreNode->getAlignment(), in LowerSTORE()
1262 if (Align < MemVT.getStoreSize() && in LowerSTORE()
1263 !allowsMisalignedMemoryAccesses(MemVT, AS, Align, nullptr)) { in LowerSTORE()
1276 if (MemVT == MVT::i8) { in LowerSTORE()
1279 assert(MemVT == MVT::i16); in LowerSTORE()
1307 Op->getVTList(), Args, MemVT, in LowerSTORE()
1326 if (MemVT.bitsLT(MVT::i32)) in LowerSTORE()
[all …]
DSIISelLowering.h44 SDValue lowerKernargMemParameter(SelectionDAG &DAG, EVT VT, EVT MemVT,
97 SelectionDAG &DAG, EVT VT, EVT MemVT, const SDLoc &SL, SDValue Val,
119 EVT MemVT,
199 bool canMergeStoresTo(unsigned AS, EVT MemVT,
DAMDGPUISelLowering.cpp752 bool AMDGPUTargetLowering:: storeOfVectorConstantIsCheap(EVT MemVT, in storeOfVectorConstantIsCheap() argument
944 EVT MemVT = ArgVT; in analyzeFormalArgumentsCompute() local
953 MemVT = RegisterVT; in analyzeFormalArgumentsCompute()
955 MemVT = ArgVT; in analyzeFormalArgumentsCompute()
963 MemVT = RegisterVT; in analyzeFormalArgumentsCompute()
968 MemVT = ArgVT.getScalarType(); in analyzeFormalArgumentsCompute()
971 MemVT = RegisterVT; in analyzeFormalArgumentsCompute()
976 MemVT = EVT::getIntegerVT(State.getContext(), MemoryBits); in analyzeFormalArgumentsCompute()
985 MemVT = EVT::getVectorVT(State.getContext(), ScalarVT, NumElements); in analyzeFormalArgumentsCompute()
992 if (MemVT.isVector() && MemVT.getVectorNumElements() == 1) in analyzeFormalArgumentsCompute()
[all …]
DSIISelLowering.cpp1017 bool SITargetLowering::canMergeStoresTo(unsigned AS, EVT MemVT, in canMergeStoresTo() argument
1020 return (MemVT.getSizeInBits() <= 4 * 32); in canMergeStoresTo()
1023 return (MemVT.getSizeInBits() <= MaxPrivateBits); in canMergeStoresTo()
1025 return (MemVT.getSizeInBits() <= 2 * 32); in canMergeStoresTo()
1217 SDValue SITargetLowering::convertArgType(SelectionDAG &DAG, EVT VT, EVT MemVT, in convertArgType() argument
1222 VT.bitsLT(MemVT)) { in convertArgType()
1224 Val = DAG.getNode(Opc, SL, MemVT, Val, DAG.getValueType(VT)); in convertArgType()
1227 if (MemVT.isFloatingPoint()) in convertArgType()
1238 SelectionDAG &DAG, EVT VT, EVT MemVT, in lowerKernargMemParameter() argument
1242 Type *Ty = MemVT.getTypeForEVT(*DAG.getContext()); in lowerKernargMemParameter()
[all …]
DR600ISelLowering.h50 bool canMergeStoresTo(unsigned AS, EVT MemVT,
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DSelectionDAG.h590 SDValue getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, SDValue Chain,
595 SDValue getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, SDValue Chain,
603 SDValue getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, SDValue Chain,
607 SDValue getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, SDValue Chain,
614 SDValue getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, EVT VT,
619 SDValue getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, EVT VT,
631 EVT MemVT, MachinePointerInfo PtrInfo,
637 EVT MemVT, MachinePointerInfo PtrInfo,
643 EVT MemVT, MachineMemOperand *MMO);
657 EVT MemVT, bool isVolatile,
[all …]
DSelectionDAGNodes.h1016 AtomicSDNode(unsigned Opc, DebugLoc dl, SDVTList VTL, EVT MemVT,
1020 : MemSDNode(Opc, dl, VTL, MemVT, MMO) {
1024 AtomicSDNode(unsigned Opc, DebugLoc dl, SDVTList VTL, EVT MemVT,
1028 : MemSDNode(Opc, dl, VTL, MemVT, MMO) {
1032 AtomicSDNode(unsigned Opc, DebugLoc dl, SDVTList VTL, EVT MemVT,
1036 : MemSDNode(Opc, dl, VTL, MemVT, MMO) {
1564 EVT MemVT, MachineMemOperand *MMO)
1565 : MemSDNode(NodeTy, dl, VTs, MemVT, MMO) {
1601 ISD::MemIndexedMode AM, ISD::LoadExtType ETy, EVT MemVT,
1604 VTs, AM, MemVT, MMO) {
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp1319 EVT MemVT = Store->getMemoryVT(); in lowerPrivateTruncStore() local
1336 SDValue MaskedValue = DAG.getZeroExtendInReg(SExtValue, DL, MemVT); in lowerPrivateTruncStore()
1376 EVT MemVT = StoreNode->getMemoryVT(); in LowerSTORE() local
1378 if (MemVT == MVT::i8) { in LowerSTORE()
1381 assert(MemVT == MVT::i16); in LowerSTORE()
1404 Op->getVTList(), Args, MemVT, in LowerSTORE()
1425 EVT MemVT = StoreNode->getMemoryVT(); in LowerSTORE() local
1426 if (MemVT.bitsLT(MVT::i32)) in LowerSTORE()
1514 EVT MemVT = Load->getMemoryVT(); in lowerPrivateExtLoad() local
1542 EVT MemEltVT = MemVT.getScalarType(); in lowerPrivateExtLoad()
[all …]
DSIISelLowering.cpp563 SDValue SITargetLowering::LowerParameter(SelectionDAG &DAG, EVT VT, EVT MemVT, in LowerParameter() argument
576 if (MemVT.isFloatingPoint()) in LowerParameter()
581 VT, SL, Chain, Ptr, PtrOffset, PtrInfo, MemVT, in LowerParameter()
746 EVT MemVT = Splits[i].VT; in LowerFormalArguments() local
751 SDValue Arg = LowerParameter(DAG, VT, MemVT, DL, Chain, in LowerFormalArguments()
767 Info->ABIArgOffset = Offset + MemVT.getStoreSize(); in LowerFormalArguments()
2000 EVT MemVT = Load->getMemoryVT(); in LowerLOAD() local
2002 if (ExtType == ISD::NON_EXTLOAD && MemVT.getSizeInBits() < 32) { in LowerLOAD()
2003 assert(MemVT == MVT::i1 && "Only i1 non-extloads expected"); in LowerLOAD()
2015 DAG.getNode(ISD::TRUNCATE, DL, MemVT, NewLD), in LowerLOAD()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetLowering.h414 LegalizeAction getTruncStoreAction(EVT ValVT, EVT MemVT) const { in getTruncStoreAction() argument
416 MemVT.getSimpleVT() < MVT::LAST_VALUETYPE && in getTruncStoreAction()
419 [MemVT.getSimpleVT().SimpleTy]; in getTruncStoreAction()
424 bool isTruncStoreLegal(EVT ValVT, EVT MemVT) const { in isTruncStoreLegal() argument
425 return isTypeLegal(ValVT) && MemVT.isSimple() && in isTruncStoreLegal()
426 getTruncStoreAction(ValVT, MemVT) == Legal; in isTruncStoreLegal()
1072 void setTruncStoreAction(MVT ValVT, MVT MemVT, in setTruncStoreAction() argument
1074 assert(ValVT < MVT::LAST_VALUETYPE && MemVT < MVT::LAST_VALUETYPE && in setTruncStoreAction()
1076 TruncStoreActions[ValVT.SimpleTy][MemVT.SimpleTy] = (uint8_t)Action; in setTruncStoreAction()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3840 SDValue SelectionDAG::getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, in getAtomic() argument
3847 Alignment = getEVTAlignment(MemVT); in getAtomic()
3858 MF.getMachineMemOperand(PtrInfo, Flags, MemVT.getStoreSize(), Alignment); in getAtomic()
3860 return getAtomic(Opcode, dl, MemVT, Chain, Ptr, Cmp, Swp, MMO, in getAtomic()
3864 SDValue SelectionDAG::getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, in getAtomic() argument
3877 ID.AddInteger(MemVT.getRawBits()); in getAtomic()
3885 SDNode *N = new (NodeAllocator) AtomicSDNode(Opcode, dl, VTs, MemVT, Chain, in getAtomic()
3893 SDValue SelectionDAG::getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, in getAtomic() argument
3901 Alignment = getEVTAlignment(MemVT); in getAtomic()
3918 MemVT.getStoreSize(), Alignment); in getAtomic()
[all …]
DLegalizeVectorTypes.cpp2196 EVT MemVT((MVT::SimpleValueType) VT); in FindMemType() local
2197 unsigned MemVTWidth = MemVT.getSizeInBits(); in FindMemType()
2198 if (MemVT.getSizeInBits() <= WidenEltWidth) in FindMemType()
2200 if (TLI.isTypeLegal(MemVT) && (WidenWidth % MemVTWidth) == 0 && in FindMemType()
2204 RetVT = MemVT; in FindMemType()
2213 EVT MemVT = (MVT::SimpleValueType) VT; in FindMemType() local
2214 unsigned MemVTWidth = MemVT.getSizeInBits(); in FindMemType()
2215 if (TLI.isTypeLegal(MemVT) && WidenEltVT == MemVT.getVectorElementType() && in FindMemType()
2220 if (RetVT.getSizeInBits() < MemVTWidth || MemVT == WidenVT) in FindMemType()
2221 return MemVT; in FindMemType()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp4798 SDValue SelectionDAG::getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, in getAtomic() argument
4805 ID.AddInteger(MemVT.getRawBits()); in getAtomic()
4815 VTList, MemVT, MMO, SuccessOrdering, in getAtomic()
4824 SDValue SelectionDAG::getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, in getAtomic() argument
4828 return getAtomic(Opcode, dl, MemVT, VTList, Ops, MMO, Ordering, in getAtomic()
4833 unsigned Opcode, const SDLoc &dl, EVT MemVT, SDVTList VTs, SDValue Chain, in getAtomicCmpSwap() argument
4842 Alignment = getEVTAlignment(MemVT); in getAtomicCmpSwap()
4853 MF.getMachineMemOperand(PtrInfo, Flags, MemVT.getStoreSize(), Alignment); in getAtomicCmpSwap()
4855 return getAtomicCmpSwap(Opcode, dl, MemVT, VTs, Chain, Ptr, Cmp, Swp, MMO, in getAtomicCmpSwap()
4860 EVT MemVT, SDVTList VTs, SDValue Chain, in getAtomicCmpSwap() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp5992 SDValue SelectionDAG::getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, in getAtomic() argument
5996 ID.AddInteger(MemVT.getRawBits()); in getAtomic()
6006 VTList, MemVT, MMO); in getAtomic()
6015 unsigned Opcode, const SDLoc &dl, EVT MemVT, SDVTList VTs, SDValue Chain, in getAtomicCmpSwap() argument
6024 Alignment = getEVTAlignment(MemVT); in getAtomicCmpSwap()
6033 MF.getMachineMemOperand(PtrInfo, Flags, MemVT.getStoreSize(), Alignment, in getAtomicCmpSwap()
6037 return getAtomicCmpSwap(Opcode, dl, MemVT, VTs, Chain, Ptr, Cmp, Swp, MMO); in getAtomicCmpSwap()
6041 EVT MemVT, SDVTList VTs, SDValue Chain, in getAtomicCmpSwap() argument
6049 return getAtomic(Opcode, dl, MemVT, VTs, Ops, MMO); in getAtomicCmpSwap()
6052 SDValue SelectionDAG::getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT, in getAtomic() argument
[all …]
DDAGCombiner.cpp515 EVT &MemVT, unsigned ShAmt = 0);
536 EVT MemVT, unsigned NumStores,
1104 EVT MemVT = LD->getMemoryVT(); in PromoteOperand() local
1110 MemVT, LD->getMemOperand()); in PromoteOperand()
1339 EVT MemVT = LD->getMemoryVT(); in PromoteLoad() local
1344 MemVT, LD->getMemOperand()); in PromoteLoad()
4077 ISD::LoadExtType ExtType, EVT &MemVT, in isLegalNarrowLdSt() argument
4087 if (!MemVT.isRound()) in isLegalNarrowLdSt()
4095 if (LDST->getMemoryVT().getSizeInBits() < MemVT.getSizeInBits()) in isLegalNarrowLdSt()
4100 !TLI.allowsMemoryAccess(*DAG.getContext(), DAG.getDataLayout(), MemVT, in isLegalNarrowLdSt()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZISelDAGToDAG.cpp1303 EVT MemVT = StoreNode->getMemoryVT(); in tryFoldLoadStoreIntoMemOperand() local
1313 if (MemVT == MVT::i32) in tryFoldLoadStoreIntoMemOperand()
1315 else if (MemVT == MVT::i64) in tryFoldLoadStoreIntoMemOperand()
1324 if (MemVT == MVT::i32) in tryFoldLoadStoreIntoMemOperand()
1326 else if (MemVT == MVT::i64) in tryFoldLoadStoreIntoMemOperand()
1348 Operand = CurDAG->getTargetConstant(OperandV, DL, MemVT); in tryFoldLoadStoreIntoMemOperand()

123