Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp22 if (StoredTy == LoadTy) in canCoerceMustAliasedValueToLoad()
27 if (isFirstClassAggregateOrScalableType(LoadTy) || in canCoerceMustAliasedValueToLoad()
38 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad()
53 LoadTy->getPointerAddressSpace()) { in canCoerceMustAliasedValueToLoad()
64 if (StoredTy->isTargetExtTy() || LoadTy->isTargetExtTy()) in canCoerceMustAliasedValueToLoad()
179 if (isFirstClassAggregateOrScalableType(LoadTy)) in analyzeLoadFromClobberingWrite()
238 if (!canCoerceMustAliasedValueToLoad(DepLI, LoadTy, DL)) in analyzeLoadFromClobberingLoad()
303 cast<PointerType>(LoadTy)->getAddressSpace()) { in getStoreValueForLoadHelper()
363 LLVMContext &Ctx = LoadTy->getContext(); in getMemInstValueForLoad()
409 LLVMContext &Ctx = LoadTy->getContext(); in getConstantMemInstValueForLoad()
[all …]
/freebsd-14.2/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,
77 Value *getValueForLoad(Value *SrcVal, unsigned Offset, Type *LoadTy,
82 Type *LoadTy, const DataLayout &DL);
89 Type *LoadTy, Instruction *InsertPt,
94 Type *LoadTy, const DataLayout &DL);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp549 if (isa<ScalableVectorType>(LoadTy)) in FoldReinterpretLoadFromConst()
552 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConst()
560 if (!LoadTy->isFloatingPointTy() && !LoadTy->isPointerTy() && in FoldReinterpretLoadFromConst()
561 !LoadTy->isVectorTy()) in FoldReinterpretLoadFromConst()
568 !LoadTy->isX86_AMXTy()) in FoldReinterpretLoadFromConst()
570 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConst()
571 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConst()
573 if (LoadTy->isPtrOrPtrVectorTy()) { in FoldReinterpretLoadFromConst()
576 !LoadTy->isX86_AMXTy()) in FoldReinterpretLoadFromConst()
577 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConst()
[all …]
H A DLoads.cpp471 Type *LoadTy, in areNonOverlapSameBaseLoadAndStore() argument
483 auto LoadAccessSize = LocationSize::precise(DL.getTypeStoreSize(LoadTy)); in areNonOverlapSameBaseLoadAndStore()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp224 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy);
728 IntegerType *LoadTy) { in CreateWideLoad() argument
767 LoadInst *WideLoad = IRB.CreateAlignedLoad(LoadTy, VecPtr, Base->getAlign()); in CreateWideLoad()
781 Value *ShiftVal = ConstantInt::get(LoadTy, OffsetTy->getBitWidth()); in CreateWideLoad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp898 Type *LoadTy = LI->getType(); in foldPatternedLoads() local
911 Constant *Ca = ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL); in foldPatternedLoads()
915 unsigned E = GVSize - DL.getTypeStoreSize(LoadTy); in foldPatternedLoads()
917 if (Ca != ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL)) in foldPatternedLoads()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp949 Type *LoadTy = CI->getType(); in optimizeCallInst() local
951 LoadTy->getScalarType()); in optimizeCallInst()
952 if (TTI.isLegalMaskedGather(LoadTy, Alignment) && in optimizeCallInst()
953 !TTI.forceScalarizeMaskedGather(cast<VectorType>(LoadTy), Alignment)) in optimizeCallInst()
H A DGVN.cpp1010 Type *LoadTy = Load->getType(); in MaterializeAdjustedValue() local
1014 if (Res->getType() != LoadTy) { in MaterializeAdjustedValue()
1015 Res = getValueForLoad(Res, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
1024 if (CoercedLoad->getType() == LoadTy && Offset == 0) { in MaterializeAdjustedValue()
1028 Res = getValueForLoad(CoercedLoad, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
1049 Res = getMemInstValueForLoad(getMemIntrinValue(), Offset, LoadTy, in MaterializeAdjustedValue()
1148 static Value *findDominatingValue(const MemoryLocation &Loc, Type *LoadTy, in findDominatingValue() argument
1162 if (LI->getPointerOperand() == Loc.Ptr && LI->getType() == LoadTy) in findDominatingValue()
H A DSROA.cpp1654 Type *LoadTy = SomeLoad->getType(); in speculatePHINodeLoads() local
1656 PHINode *NewPN = IRB.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads()
1690 LoadTy, InVal, Alignment, in speculatePHINodeLoads()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp669 Type *LoadTy = Load.getType(); in combineLoadToOperationType() local
671 assert(!LoadTy->isX86_AMXTy() && "Load from x86_amx* should not happen!"); in combineLoadToOperationType()
679 LoadTy->isPtrOrPtrVectorTy() == DestTy->isPtrOrPtrVectorTy() && in combineLoadToOperationType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp229 Type *LoadTy = Load->getType(); in vectorizeLoadInsert() local
232 TTI.getMemoryOpCost(Instruction::Load, LoadTy, Alignment, AS); in vectorizeLoadInsert()
307 Type *LoadTy = Load->getType(); in widenSubvectorLoad() local
315 TTI.getMemoryOpCost(Instruction::Load, LoadTy, Alignment, AS); in widenSubvectorLoad()
H A DSLPVectorizer.cpp7054 auto *LoadTy = FixedVectorType::get(VL.front()->getType(), VF); in getBuildVectorCost() local
7058 TTI.getMemoryOpCost(Instruction::Load, LoadTy, Alignment, in getBuildVectorCost()
7069 Instruction::Load, LoadTy, LI0->getPointerOperand(), in getBuildVectorCost()
7076 std::nullopt, CostKind, I, LoadTy); in getBuildVectorCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp1060 const LLT LoadTy = MRI.getType(DstReg); in applyMappingLoad() local
1061 unsigned LoadSize = LoadTy.getSizeInBits(); in applyMappingLoad()
1079 (MemSize == 32 || LoadTy.isVector() || !isScalarLoadLegal(MI))) in applyMappingLoad()
1114 std::tie(Part64, Part32) = splitUnequalType(LoadTy, 64); in applyMappingLoad()
1120 LLT WiderTy = widen96To128(LoadTy); in applyMappingLoad()
1153 unsigned NumSplitParts = LoadTy.getSizeInBits() / MaxNonSmrdLoadSize; in applyMappingLoad()
1154 const LLT LoadSplitTy = LoadTy.divide(NumSplitParts); in applyMappingLoad()
1158 if (LoadTy.isVector()) { in applyMappingLoad()
H A DAMDGPULegalizerInfo.cpp2941 LLT LoadTy = Ty.getSizeInBits() == 32 ? PtrTy : Ty; in legalizeGlobalValue() local
2946 LoadTy, Align(8)); in legalizeGlobalValue()
5806 LLT LoadTy = LLT::fixed_vector(NumLoadDWords, S32); in legalizeBufferLoad() local
5807 Register LoadDstReg = B.getMRI()->createGenericVirtualRegister(LoadTy); in legalizeBufferLoad()
H A DAMDGPUISelLowering.cpp810 bool AMDGPUTargetLowering::isLoadBitCastBeneficial(EVT LoadTy, EVT CastTy, in isLoadBitCastBeneficial() argument
814 assert(LoadTy.getSizeInBits() == CastTy.getSizeInBits()); in isLoadBitCastBeneficial()
816 if (LoadTy.getScalarType() == MVT::i32) in isLoadBitCastBeneficial()
819 unsigned LScalarSize = LoadTy.getScalarSizeInBits(); in isLoadBitCastBeneficial()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h685 QualType LoadTy = QualType());
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3156 MVT LoadTy = ty(Op); in LowerUnalignedLoad() local
3157 unsigned NeedAlign = Subtarget.getTypeAlignment(LoadTy).value(); in LowerUnalignedLoad()
3196 assert(LoadTy.getSizeInBits() == 8*NeedAlign); in LowerUnalignedLoad()
3229 SDValue Load0 = DAG.getLoad(LoadTy, dl, Chain, Base0, WideMMO); in LowerUnalignedLoad()
3230 SDValue Load1 = DAG.getLoad(LoadTy, dl, Chain, Base1, WideMMO); in LowerUnalignedLoad()
3232 SDValue Aligned = DAG.getNode(HexagonISD::VALIGN, dl, LoadTy, in LowerUnalignedLoad()
H A DHexagonISelLoweringHVX.cpp3067 MVT LoadTy = MVT::getVectorVT(MVT::i8, HwLen); in WidenHvxLoad() local
3071 SDValue Load = DAG.getMaskedLoad(LoadTy, dl, Chain, Base, Offset, Mask, in WidenHvxLoad()
3072 DAG.getUNDEF(LoadTy), LoadTy, MemOp, in WidenHvxLoad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp434 LLT LoadTy = Dst.getLLTTy(*getMRI()); in buildLoadFromOffset() local
436 getMF().getMachineMemOperand(&BaseMMO, Offset, LoadTy); in buildLoadFromOffset()
H A DLegalizerHelper.cpp3320 LLT LoadTy = DstTy; in lowerLoad() local
3325 LoadTy = WideMemTy; in lowerLoad()
3330 auto NewLoad = MIRBuilder.buildLoad(LoadTy, PtrReg, *NewMMO); in lowerLoad()
3332 } else if (isa<GZExtLoad>(LoadMI) || WideMemTy == LoadTy) { in lowerLoad()
3333 auto NewLoad = MIRBuilder.buildLoad(LoadTy, PtrReg, *NewMMO); in lowerLoad()
3341 if (DstTy != LoadTy) in lowerLoad()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp3656 QualType LoadTy) { in evalLoad() argument
3677 if (LoadTy.isNull()) in evalLoad()
3678 LoadTy = BoundEx->getType(); in evalLoad()
3679 V = state->getSVal(location.castAs<Loc>(), LoadTy); in evalLoad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp1573 MVT LoadTy = TLI.getRegisterType(MVT::i8); in getSignAsIntValue() local
1575 SDValue StackPtr = DAG.CreateStackTemporary(FloatVT, LoadTy); in getSignAsIntValue()
1600 State.IntValue = DAG.getExtLoad(ISD::EXTLOAD, DL, LoadTy, State.Chain, IntPtr, in getSignAsIntValue()
1602 State.SignMask = APInt::getOneBitSet(LoadTy.getScalarSizeInBits(), 7); in getSignAsIntValue()
H A DSelectionDAGBuilder.cpp8426 Type *LoadTy = in getMemCmpLoad() local
8429 LoadTy = FixedVectorType::get(LoadTy, LoadVT.getVectorNumElements()); in getMemCmpLoad()
8432 PointerType::getUnqual(LoadTy)); in getMemCmpLoad()
8436 LoadTy, Builder.DAG.getDataLayout())) in getMemCmpLoad()