Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DVNCoercion.cpp15 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument
18 if (StoredTy == LoadTy) in canCoerceMustAliasedValueToLoad()
23 if (LoadTy->isStructTy() || LoadTy->isArrayTy() || StoredTy->isStructTy() || in canCoerceMustAliasedValueToLoad()
34 if (StoreSize < DL.getTypeSizeInBits(LoadTy)) in canCoerceMustAliasedValueToLoad()
39 DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in canCoerceMustAliasedValueToLoad()
163 static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingWrite() argument
169 if (LoadTy->isStructTy() || LoadTy->isArrayTy()) in analyzeLoadFromClobberingWrite()
187 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in analyzeLoadFromClobberingWrite()
218 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingStore() argument
229 DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingStore()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
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()
41 bool LoadNI = DL.isNonIntegralPointerType(LoadTy->getScalarType()); in canCoerceMustAliasedValueToLoad()
52 LoadTy->getPointerAddressSpace()) { in canCoerceMustAliasedValueToLoad()
60 if (StoredNI && StoreSize != DL.getTypeSizeInBits(LoadTy).getFixedSize()) in canCoerceMustAliasedValueToLoad()
176 static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingWrite() argument
182 if (isFirstClassAggregateOrScalableType(LoadTy)) in analyzeLoadFromClobberingWrite()
200 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedSize(); in analyzeLoadFromClobberingWrite()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
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);
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
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);
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp699 Type *LoadTy, in CanCoerceMustAliasedValueToLoad() argument
703 if (LoadTy->isStructTy() || LoadTy->isArrayTy() || in CanCoerceMustAliasedValueToLoad()
710 DL.getTypeSizeInBits(LoadTy)) in CanCoerceMustAliasedValueToLoad()
810 static int AnalyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingWrite() argument
816 if (LoadTy->isStructTy() || LoadTy->isArrayTy()) in AnalyzeLoadFromClobberingWrite()
844 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in AnalyzeLoadFromClobberingWrite()
885 static int AnalyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingStore() argument
895 return AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, in AnalyzeLoadFromClobberingStore()
902 static int AnalyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingLoad() argument
910 int R = AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in AnalyzeLoadFromClobberingLoad()
[all …]
/external/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp823 Type *LoadTy; in vectorizeLoadChain() local
825 LoadTy = cast<LoadInst>(V)->getType(); in vectorizeLoadChain()
826 if (LoadTy->isIntOrIntVectorTy()) in vectorizeLoadChain()
829 if (LoadTy->isPtrOrPtrVectorTy()) { in vectorizeLoadChain()
830 LoadTy = Type::getIntNTy(F.getParent()->getContext(), in vectorizeLoadChain()
831 DL.getTypeSizeInBits(LoadTy)); in vectorizeLoadChain()
836 unsigned Sz = DL.getTypeSizeInBits(LoadTy); in vectorizeLoadChain()
880 VectorType *VecLoadTy = dyn_cast<VectorType>(LoadTy); in vectorizeLoadChain()
882 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
885 VecTy = VectorType::get(LoadTy, Chain.size()); in vectorizeLoadChain()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp1096 Type *LoadTy = nullptr; in vectorizeLoadChain() local
1098 LoadTy = cast<LoadInst>(V)->getType(); in vectorizeLoadChain()
1099 if (LoadTy->isIntOrIntVectorTy()) in vectorizeLoadChain()
1102 if (LoadTy->isPtrOrPtrVectorTy()) { in vectorizeLoadChain()
1103 LoadTy = Type::getIntNTy(F.getParent()->getContext(), in vectorizeLoadChain()
1104 DL.getTypeSizeInBits(LoadTy)); in vectorizeLoadChain()
1108 assert(LoadTy && "Can't determine LoadInst type from chain"); in vectorizeLoadChain()
1110 unsigned Sz = DL.getTypeSizeInBits(LoadTy); in vectorizeLoadChain()
1143 VectorType *VecLoadTy = dyn_cast<VectorType>(LoadTy); in vectorizeLoadChain()
1145 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
[all …]
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp1140 Type *LoadTy = nullptr; in vectorizeLoadChain() local
1142 LoadTy = cast<LoadInst>(V)->getType(); in vectorizeLoadChain()
1143 if (LoadTy->isIntOrIntVectorTy()) in vectorizeLoadChain()
1146 if (LoadTy->isPtrOrPtrVectorTy()) { in vectorizeLoadChain()
1147 LoadTy = Type::getIntNTy(F.getParent()->getContext(), in vectorizeLoadChain()
1148 DL.getTypeSizeInBits(LoadTy)); in vectorizeLoadChain()
1152 assert(LoadTy && "Can't determine LoadInst type from chain"); in vectorizeLoadChain()
1154 unsigned Sz = DL.getTypeSizeInBits(LoadTy); in vectorizeLoadChain()
1187 auto *VecLoadTy = dyn_cast<FixedVectorType>(LoadTy); in vectorizeLoadChain()
1189 VecTy = FixedVectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
[all …]
DVectorCombine.cpp145 Type *LoadTy = Load->getType(); in vectorizeLoadInsert() local
146 int OldCost = TTI.getMemoryOpCost(Instruction::Load, LoadTy, Alignment, AS); in vectorizeLoadInsert()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp502 Constant *FoldReinterpretLoadFromConstPtr(Constant *C, Type *LoadTy, in FoldReinterpretLoadFromConstPtr() argument
505 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr()
516 if (LoadTy->isHalfTy()) in FoldReinterpretLoadFromConstPtr()
518 else if (LoadTy->isFloatTy()) in FoldReinterpretLoadFromConstPtr()
520 else if (LoadTy->isDoubleTy()) in FoldReinterpretLoadFromConstPtr()
522 else if (LoadTy->isVectorTy()) { in FoldReinterpretLoadFromConstPtr()
524 DL.getTypeSizeInBits(LoadTy)); in FoldReinterpretLoadFromConstPtr()
530 if (Res->isNullValue() && !LoadTy->isX86_MMXTy()) in FoldReinterpretLoadFromConstPtr()
532 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConstPtr()
533 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConstPtr()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMParallelDSP.cpp230 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy);
738 IntegerType *LoadTy) { in CreateWideLoad() argument
778 LoadTy->getPointerTo(AddrSpace)); in CreateWideLoad()
779 LoadInst *WideLoad = IRB.CreateAlignedLoad(LoadTy, VecPtr, Base->getAlign()); in CreateWideLoad()
793 Value *ShiftVal = ConstantInt::get(LoadTy, OffsetTy->getBitWidth()); in CreateWideLoad()
/external/llvm-project/llvm/lib/Analysis/
DConstantFolding.cpp546 Constant *FoldReinterpretLoadFromConstPtr(Constant *C, Type *LoadTy, in FoldReinterpretLoadFromConstPtr() argument
549 if (isa<ScalableVectorType>(LoadTy)) in FoldReinterpretLoadFromConstPtr()
553 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr()
564 if (LoadTy->isHalfTy()) in FoldReinterpretLoadFromConstPtr()
566 else if (LoadTy->isFloatTy()) in FoldReinterpretLoadFromConstPtr()
568 else if (LoadTy->isDoubleTy()) in FoldReinterpretLoadFromConstPtr()
570 else if (LoadTy->isVectorTy()) { in FoldReinterpretLoadFromConstPtr()
572 C->getContext(), DL.getTypeSizeInBits(LoadTy).getFixedSize()); in FoldReinterpretLoadFromConstPtr()
578 if (Res->isNullValue() && !LoadTy->isX86_MMXTy()) in FoldReinterpretLoadFromConstPtr()
580 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConstPtr()
[all …]
DLoads.cpp410 Value *LoadPtr, Type *LoadTy, Value *StorePtr, Type *StoreTy, in AreNonOverlapSameBaseLoadAndStore() argument
420 auto LoadAccessSize = LocationSize::precise(DL.getTypeStoreSize(LoadTy)); in AreNonOverlapSameBaseLoadAndStore()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMParallelDSP.cpp229 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy);
734 IntegerType *LoadTy) { in CreateWideLoad() argument
774 LoadTy->getPointerTo(AddrSpace)); in CreateWideLoad()
775 LoadInst *WideLoad = IRB.CreateAlignedLoad(LoadTy, VecPtr, in CreateWideLoad()
790 Value *ShiftVal = ConstantInt::get(LoadTy, OffsetTy->getBitWidth()); in CreateWideLoad()
/external/llvm/lib/Analysis/
DConstantFolding.cpp408 Constant *FoldReinterpretLoadFromConstPtr(Constant *C, Type *LoadTy, in FoldReinterpretLoadFromConstPtr() argument
411 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr()
422 if (LoadTy->isHalfTy()) in FoldReinterpretLoadFromConstPtr()
424 else if (LoadTy->isFloatTy()) in FoldReinterpretLoadFromConstPtr()
426 else if (LoadTy->isDoubleTy()) in FoldReinterpretLoadFromConstPtr()
428 else if (LoadTy->isVectorTy()) { in FoldReinterpretLoadFromConstPtr()
430 DL.getTypeAllocSizeInBits(LoadTy)); in FoldReinterpretLoadFromConstPtr()
436 return FoldBitCast(Res, LoadTy, DL); in FoldReinterpretLoadFromConstPtr()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DScalarizeMaskedMemIntrin.cpp910 Type *LoadTy = CI->getType(); in optimizeCallInst() local
912 DL.getValueOrABITypeAlignment(MaybeAlign(AlignmentInt), LoadTy); in optimizeCallInst()
913 if (TTI.isLegalMaskedGather(LoadTy, Alignment)) in optimizeCallInst()
DGVN.cpp876 Type *LoadTy = LI->getType(); in MaterializeAdjustedValue() local
880 if (Res->getType() != LoadTy) { in MaterializeAdjustedValue()
881 Res = getStoreValueForLoad(Res, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
890 if (Load->getType() == LoadTy && Offset == 0) { in MaterializeAdjustedValue()
893 Res = getLoadValueForLoad(Load, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
906 Res = getMemInstValueForLoad(getMemIntrinValue(), Offset, LoadTy, in MaterializeAdjustedValue()
915 return UndefValue::get(LoadTy); in MaterializeAdjustedValue()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h538 QualType LoadTy = QualType());
568 QualType LoadTy);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DGVN.cpp776 Type *LoadTy = LI->getType(); in MaterializeAdjustedValue() local
780 if (Res->getType() != LoadTy) { in MaterializeAdjustedValue()
781 Res = getStoreValueForLoad(Res, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
790 if (Load->getType() == LoadTy && Offset == 0) { in MaterializeAdjustedValue()
793 Res = getLoadValueForLoad(Load, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
806 Res = getMemInstValueForLoad(getMemIntrinValue(), Offset, LoadTy, in MaterializeAdjustedValue()
815 return UndefValue::get(LoadTy); in MaterializeAdjustedValue()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h690 QualType LoadTy = QualType());
762 QualType LoadTy);
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp2318 QualType LoadTy) in evalLoad() argument
2341 evalLoadCommon(Dst, NodeEx, BoundEx, *I, state, location, tag, LoadTy); in evalLoad()
2347 evalLoadCommon(Dst, NodeEx, BoundEx, Pred, state, location, tag, LoadTy); in evalLoad()
2357 QualType LoadTy) { in evalLoadCommon() argument
2377 if (LoadTy.isNull()) in evalLoadCommon()
2378 LoadTy = BoundEx->getType(); in evalLoadCommon()
2379 V = state->getSVal(location.castAs<Loc>(), LoadTy); in evalLoadCommon()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURegisterBankInfo.cpp520 LLT LoadTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrAlternativeMappings() local
535 {AMDGPU::getValueMappingLoadSGPROnly(AMDGPU::VGPRRegBankID, LoadTy), in getInstrAlternativeMappings()
1117 const LLT LoadTy = MRI.getType(DstReg); in applyMappingWideLoad() local
1118 unsigned LoadSize = LoadTy.getSizeInBits(); in applyMappingWideLoad()
1152 MaxNonSmrdLoadSize / LoadTy.getScalarType().getSizeInBits(); in applyMappingWideLoad()
1153 const LLT LoadSplitTy = LLT::vector(SplitElts, LoadTy.getScalarType()); in applyMappingWideLoad()
2355 LLT LoadTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMappingForLoad() local
2374 ValMapping = AMDGPU::getValueMappingLoadSGPROnly(AMDGPU::VGPRRegBankID, LoadTy); in getInstrMappingForLoad()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPURegisterBankInfo.cpp1158 const LLT LoadTy = MRI.getType(DstReg); in applyMappingLoad() local
1159 unsigned LoadSize = LoadTy.getSizeInBits(); in applyMappingLoad()
1181 std::tie(Part64, Part32) = splitUnequalType(LoadTy, 64); in applyMappingLoad()
1185 auto Undef = B.buildUndef(LoadTy); in applyMappingLoad()
1186 auto Ins0 = B.buildInsert(LoadTy, Undef, Load0, 0); in applyMappingLoad()
1189 LLT WiderTy = widen96To128(LoadTy); in applyMappingLoad()
1218 unsigned NumSplitParts = LoadTy.getSizeInBits() / MaxNonSmrdLoadSize; in applyMappingLoad()
1219 const LLT LoadSplitTy = LoadTy.divide(NumSplitParts); in applyMappingLoad()
1225 if (LoadTy.isVector()) { in applyMappingLoad()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp540 static bool isMinMaxWithLoads(Value *V, Type *&LoadTy) { in isMinMaxWithLoads() argument
554 LoadTy = L1->getType(); in isMinMaxWithLoads()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp536 static bool isMinMaxWithLoads(Value *V, Type *&LoadTy) { in isMinMaxWithLoads() argument
550 LoadTy = L1->getType(); in isMinMaxWithLoads()

12