/external/llvm/lib/IR/ |
D | ConstantFold.h | 43 ArrayRef<unsigned> Idxs); 45 ArrayRef<unsigned> Idxs); 51 ArrayRef<Constant *> Idxs); 53 ArrayRef<Value *> Idxs); 55 ArrayRef<Constant *> Idxs); 57 ArrayRef<Value *> Idxs);
|
D | AutoUpgrade.cpp | 304 SmallVector<Constant*, 32> Idxs; in UpgradeX86PSLLDQIntrinsics() local 311 Idxs.push_back(Builder.getInt32(Idx + l)); in UpgradeX86PSLLDQIntrinsics() 314 Res = Builder.CreateShuffleVector(Res, Op, ConstantVector::get(Idxs)); in UpgradeX86PSLLDQIntrinsics() 341 SmallVector<Constant*, 32> Idxs; in UpgradeX86PSRLDQIntrinsics() local 348 Idxs.push_back(Builder.getInt32(Idx + l)); in UpgradeX86PSRLDQIntrinsics() 351 Res = Builder.CreateShuffleVector(Op, Res, ConstantVector::get(Idxs)); in UpgradeX86PSRLDQIntrinsics() 509 const int Idxs[4] = { 0, 1, 0, 1 }; in UpgradeIntrinsicCall() local 511 Idxs); in UpgradeIntrinsicCall() 574 SmallVector<Constant*, 16> Idxs; in UpgradeIntrinsicCall() local 577 Idxs.push_back(Builder.getInt32(Idx)); in UpgradeIntrinsicCall() [all …]
|
D | ConstantFold.cpp | 872 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument 874 if (Idxs.empty()) in ConstantFoldExtractValueInstruction() 877 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 878 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 885 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument 887 if (Idxs.empty()) in ConstantFoldInsertValueInstruction() 903 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction() 904 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction() 1985 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument 1987 if (Idxs.empty()) return true; in isInBoundsIndices() [all …]
|
D | Constants.cpp | 1965 ArrayRef<Value *> Idxs, bool InBounds, in getGetElementPtr() argument 1974 if (Constant *FC = ConstantFoldGetElementPtr(Ty, C, InBounds, Idxs)) in getGetElementPtr() 1978 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); in getGetElementPtr() 1990 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr() 1992 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in getGetElementPtr() 1993 assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && in getGetElementPtr() 1995 assert((!Idxs[i]->getType()->isVectorTy() || in getGetElementPtr() 1997 Idxs[i]->getType()->getVectorNumElements()) && in getGetElementPtr() 1999 ArgVec.push_back(cast<Constant>(Idxs[i])); in getGetElementPtr() 2127 ArrayRef<unsigned> Idxs, in getInsertValue() argument [all …]
|
D | Instructions.cpp | 1824 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 1832 assert(Idxs.size() > 0 && "InsertValueInst must have at least one index"); in init() 1834 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 1839 Indices.append(Idxs.begin(), Idxs.end()); in init() 1856 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { in init() argument 1861 assert(Idxs.size() > 0 && "ExtractValueInst must have at least one index"); in init() 1863 Indices.append(Idxs.begin(), Idxs.end()); in init() 1880 ArrayRef<unsigned> Idxs) { in getIndexedType() argument 1881 for (unsigned Index : Idxs) { in getIndexedType()
|
D | Verifier.cpp | 2659 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst() local 2661 GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs); in visitGetElementPtrInst() 2674 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in visitGetElementPtrInst() 2675 Type *IndexTy = Idxs[i]->getType(); in visitGetElementPtrInst()
|
/external/llvm/include/llvm/Analysis/ |
D | ConstantFolding.h | 73 ArrayRef<unsigned> Idxs); 79 ArrayRef<unsigned> Idxs);
|
D | InstructionSimplify.h | 241 ArrayRef<unsigned> Idxs, const DataLayout &DL, 249 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 1165 Value *Idxs[] = { variable 1171 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name); 1173 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name); 1177 Value *Idxs[] = { variable 1183 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name); 1185 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name); 1206 Value *Idxs[] = { variable 1212 return Insert(Folder.CreateGetElementPtr(nullptr, PC, Idxs), Name); 1214 return Insert(GetElementPtrInst::Create(nullptr, Ptr, Idxs), Name); 1218 Value *Idxs[] = { variable [all …]
|
D | Instructions.h | 2188 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 2195 ArrayRef<unsigned> Idxs, 2199 ArrayRef<unsigned> Idxs, 2212 ArrayRef<unsigned> Idxs, 2216 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 2219 ArrayRef<unsigned> Idxs, 2222 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 2229 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 2270 ArrayRef<unsigned> Idxs, 2273 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), [all …]
|
D | Constants.h | 1162 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, 1165 ArrayRef<unsigned> Idxs,
|
/external/clang/lib/CodeGen/ |
D | CGVTT.cpp | 77 llvm::Value *Idxs[] = { in EmitVTTDefinition() local 83 VTable->getValueType(), VTable, Idxs); in EmitVTTDefinition()
|
D | CGObjCGNU.cpp | 2484 llvm::Constant *Idxs[] = {Zeros[0], in ModuleInitFunction() local 2488 SelectorList->getValueType(), SelectorList, makeArrayRef(Idxs, 2)); in ModuleInitFunction()
|
D | MicrosoftCXXABI.cpp | 3126 llvm::Value *Idxs[] = {getZeroInt(), VBIndex}; in EmitNonNullMemberPointerConversion() local 3128 Builder.CreateAlignedLoad(Builder.CreateInBoundsGEP(VDispMap, Idxs), in EmitNonNullMemberPointerConversion()
|
D | CGObjCMac.cpp | 1676 llvm::Value *Idxs[] = { in getConstantGEP() local 1680 return llvm::ConstantExpr::getGetElementPtr(C->getValueType(), C, Idxs); in getConstantGEP()
|
D | CGBuiltin.cpp | 6229 Value *Idxs[] = { in EmitX86BuiltinExpr() local 6234 Value *CpuFeatures = Builder.CreateGEP(STy, CpuModel, Idxs); in EmitX86BuiltinExpr()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 788 Value *Idxs[2] = { in DoPromotion() local 791 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 793 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call); in DoPromotion() 916 Value *Idxs[2] = { in DoPromotion() local 920 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 922 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i), in DoPromotion()
|
D | GlobalOpt.cpp | 576 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local 577 Idxs.push_back(NullInt); in SRAGlobal() 579 Idxs.push_back(CE->getOperand(i)); in SRAGlobal() 581 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal() 584 SmallVector<Value*, 8> Idxs; in SRAGlobal() local 585 Idxs.push_back(NullInt); in SRAGlobal() 587 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal() 589 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(Val), GEPI); in SRAGlobal() 720 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local 721 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue() [all …]
|
D | LowerBitSets.cpp | 390 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() local 393 ByteArrayConst->getType(), ByteArray, Idxs); in allocateByteArrays()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 447 std::vector<Constant*> Idxs; in Act() local 455 Idxs.push_back(CI); in Act() 458 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 2666 SmallVectorImpl<unsigned> &Idxs, in BuildSubAggregate() argument 2676 Idxs.push_back(i); in BuildSubAggregate() 2678 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate() 2680 Idxs.pop_back(); in BuildSubAggregate() 2702 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate() 2708 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate() 2730 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local 2731 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate() 2733 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate() 2808 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local [all …]
|
D | InstructionSimplify.cpp | 3548 ArrayRef<unsigned> Idxs, const Query &Q, in SimplifyInsertValueInst() argument 3552 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); in SimplifyInsertValueInst() 3561 EV->getIndices() == Idxs) { in SimplifyInsertValueInst() 3575 Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL, in SimplifyInsertValueInst() argument 3578 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query(DL, TLI, DT, AC, CxtI), in SimplifyInsertValueInst() 3584 static Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in SimplifyExtractValueInst() argument 3587 return ConstantFoldExtractValueInstruction(CAgg, Idxs); in SimplifyExtractValueInst() 3590 unsigned NumIdxs = Idxs.size(); in SimplifyExtractValueInst() 3597 Idxs.slice(0, NumCommonIdxs)) { in SimplifyExtractValueInst() 3607 Value *llvm::SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in SimplifyExtractValueInst() argument [all …]
|
/external/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 134 Value *Idxs[2] = { Zero, One }; in insertCallSiteStore() local 136 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
|
/external/llvm/utils/TableGen/ |
D | CodeGenDAGPatterns.cpp | 3564 std::vector<unsigned> Idxs; in CombineChildVariants() local 3565 Idxs.resize(ChildVariants.size()); in CombineChildVariants() 3569 DEBUG(if (!Idxs.empty()) { in CombineChildVariants() 3571 for (unsigned Idx : Idxs) { in CombineChildVariants() 3580 NewChildren.push_back(ChildVariants[i][Idxs[i]]); in CombineChildVariants() 3608 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { in CombineChildVariants() 3609 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size()) in CombineChildVariants() 3610 Idxs[IdxsIdx] = 0; in CombineChildVariants()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1827 SmallVector<Value *, 8> Idxs(NumZeros + 1, Builder->getInt32(0)); in visitBitCast() local 1828 return GetElementPtrInst::CreateInBounds(Src, Idxs); in visitBitCast()
|