Home
last modified time | relevance | path

Searched refs:LoadTy (Results 1 – 22 of 22) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp17 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument
21 if (StoredTy == LoadTy) in canCoerceMustAliasedValueToLoad()
26 if (isFirstClassAggregateOrScalableType(LoadTy) || in canCoerceMustAliasedValueToLoad()
37 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedSize()) in canCoerceMustAliasedValueToLoad()
52 LoadTy->getPointerAddressSpace()) { in canCoerceMustAliasedValueToLoad()
182 if (isFirstClassAggregateOrScalableType(LoadTy)) in analyzeLoadFromClobberingWrite()
338 if (!canCoerceMustAliasedValueToLoad(DepLI, LoadTy, DL)) in analyzeLoadFromClobberingLoad()
418 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, DL)) in analyzeLoadFromClobberingMemInst()
434 cast<PointerType>(LoadTy)->getAddressSpace()) { in getStoreValueForLoadHelper()
549 LLVMContext &Ctx = LoadTy->getContext(); in getMemInstValueForLoadHelper()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DVNCoercion.h37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
54 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr,
62 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI,
70 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr,
76 Value *getStoreValueForLoad(Value *SrcVal, unsigned Offset, Type *LoadTy,
81 Type *LoadTy, const DataLayout &DL);
87 Value *getLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, Type *LoadTy,
92 Type *LoadTy, const DataLayout &DL);
99 Type *LoadTy, Instruction *InsertPt,
104 Type *LoadTy, const DataLayout &DL);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1180 Type *LoadTy = nullptr; in vectorizeLoadChain() local
1182 LoadTy = cast<LoadInst>(V)->getType(); in vectorizeLoadChain()
1183 if (LoadTy->isIntOrIntVectorTy()) in vectorizeLoadChain()
1186 if (LoadTy->isPtrOrPtrVectorTy()) { in vectorizeLoadChain()
1187 LoadTy = Type::getIntNTy(F.getParent()->getContext(), in vectorizeLoadChain()
1188 DL.getTypeSizeInBits(LoadTy)); in vectorizeLoadChain()
1192 assert(LoadTy && "Can't determine LoadInst type from chain"); in vectorizeLoadChain()
1194 unsigned Sz = DL.getTypeSizeInBits(LoadTy); in vectorizeLoadChain()
1227 auto *VecLoadTy = dyn_cast<FixedVectorType>(LoadTy); in vectorizeLoadChain()
1229 VecTy = FixedVectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
[all …]
H A DVectorCombine.cpp193 Type *LoadTy = Load->getType(); in vectorizeLoadInsert() local
195 TTI.getMemoryOpCost(Instruction::Load, LoadTy, Alignment, AS); in vectorizeLoadInsert()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp229 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy);
729 IntegerType *LoadTy) { in CreateWideLoad() argument
769 LoadTy->getPointerTo(AddrSpace)); in CreateWideLoad()
770 LoadInst *WideLoad = IRB.CreateAlignedLoad(LoadTy, VecPtr, Base->getAlign()); in CreateWideLoad()
784 Value *ShiftVal = ConstantInt::get(LoadTy, OffsetTy->getBitWidth()); in CreateWideLoad()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp556 if (isa<ScalableVectorType>(LoadTy)) in FoldReinterpretLoadFromConstPtr()
560 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr()
571 if (LoadTy->isHalfTy()) in FoldReinterpretLoadFromConstPtr()
573 else if (LoadTy->isFloatTy()) in FoldReinterpretLoadFromConstPtr()
575 else if (LoadTy->isDoubleTy()) in FoldReinterpretLoadFromConstPtr()
577 else if (LoadTy->isVectorTy()) { in FoldReinterpretLoadFromConstPtr()
586 !LoadTy->isX86_AMXTy()) in FoldReinterpretLoadFromConstPtr()
588 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConstPtr()
589 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConstPtr()
591 if (LoadTy->isPtrOrPtrVectorTy()) { in FoldReinterpretLoadFromConstPtr()
[all …]
H A DLoads.cpp450 Type *LoadTy, in areNonOverlapSameBaseLoadAndStore() argument
462 auto LoadAccessSize = LocationSize::precise(DL.getTypeStoreSize(LoadTy)); in areNonOverlapSameBaseLoadAndStore()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp961 Type *LoadTy = CI->getType(); in optimizeCallInst() local
963 LoadTy->getScalarType()); in optimizeCallInst()
964 if (TTI.isLegalMaskedGather(LoadTy, Alignment)) in optimizeCallInst()
H A DGVN.cpp883 Type *LoadTy = Load->getType(); in MaterializeAdjustedValue() local
887 if (Res->getType() != LoadTy) { in MaterializeAdjustedValue()
888 Res = getStoreValueForLoad(Res, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
897 if (CoercedLoad->getType() == LoadTy && Offset == 0) { in MaterializeAdjustedValue()
900 Res = getLoadValueForLoad(CoercedLoad, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
913 Res = getMemInstValueForLoad(getMemIntrinValue(), Offset, LoadTy, in MaterializeAdjustedValue()
H A DSROA.cpp1271 Type *LoadTy = SomeLoad->getType(); in speculatePHINodeLoads() local
1273 PHINode *NewPN = PHIBuilder.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads()
1308 LoadTy, InVal, Alignment, in speculatePHINodeLoads()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h689 QualType LoadTy = QualType());
761 QualType LoadTy);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp1144 const LLT LoadTy = MRI.getType(DstReg); in applyMappingLoad() local
1145 unsigned LoadSize = LoadTy.getSizeInBits(); in applyMappingLoad()
1163 (MemSize == 32 || LoadTy.isVector() || !isScalarLoadLegal(MI))) in applyMappingLoad()
1191 std::tie(Part64, Part32) = splitUnequalType(LoadTy, 64); in applyMappingLoad()
1195 auto Undef = B.buildUndef(LoadTy); in applyMappingLoad()
1196 auto Ins0 = B.buildInsert(LoadTy, Undef, Load0, 0); in applyMappingLoad()
1199 LLT WiderTy = widen96To128(LoadTy); in applyMappingLoad()
1227 unsigned NumSplitParts = LoadTy.getSizeInBits() / MaxNonSmrdLoadSize; in applyMappingLoad()
1228 const LLT LoadSplitTy = LoadTy.divide(NumSplitParts); in applyMappingLoad()
1233 if (LoadTy.isVector()) { in applyMappingLoad()
H A DAMDGPUISelLowering.cpp806 bool AMDGPUTargetLowering::isLoadBitCastBeneficial(EVT LoadTy, EVT CastTy, in isLoadBitCastBeneficial() argument
810 assert(LoadTy.getSizeInBits() == CastTy.getSizeInBits()); in isLoadBitCastBeneficial()
812 if (LoadTy.getScalarType() == MVT::i32) in isLoadBitCastBeneficial()
815 unsigned LScalarSize = LoadTy.getScalarSizeInBits(); in isLoadBitCastBeneficial()
H A DAMDGPULegalizerInfo.cpp2439 LLT LoadTy = Ty.getSizeInBits() == 32 ? PtrTy : Ty; in legalizeGlobalValue() local
2444 LoadTy, Align(8)); in legalizeGlobalValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp550 static bool isMinMaxWithLoads(Value *V, Type *&LoadTy) { in isMinMaxWithLoads() argument
564 LoadTy = L1->getType(); in isMinMaxWithLoads()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp373 LLT LoadTy = Dst.getLLTTy(*getMRI()); in buildLoadFromOffset() local
375 getMF().getMachineMemOperand(&BaseMMO, Offset, LoadTy); in buildLoadFromOffset()
H A DLegalizerHelper.cpp2903 LLT LoadTy = DstTy; in lowerLoad() local
2908 LoadTy = WideMemTy; in lowerLoad()
2913 auto NewLoad = MIRBuilder.buildLoad(LoadTy, PtrReg, *NewMMO); in lowerLoad()
2916 auto NewLoad = MIRBuilder.buildLoad(LoadTy, PtrReg, *NewMMO); in lowerLoad()
2924 if (DstTy != LoadTy) in lowerLoad()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp2987 MVT LoadTy = ty(Op); in LowerUnalignedLoad() local
2988 unsigned NeedAlign = Subtarget.getTypeAlignment(LoadTy).value(); in LowerUnalignedLoad()
3027 assert(LoadTy.getSizeInBits() == 8*NeedAlign); in LowerUnalignedLoad()
3060 SDValue Load0 = DAG.getLoad(LoadTy, dl, Chain, Base0, WideMMO); in LowerUnalignedLoad()
3061 SDValue Load1 = DAG.getLoad(LoadTy, dl, Chain, Base1, WideMMO); in LowerUnalignedLoad()
3063 SDValue Aligned = DAG.getNode(HexagonISD::VALIGN, dl, LoadTy, in LowerUnalignedLoad()
H A DHexagonISelLoweringHVX.cpp1902 MVT LoadTy = MVT::getVectorVT(MVT::i8, HwLen); in WidenHvxLoad() local
1906 SDValue Load = DAG.getMaskedLoad(LoadTy, dl, Chain, Base, Offset, Mask, in WidenHvxLoad()
1907 DAG.getUNDEF(LoadTy), LoadTy, MemOp, in WidenHvxLoad()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp2966 QualType LoadTy) { in evalLoad() argument
2987 if (LoadTy.isNull()) in evalLoad()
2988 LoadTy = BoundEx->getType(); in evalLoad()
2989 V = state->getSVal(location.castAs<Loc>(), LoadTy); in evalLoad()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp1508 MVT LoadTy = TLI.getRegisterType(*DAG.getContext(), MVT::i8); in getSignAsIntValue() local
1510 SDValue StackPtr = DAG.CreateStackTemporary(FloatVT, LoadTy); in getSignAsIntValue()
1535 State.IntValue = DAG.getExtLoad(ISD::EXTLOAD, DL, LoadTy, State.Chain, IntPtr, in getSignAsIntValue()
1537 State.SignMask = APInt::getOneBitSet(LoadTy.getScalarSizeInBits(), 7); in getSignAsIntValue()
H A DSelectionDAGBuilder.cpp7574 Type *LoadTy = in getMemCmpLoad() local
7577 LoadTy = FixedVectorType::get(LoadTy, LoadVT.getVectorNumElements()); in getMemCmpLoad()
7580 PointerType::getUnqual(LoadTy)); in getMemCmpLoad()
7583 const_cast<Constant *>(LoadInput), LoadTy, *Builder.DL)) in getMemCmpLoad()