Home
last modified time | relevance | path

Searched refs:PtrInfo (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h172 MachinePointerInfo PtrInfo; variable
190 MachineMemOperand(MachinePointerInfo PtrInfo, Flags flags, LocationSize TS,
196 MachineMemOperand(MachinePointerInfo PtrInfo, Flags flags, LLT type, Align a,
203 const MachinePointerInfo &getPointerInfo() const { return PtrInfo; } in getPointerInfo()
213 return dyn_cast_if_present<const Value *>(PtrInfo.V); in getValue()
217 return dyn_cast_if_present<const PseudoSourceValue *>(PtrInfo.V); in getPseudoValue()
220 const void *getOpaqueValue() const { return PtrInfo.V.getOpaqueValue(); } in getOpaqueValue()
230 int64_t getOffset() const { return PtrInfo.Offset; } in getOffset()
232 unsigned getAddrSpace() const { return PtrInfo.getAddrSpace(); } in getAddrSpace()
325 void setValue(const Value *NewSV) { PtrInfo.V = NewSV; } in setValue()
[all …]
H A DMachineFunction.h1030 MachinePointerInfo PtrInfo, MachineMemOperand::Flags f, LLT MemTy,
1036 MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, LocationSize Size,
1042 MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, uint64_t Size,
1047 return getMachineMemOperand(PtrInfo, F, LocationSize::precise(Size),
1077 const MachinePointerInfo &PtrInfo,
1080 const MachinePointerInfo &PtrInfo,
1083 const MachinePointerInfo &PtrInfo,
1085 return getMachineMemOperand(MMO, PtrInfo, LocationSize::precise(Size));
H A DSelectionDAG.h1322 EVT MemVT, MachinePointerInfo PtrInfo, Align Alignment,
1329 EVT MemVT, MachinePointerInfo PtrInfo,
1335 return getMemIntrinsicNode(Opcode, dl, VTList, Ops, MemVT, PtrInfo,
1365 MachinePointerInfo PtrInfo,
1374 SDValue Ptr, MachinePointerInfo PtrInfo, EVT MemVT,
1385 MachinePointerInfo PtrInfo, EVT MemVT, Align Alignment,
1391 SDValue Chain, SDValue Ptr, SDValue Offset, MachinePointerInfo PtrInfo,
1396 return getLoad(AM, ExtType, VT, dl, Chain, Ptr, Offset, PtrInfo, MemVT,
1411 MachinePointerInfo PtrInfo, Align Alignment,
1416 MachinePointerInfo PtrInfo, MaybeAlign Alignment = MaybeAlign(),
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp119 using PtrInfo = DenseMapInfo<const MachineOperand *>; typedef
122 return MemOpKey(PtrInfo::getEmptyKey(), PtrInfo::getEmptyKey(), in getEmptyKey()
123 PtrInfo::getEmptyKey(), PtrInfo::getEmptyKey(), in getEmptyKey()
124 PtrInfo::getEmptyKey()); in getEmptyKey()
128 return MemOpKey(PtrInfo::getTombstoneKey(), PtrInfo::getTombstoneKey(), in getTombstoneKey()
129 PtrInfo::getTombstoneKey(), PtrInfo::getTombstoneKey(), in getTombstoneKey()
130 PtrInfo::getTombstoneKey()); in getTombstoneKey()
136 assert(Val.Disp != PtrInfo::getEmptyKey() && "Cannot hash the empty key"); in getHashValue()
137 assert(Val.Disp != PtrInfo::getTombstoneKey() && in getHashValue()
179 if (RHS.Disp == PtrInfo::getEmptyKey()) in isEqual()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h54 class PtrInfo {
56 PtrInfo() : AbortedInfo(nullptr, false), EscapedInfo(nullptr, false) {} in PtrInfo() function
116 PtrInfo PI;
212 PtrInfo visitPtr(Instruction &I) { in visitPtr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFunction.cpp488 MachinePointerInfo PtrInfo, MachineMemOperand::Flags F, LocationSize Size, in getMachineMemOperand() argument
497 MachineMemOperand(PtrInfo, F, Size, BaseAlignment, AAInfo, Ranges, SSID, in getMachineMemOperand()
502 MachinePointerInfo PtrInfo, MachineMemOperand::Flags f, LLT MemTy, in getMachineMemOperand() argument
507 MachineMemOperand(PtrInfo, f, MemTy, base_alignment, AAInfo, Ranges, SSID, in getMachineMemOperand()
513 const MachinePointerInfo &PtrInfo, in getMachineMemOperand() argument
520 MachineMemOperand(PtrInfo, MMO->getFlags(), Size, MMO->getBaseAlign(), in getMachineMemOperand()
526 const MachineMemOperand *MMO, const MachinePointerInfo &PtrInfo, LLT Ty) { in getMachineMemOperand() argument
528 MachineMemOperand(PtrInfo, MMO->getFlags(), Ty, MMO->getBaseAlign(), in getMachineMemOperand()
536 const MachinePointerInfo &PtrInfo = MMO->getPointerInfo(); in getMachineMemOperand() local
540 Align Alignment = PtrInfo.V.isNull() in getMachineMemOperand()
[all …]
H A DMachineOperand.cpp1089 : PtrInfo(ptrinfo), MemoryType(type), FlagVals(f), BaseAlign(a), in MachineMemOperand()
1091 assert((PtrInfo.V.isNull() || isa<const PseudoSourceValue *>(PtrInfo.V) || in MachineMemOperand()
1092 isa<PointerType>(cast<const Value *>(PtrInfo.V)->getType())) && in MachineMemOperand()
1130 PtrInfo = MMO->PtrInfo; in refineAlignment()
H A DFixupStatepointCallerSaved.cpp544 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIndex); in rewriteStatepoint() local
549 MF.getMachineMemOperand(PtrInfo, Flags, getRegisterSize(TRI, R), in rewriteStatepoint()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp361 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, FI.getIndex()); in getMachineMemOperand() local
365 return MF.getMachineMemOperand(PtrInfo, MMOFlags, in getMachineMemOperand()
405 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, Index); in spillIncomingStatepointValue() local
407 PtrInfo, MachineMemOperand::MOStore, MFI.getObjectSize(Index), in spillIncomingStatepointValue()
1270 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, Index); in visitGCRelocate() local
1271 auto *LoadMMO = MF.getMachineMemOperand(PtrInfo, MachineMemOperand::MOLoad, in visitGCRelocate()
H A DLegalizeTypesGeneric.cpp167 MachinePointerInfo PtrInfo = in ExpandRes_BITCAST() local
171 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, InOp, StackPtr, PtrInfo); in ExpandRes_BITCAST()
174 Lo = DAG.getLoad(NOutVT, dl, Store, StackPtr, PtrInfo, NOutAlign); in ExpandRes_BITCAST()
183 PtrInfo.getWithOffset(IncrementSize), NOutAlign); in ExpandRes_BITCAST()
H A DSelectionDAG.cpp8726 EVT MemVT, MachinePointerInfo PtrInfo, Align Alignment, in getMemIntrinsicNode() argument
8734 MF.getMachineMemOperand(PtrInfo, Flags, Size, Alignment, AAInfo); in getMemIntrinsicNode()
8878 MachinePointerInfo PtrInfo, EVT MemVT, in getLoad() argument
8889 if (PtrInfo.V.isNull()) in getLoad()
8890 PtrInfo = InferPointerInfo(PtrInfo, *this, Ptr, Offset); in getLoad()
8894 MachineMemOperand *MMO = MF.getMachineMemOperand(PtrInfo, MMOFlags, Size, in getLoad()
8950 SDValue Ptr, MachinePointerInfo PtrInfo, in getLoad() argument
8956 PtrInfo, VT, Alignment, MMOFlags, AAInfo, Ranges); in getLoad()
8968 MachinePointerInfo PtrInfo, EVT MemVT, in getExtLoad() argument
8973 return getLoad(ISD::UNINDEXED, ExtType, VT, dl, Chain, Ptr, Undef, PtrInfo, in getExtLoad()
[all …]
H A DLegalizeDAG.cpp269 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FI); in getStackAlignedMMO() local
273 return MF.getMachineMemOperand(PtrInfo, MachineMemOperand::MOStore, in getStackAlignedMMO()
1473 MachinePointerInfo PtrInfo = in ExpandInsertToVectorThroughStack() local
1477 SDValue Ch = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, PtrInfo); in ExpandInsertToVectorThroughStack()
1503 return DAG.getLoad(Op.getValueType(), dl, Ch, StackPtr, PtrInfo); in ExpandInsertToVectorThroughStack()
1521 MachinePointerInfo PtrInfo = in ExpandVectorBuildThroughStack() local
1547 PtrInfo.getWithOffset(Offset), MemVT)); in ExpandVectorBuildThroughStack()
1550 Idx, PtrInfo.getWithOffset(Offset))); in ExpandVectorBuildThroughStack()
1560 return DAG.getLoad(VT, dl, StoreChain, FIPtr, PtrInfo); in ExpandVectorBuildThroughStack()
1799 MachinePointerInfo PtrInfo = in EmitStackConvert() local
[all …]
H A DLegalizeVectorTypes.cpp1630 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIndex); in SplitVecRes_INSERT_SUBVECTOR() local
1632 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, PtrInfo, in SplitVecRes_INSERT_SUBVECTOR()
1642 Lo = DAG.getLoad(Lo.getValueType(), dl, Store, StackPtr, PtrInfo, in SplitVecRes_INSERT_SUBVECTOR()
1943 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIndex); in SplitVecRes_INSERT_VECTOR_ELT() local
1945 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, PtrInfo, in SplitVecRes_INSERT_VECTOR_ELT()
1960 Lo = DAG.getLoad(LoVT, dl, Store, StackPtr, PtrInfo, SmallestAlign); in SplitVecRes_INSERT_VECTOR_ELT()
3048 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIndex); in SplitVecRes_VP_REVERSE() local
3051 PtrInfo, MachineMemOperand::MOStore, LocationSize::beforeOrAfterPointer(), in SplitVecRes_VP_REVERSE()
3054 PtrInfo, MachineMemOperand::MOLoad, LocationSize::beforeOrAfterPointer(), in SplitVecRes_VP_REVERSE()
3521 auto PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIndex); in SplitVecOp_EXTRACT_SUBVECTOR() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.h405 const MachinePointerInfo &PtrInfo) const { in getAddrGlobal() argument
408 return DAG.getLoad(Ty, DL, Chain, Tgt, PtrInfo); in getAddrGlobal()
419 const MachinePointerInfo &PtrInfo) const { in getAddrGlobalLargeGOT() argument
425 return DAG.getLoad(Ty, DL, Chain, Wrapper, PtrInfo); in getAddrGlobalLargeGOT()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFrameLowering.cpp145 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FI); in buildPrologSpill() local
147 PtrInfo, MachineMemOperand::MOStore, FrameInfo.getObjectSize(FI), in buildPrologSpill()
169 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FI); in buildEpilogRestore() local
171 PtrInfo, MachineMemOperand::MOLoad, FrameInfo.getObjectSize(FI), in buildEpilogRestore()
433 MachinePointerInfo PtrInfo(AMDGPUAS::CONSTANT_ADDRESS); in emitEntryFunctionFlatScratchInit() local
436 PtrInfo, in emitEntryFunctionFlatScratchInit()
750 MachinePointerInfo PtrInfo(AMDGPUAS::CONSTANT_ADDRESS); in emitEntryFunctionScratchRsrcRegSetup() local
752 auto MMO = MF.getMachineMemOperand(PtrInfo, in emitEntryFunctionScratchRsrcRegSetup()
802 MachinePointerInfo PtrInfo(AMDGPUAS::CONSTANT_ADDRESS); in emitEntryFunctionScratchRsrcRegSetup() local
804 PtrInfo, in emitEntryFunctionScratchRsrcRegSetup()
H A DR600ISelLowering.cpp1053 MachinePointerInfo PtrInfo(AMDGPUAS::PRIVATE_ADDRESS); in lowerPrivateTruncStore() local
1054 SDValue Dst = DAG.getLoad(MVT::i32, DL, Chain, Ptr, PtrInfo); in lowerPrivateTruncStore()
1093 SDValue NewStore = DAG.getStore(Chain, DL, Value, Ptr, PtrInfo); in lowerPrivateTruncStore()
1285 MachinePointerInfo PtrInfo(AMDGPUAS::PRIVATE_ADDRESS); in lowerPrivateExtLoad() local
1286 SDValue Read = DAG.getLoad(MVT::i32, DL, Chain, Ptr, PtrInfo); in lowerPrivateExtLoad()
1510 MachinePointerInfo PtrInfo(AMDGPUAS::PARAM_I_ADDRESS); in LowerFormalArguments() local
1514 PtrInfo, in LowerFormalArguments()
H A DSILoadStoreOptimizer.cpp912 MachinePointerInfo PtrInfo(MMOa->getPointerInfo()); in combineKnownAdjacentMMOs() local
915 PtrInfo.AddrSpace = AMDGPUAS::FLAT_ADDRESS; in combineKnownAdjacentMMOs()
918 return MF->getMachineMemOperand(MMOa, PtrInfo, Size); in combineKnownAdjacentMMOs()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp430 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIdx); in applyNonConstInsert() local
433 Builder.buildStore(Insert.getOperand(1), StackTemp, PtrInfo, Align(8)); in applyNonConstInsert()
448 Builder.buildStore(Insert.getElementReg(), EltPtr, PtrInfo, Align(1)); in applyNonConstInsert()
450 Builder.buildLoad(Insert.getReg(0), StackTemp, PtrInfo, Align(8)); in applyNonConstInsert()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp1009 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FI); in insertSRetLoads() local
1014 auto *MMO = MF.getMachineMemOperand(PtrInfo, MachineMemOperand::MOLoad, in insertSRetLoads()
1039 MachinePointerInfo PtrInfo(AS); in insertSRetStores() local
1044 auto *MMO = MF.getMachineMemOperand(PtrInfo, MachineMemOperand::MOStore, in insertSRetStores()
H A DMachineIRBuilder.cpp425 MachinePointerInfo PtrInfo, Align Alignment, in buildLoad() argument
433 getMF().getMachineMemOperand(PtrInfo, MMOFlags, Ty, Alignment, AAInfo); in buildLoad()
483 MachinePointerInfo PtrInfo, Align Alignment, in buildStore() argument
491 getMF().getMachineMemOperand(PtrInfo, MMOFlags, Ty, Alignment, AAInfo); in buildStore()
H A DLegalizerHelper.cpp4129 MachinePointerInfo &PtrInfo) { in createStackTemporary() argument
4137 PtrInfo = MachinePointerInfo::getFixedStack(MF, FrameIdx); in createStackTemporary()
7565 MachinePointerInfo PtrInfo; in lowerExtractInsertVectorElt() local
7567 TypeSize::getFixed(VecTy.getSizeInBytes()), VecAlign, PtrInfo); in lowerExtractInsertVectorElt()
7568 MIRBuilder.buildStore(SrcVec, StackTemp, PtrInfo, VecAlign); in lowerExtractInsertVectorElt()
7576 PtrInfo = PtrInfo.getWithOffset(Offset); in lowerExtractInsertVectorElt()
7581 PtrInfo = MachinePointerInfo(MRI.getType(EltPtr).getAddressSpace()); in lowerExtractInsertVectorElt()
7586 MIRBuilder.buildStore(InsertVal, EltPtr, PtrInfo, EltAlign); in lowerExtractInsertVectorElt()
7589 MIRBuilder.buildLoad(DstReg, StackTemp, PtrInfo, VecAlign); in lowerExtractInsertVectorElt()
7591 MIRBuilder.buildLoad(DstReg, EltPtr, PtrInfo, EltAlign); in lowerExtractInsertVectorElt()
[all …]
H A DCombinerHelper.cpp960 auto PtrInfo = MMO.getPointerInfo(); in matchCombineLoadWithAndMask() local
961 auto *NewMMO = MF.getMachineMemOperand(&MMO, PtrInfo, MemDesc.MemoryTy); in matchCombineLoadWithAndMask()
1098 auto PtrInfo = MMO.getPointerInfo(); in applySextInRegOfLoad() local
1099 auto *NewMMO = MF.getMachineMemOperand(&MMO, PtrInfo, ScalarSizeBits / 8); in applySextInRegOfLoad()
1363 MachinePointerInfo PtrInfo; in matchCombineExtractedVectorLoad() local
1374 PtrInfo = MMO.getPointerInfo().getWithOffset(Offset); in matchCombineExtractedVectorLoad()
1379 PtrInfo = MachinePointerInfo(MMO.getPointerInfo().getAddrSpace()); in matchCombineExtractedVectorLoad()
1388 auto *NewMMO = MF.getMachineMemOperand(&MMO, PtrInfo, VecEltTy); in matchCombineExtractedVectorLoad()
1417 B.buildLoad(Result, finalPtr, PtrInfo, Alignment); in matchCombineExtractedVectorLoad()
4000 auto PtrInfo = MMO.getPointerInfo(); in matchLoadOrCombine() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1404 using PtrInfo = DenseMapInfo<InstrListElem *>; in gatherChains() typedef
1406 static InstrListElem *getEmptyKey() { return PtrInfo::getEmptyKey(); } in gatherChains()
1408 return PtrInfo::getTombstoneKey(); in gatherChains()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp300 using PtrInfo = DenseMapInfo<Instruction *>; typedef
304 return {PtrInfo::getEmptyKey(), 0, 0, 0}; in getEmptyKey()
308 return {PtrInfo::getTombstoneKey(), 0, 0, 0}; in getTombstoneKey()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerHelper.h295 MachinePointerInfo &PtrInfo);

12