/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 511 Value *Idxs[2]; in insertSjLjEHSupport() local 515 Idxs[0] = Zero; in insertSjLjEHSupport() 516 Idxs[1] = ConstantInt::get(Int32Ty, 1); in insertSjLjEHSupport() 517 CallSite = GetElementPtrInst::Create(FunctionContext, Idxs, "call_site", in insertSjLjEHSupport() 521 Idxs[1] = ConstantInt::get(Int32Ty, 2); in insertSjLjEHSupport() 522 Value *FCData = GetElementPtrInst::Create(FunctionContext, Idxs, "fc_data", in insertSjLjEHSupport() 524 Idxs[1] = ConstantInt::get(Int32Ty, 1); in insertSjLjEHSupport() 525 Value *SelectorAddr = GetElementPtrInst::Create(FCData, Idxs, in insertSjLjEHSupport() 529 Idxs[1] = Zero; in insertSjLjEHSupport() 530 Value *ExceptionAddr = GetElementPtrInst::Create(FCData, Idxs, in insertSjLjEHSupport() [all …]
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 440 uint32_t Idxs[64]; in UpgradeX86PSLLDQIntrinsics() local 447 Idxs[l + i] = Idx + l; in UpgradeX86PSLLDQIntrinsics() 450 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics() 474 uint32_t Idxs[64]; in UpgradeX86PSRLDQIntrinsics() local 481 Idxs[l + i] = Idx + l; in UpgradeX86PSRLDQIntrinsics() 484 Res = Builder.CreateShuffleVector(Op, Res, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSRLDQIntrinsics() 935 uint32_t Idxs[4] = { 0, 1, 0, 1 }; in UpgradeIntrinsicCall() local 937 Idxs); in UpgradeIntrinsicCall() 993 SmallVector<uint32_t, 16> Idxs(NumElts); in UpgradeIntrinsicCall() local 995 Idxs[i] = ((Imm >> (i%8)) & 1) ? i + NumElts : i; in UpgradeIntrinsicCall() [all …]
|
D | ConstantFold.h | 42 ArrayRef<unsigned> Idxs); 44 ArrayRef<unsigned> Idxs); 50 ArrayRef<Constant *> Idxs); 52 ArrayRef<Value *> Idxs);
|
D | ConstantFold.cpp | 871 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument 873 if (Idxs.empty()) in ConstantFoldExtractValueInstruction() 876 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 877 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 884 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument 886 if (Idxs.empty()) in ConstantFoldInsertValueInstruction() 902 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction() 903 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction() 2001 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument 2003 if (Idxs.empty()) return true; in isInBoundsIndices() [all …]
|
D | Constants.cpp | 1895 ArrayRef<Value *> Idxs, bool InBounds, in getGetElementPtr() argument 1904 if (Constant *FC = ConstantFoldGetElementPtr(Ty, C, InBounds, Idxs)) in getGetElementPtr() 1908 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); in getGetElementPtr() 1916 else for (auto Idx : Idxs) in getGetElementPtr() 1928 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr() 1930 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in getGetElementPtr() 1931 assert((!Idxs[i]->getType()->isVectorTy() || in getGetElementPtr() 1932 Idxs[i]->getType()->getVectorNumElements() == NumVecElts) && in getGetElementPtr() 1935 Constant *Idx = cast<Constant>(Idxs[i]); in getGetElementPtr() 1936 if (NumVecElts && !Idxs[i]->getType()->isVectorTy()) in getGetElementPtr() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.h | 43 ArrayRef<unsigned> Idxs); 45 ArrayRef<unsigned> Idxs); 51 ArrayRef<Constant *> Idxs); 53 ArrayRef<Value *> Idxs);
|
D | ConstantFold.cpp | 886 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument 888 if (Idxs.empty()) in ConstantFoldExtractValueInstruction() 893 Idxs)); in ConstantFoldExtractValueInstruction() 898 Idxs)); in ConstantFoldExtractValueInstruction() 902 return ConstantFoldExtractValueInstruction(CS->getOperand(Idxs[0]), in ConstantFoldExtractValueInstruction() 903 Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 906 return ConstantFoldExtractValueInstruction(CA->getOperand(Idxs[0]), in ConstantFoldExtractValueInstruction() 907 Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 909 return ConstantFoldExtractValueInstruction(CV->getOperand(Idxs[0]), in ConstantFoldExtractValueInstruction() 910 Idxs.slice(1)); in ConstantFoldExtractValueInstruction() [all …]
|
D | Constants.cpp | 1598 Constant *ConstantExpr::getGetElementPtr(Constant *C, ArrayRef<Value *> Idxs, in getGetElementPtr() argument 1600 if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds, Idxs)) in getGetElementPtr() 1604 Type *Ty = GetElementPtrInst::getIndexedType(C->getType(), Idxs); in getGetElementPtr() 1613 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr() 1615 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) in getGetElementPtr() 1616 ArgVec.push_back(cast<Constant>(Idxs[i])); in getGetElementPtr() 1734 ArrayRef<unsigned> Idxs) { in getInsertValue() argument 1736 Idxs) == Val->getType() && in getInsertValue() 1740 Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs); in getInsertValue() 1746 ArrayRef<unsigned> Idxs) { in getExtractValue() argument [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | ConstantFolding.h | 102 ArrayRef<unsigned> Idxs); 108 ArrayRef<unsigned> Idxs);
|
D | InstructionSimplify.h | 242 ArrayRef<unsigned> Idxs, const DataLayout &DL, 250 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | IRBuilder.h | 836 Value *Idxs[] = { variable 842 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name); 844 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name); 848 Value *Idxs[] = { variable 854 return Insert(Folder.CreateInBoundsGetElementPtr(PC, Idxs), Name); 856 return Insert(GetElementPtrInst::CreateInBounds(Ptr, Idxs), Name); 877 Value *Idxs[] = { variable 883 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name); 885 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name); 889 Value *Idxs[] = { variable [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Instructions.h | 1693 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 1700 ArrayRef<unsigned> Idxs, 1704 ArrayRef<unsigned> Idxs, 1716 ArrayRef<unsigned> Idxs, 1720 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 1723 ArrayRef<unsigned> Idxs, 1726 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 1733 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 1772 ArrayRef<unsigned> Idxs, 1775 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ValueTracking.cpp | 1319 SmallVector<unsigned, 10> &Idxs, in BuildSubAggregate() argument 1329 Idxs.push_back(i); in BuildSubAggregate() 1331 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate() 1333 Idxs.pop_back(); in BuildSubAggregate() 1355 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate() 1361 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate() 1383 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local 1384 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate() 1386 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate() 1465 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 112 Value *Idxs[2]; in InstCombineLoadCast() local 113 Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext())); in InstCombineLoadCast() 114 Idxs[1] = Idxs[0]; in InstCombineLoadCast() 115 CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs); in InstCombineLoadCast()
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 1180 Value *Idxs[] = { variable 1186 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name); 1188 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name); 1192 Value *Idxs[] = { variable 1198 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name); 1200 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name); 1221 Value *Idxs[] = { variable 1227 return Insert(Folder.CreateGetElementPtr(nullptr, PC, Idxs), Name); 1229 return Insert(GetElementPtrInst::Create(nullptr, Ptr, Idxs), Name); 1233 Value *Idxs[] = { variable [all …]
|
D | Instructions.h | 2234 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 2241 ArrayRef<unsigned> Idxs, 2245 ArrayRef<unsigned> Idxs, 2258 ArrayRef<unsigned> Idxs, 2262 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 2265 ArrayRef<unsigned> Idxs, 2268 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 2275 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 2316 ArrayRef<unsigned> Idxs, 2319 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 667 Value *Idxs[2] = { in DoPromotion() local 670 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 671 Value *Idx = GetElementPtrInst::Create(*AI, Idxs, in DoPromotion() 797 Value *Idxs[2] = { in DoPromotion() local 801 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 803 GetElementPtrInst::Create(TheAlloca, Idxs, in DoPromotion()
|
D | GlobalOpt.cpp | 597 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local 598 Idxs.push_back(NullInt); in SRAGlobal() 600 Idxs.push_back(CE->getOperand(i)); in SRAGlobal() 601 NewPtr = ConstantExpr::getGetElementPtr(cast<Constant>(NewPtr), Idxs); in SRAGlobal() 604 SmallVector<Value*, 8> Idxs; in SRAGlobal() local 605 Idxs.push_back(NullInt); in SRAGlobal() 607 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal() 608 NewPtr = GetElementPtrInst::Create(NewPtr, Idxs, in SRAGlobal() 747 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local 748 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 809 Value *Idxs[2] = { in DoPromotion() local 812 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 814 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call); in DoPromotion() 938 Value *Idxs[2] = { in DoPromotion() local 942 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 944 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i), in DoPromotion()
|
D | GlobalOpt.cpp | 537 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local 538 Idxs.push_back(NullInt); in SRAGlobal() 540 Idxs.push_back(CE->getOperand(i)); in SRAGlobal() 542 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal() 545 SmallVector<Value*, 8> Idxs; in SRAGlobal() local 546 Idxs.push_back(NullInt); in SRAGlobal() 548 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal() 550 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(Val), GEPI); in SRAGlobal() 681 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local 682 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGVTT.cpp | 77 llvm::Value *Idxs[] = { in EmitVTTDefinition() local 83 VTable->getValueType(), VTable, Idxs); in EmitVTTDefinition()
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | ConstantFolding.h | 68 ArrayRef<unsigned> Idxs);
|
D | InstructionSimplify.h | 132 ArrayRef<unsigned> Idxs,
|
/external/llvm/utils/TableGen/ |
D | AsmWriterEmitter.cpp | 184 const auto &Idxs = InstIdxs[CommandIdx]; in FindUniqueOperandCommands() local 188 const AsmWriterInst &FirstInst = Instructions[Idxs.front()]; in FindUniqueOperandCommands() 196 if (std::any_of(Idxs.begin()+1, Idxs.end(), in FindUniqueOperandCommands()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 2595 SmallVectorImpl<unsigned> &Idxs, in BuildSubAggregate() argument 2605 Idxs.push_back(i); in BuildSubAggregate() 2607 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate() 2609 Idxs.pop_back(); in BuildSubAggregate() 2631 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate() 2637 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate() 2659 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local 2660 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate() 2662 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate() 2737 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local [all …]
|