Home
last modified time | relevance | path

Searched refs:Idxs (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp911 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument
913 if (Idxs.empty()) in ConstantFoldExtractValueInstruction()
916 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
917 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
924 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument
926 if (Idxs.empty()) in ConstantFoldInsertValueInstruction()
940 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction()
941 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction()
2147 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument
2149 if (Idxs.empty()) return true; in isInBoundsIndices()
[all …]
DConstantFold.h43 ArrayRef<unsigned> Idxs);
45 ArrayRef<unsigned> Idxs);
53 ArrayRef<Value *> Idxs);
DAutoUpgrade.cpp907 uint32_t Idxs[64]; in UpgradeX86PSLLDQIntrinsics() local
914 Idxs[l + i] = Idx + l; in UpgradeX86PSLLDQIntrinsics()
917 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics()
941 uint32_t Idxs[64]; in UpgradeX86PSRLDQIntrinsics() local
948 Idxs[l + i] = Idx + l; in UpgradeX86PSRLDQIntrinsics()
951 Res = Builder.CreateShuffleVector(Op, Res, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSRLDQIntrinsics()
2434 SmallVector<uint32_t, 16> Idxs(NumElts); in UpgradeIntrinsicCall() local
2436 Idxs[i] = ((Imm >> (i%8)) & 1) ? i + NumElts : i; in UpgradeIntrinsicCall()
2438 Rep = Builder.CreateShuffleVector(Op0, Op1, Idxs); in UpgradeIntrinsicCall()
2454 SmallVector<uint32_t, 8> Idxs(DstNumElts); in UpgradeIntrinsicCall() local
[all …]
DConstants.cpp2076 ArrayRef<Value *> Idxs, bool InBounds, in getGetElementPtr() argument
2086 ConstantFoldGetElementPtr(Ty, C, InBounds, InRangeIndex, Idxs)) in getGetElementPtr()
2090 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); in getGetElementPtr()
2098 else for (auto Idx : Idxs) in getGetElementPtr()
2110 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr()
2112 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in getGetElementPtr()
2113 assert((!Idxs[i]->getType()->isVectorTy() || in getGetElementPtr()
2114 Idxs[i]->getType()->getVectorNumElements() == NumVecElts) && in getGetElementPtr()
2117 Constant *Idx = cast<Constant>(Idxs[i]); in getGetElementPtr()
2118 if (NumVecElts && !Idxs[i]->getType()->isVectorTy()) in getGetElementPtr()
[all …]
DInstructions.cpp2099 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
2107 assert(!Idxs.empty() && "InsertValueInst must have at least one index"); in init()
2109 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
2114 Indices.append(Idxs.begin(), Idxs.end()); in init()
2131 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { in init() argument
2136 assert(!Idxs.empty() && "ExtractValueInst must have at least one index"); in init()
2138 Indices.append(Idxs.begin(), Idxs.end()); in init()
2155 ArrayRef<unsigned> Idxs) { in getIndexedType() argument
2156 for (unsigned Index : Idxs) { in getIndexedType()
DVerifier.cpp3310 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst() local
3312 Idxs, [](Value* V) { return V->getType()->isIntOrIntVectorTy(); }), in visitGetElementPtrInst()
3315 GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs); in visitGetElementPtrInst()
3328 for (Value *Idx : Idxs) { in visitGetElementPtrInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DConstantFolding.h101 ArrayRef<unsigned> Idxs);
107 ArrayRef<unsigned> Idxs);
DInstructionSimplify.h213 Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
221 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstructions.h2308 ArrayRef<unsigned> Idxs,
2312 ArrayRef<unsigned> Idxs,
2315 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
2325 ArrayRef<unsigned> Idxs,
2329 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2333 ArrayRef<unsigned> Idxs,
2336 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2343 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2385 ArrayRef<unsigned> Idxs,
2388 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
[all …]
DIRBuilder.h1892 Value *Idxs[] = { variable
1898 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name);
1900 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
1905 Value *Idxs[] = { variable
1911 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name);
1913 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
1947 Value *Idxs[] = { variable
1953 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name);
1955 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
1965 Value *Idxs[] = { variable
[all …]
DConstants.h1203 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs,
1206 ArrayRef<unsigned> Idxs,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp263 Value *Idxs[2] = { in doPromotion() local
266 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in doPromotion()
268 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i)); in doPromotion()
394 Value *Idxs[2] = {ConstantInt::get(Type::getInt32Ty(F->getContext()), 0), in doPromotion() local
398 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in doPromotion()
400 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i), in doPromotion()
DGlobalOpt.cpp591 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local
592 Idxs.push_back(NullInt); in SRAGlobal()
594 Idxs.push_back(CE->getOperand(i)); in SRAGlobal()
596 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal()
599 SmallVector<Value*, 8> Idxs; in SRAGlobal() local
600 Idxs.push_back(NullInt); in SRAGlobal()
602 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal()
604 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(ElementIdx), in SRAGlobal()
737 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local
738 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue()
[all …]
DLowerTypeTests.cpp639 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() local
642 ByteArrayConst->getType(), ByteArray, Idxs); in allocateByteArrays()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp110 Value *Idxs[2] = { Zero, One }; in insertCallSiteStore() local
112 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp3456 SmallVectorImpl<unsigned> &Idxs, in BuildSubAggregate() argument
3466 Idxs.push_back(i); in BuildSubAggregate()
3468 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate()
3470 Idxs.pop_back(); in BuildSubAggregate()
3492 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate()
3498 return InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate()
3520 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local
3521 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate()
3523 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate()
3598 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local
[all …]
DInstructionSimplify.cpp4161 ArrayRef<unsigned> Idxs, const SimplifyQuery &Q, in SimplifyInsertValueInst() argument
4165 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); in SimplifyInsertValueInst()
4174 EV->getIndices() == Idxs) { in SimplifyInsertValueInst()
4188 ArrayRef<unsigned> Idxs, in SimplifyInsertValueInst() argument
4190 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Q, RecursionLimit); in SimplifyInsertValueInst()
4229 static Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in SimplifyExtractValueInst() argument
4232 return ConstantFoldExtractValueInstruction(CAgg, Idxs); in SimplifyExtractValueInst()
4235 unsigned NumIdxs = Idxs.size(); in SimplifyExtractValueInst()
4242 Idxs.slice(0, NumCommonIdxs)) { in SimplifyExtractValueInst()
4252 Value *llvm::SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in SimplifyExtractValueInst() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSILoadStoreOptimizer.cpp1459 static const unsigned Idxs[4][4] = { in getSubRegIdxs() local
1472 Idx1 = Idxs[0][Paired.Width - 1]; in getSubRegIdxs()
1473 Idx0 = Idxs[Paired.Width][CI.Width - 1]; in getSubRegIdxs()
1475 Idx0 = Idxs[0][CI.Width - 1]; in getSubRegIdxs()
1476 Idx1 = Idxs[CI.Width][Paired.Width - 1]; in getSubRegIdxs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonConstExtenders.cpp1899 const IndexList &Idxs = P.second; in replaceExtenders() local
1900 if (Idxs.size() < CountThreshold) in replaceExtenders()
1904 calculatePlacement(P.first, Idxs, Defs); in replaceExtenders()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp2437 SmallVector<Value *, 8> Idxs(NumZeros + 1, Builder.getInt32(0)); in visitBitCast() local
2439 GetElementPtrInst::Create(SrcPTy->getElementType(), Src, Idxs); in visitBitCast()