/external/llvm/lib/IR/ |
D | ConstantFold.h | 43 ArrayRef<unsigned> Idxs); 45 ArrayRef<unsigned> Idxs); 51 ArrayRef<Constant *> Idxs); 53 ArrayRef<Value *> Idxs);
|
D | ConstantFold.cpp | 840 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument 842 if (Idxs.empty()) in ConstantFoldExtractValueInstruction() 845 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 846 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 853 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument 855 if (Idxs.empty()) in ConstantFoldInsertValueInstruction() 871 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction() 872 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction() 1912 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument 1914 if (Idxs.empty()) return true; in isInBoundsIndices() [all …]
|
D | AutoUpgrade.cpp | 368 SmallVector<Constant*, 8> Idxs; in UpgradeIntrinsicCall() local 372 Idxs.push_back(Builder.getInt32((Imm >> i) & 0x1)); in UpgradeIntrinsicCall() 376 Idxs.push_back(Builder.getInt32(((Imm >> (l+i)) & 0x1) + l)); in UpgradeIntrinsicCall() 379 Idxs.push_back(Builder.getInt32((Imm >> (2 * i)) & 0x3)); in UpgradeIntrinsicCall() 383 Idxs.push_back(Builder.getInt32(((Imm >> (2 * i)) & 0x3) + l)); in UpgradeIntrinsicCall() 387 Rep = Builder.CreateShuffleVector(Op0, Op0, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
|
D | Constants.cpp | 1906 Constant *ConstantExpr::getGetElementPtr(Constant *C, ArrayRef<Value *> Idxs, in getGetElementPtr() argument 1911 if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds, Idxs)) in getGetElementPtr() 1915 Type *Ty = GetElementPtrInst::getIndexedType(C->getType(), Idxs); in getGetElementPtr() 1924 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr() 1926 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in getGetElementPtr() 1927 assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && in getGetElementPtr() 1929 assert((!Idxs[i]->getType()->isVectorTy() || in getGetElementPtr() 1931 Idxs[i]->getType()->getVectorNumElements()) && in getGetElementPtr() 1933 ArgVec.push_back(cast<Constant>(Idxs[i])); in getGetElementPtr() 2043 ArrayRef<unsigned> Idxs) { in getInsertValue() argument [all …]
|
D | Instructions.cpp | 1660 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 1668 assert(Idxs.size() > 0 && "InsertValueInst must have at least one index"); in init() 1670 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 1675 Indices.append(Idxs.begin(), Idxs.end()); in init() 1692 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { in init() argument 1697 assert(Idxs.size() > 0 && "ExtractValueInst must have at least one index"); in init() 1699 Indices.append(Idxs.begin(), Idxs.end()); in init() 1716 ArrayRef<unsigned> Idxs) { in getIndexedType() argument 1717 for (unsigned Index : Idxs) { in getIndexedType()
|
D | Verifier.cpp | 1860 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst() local 1862 GetElementPtrInst::getIndexedType(GEP.getPointerOperandType(), Idxs); in visitGetElementPtrInst() 1874 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in visitGetElementPtrInst() 1875 Type *IndexTy = Idxs[i]->getType(); in visitGetElementPtrInst()
|
/external/llvm/include/llvm/IR/ |
D | Instructions.h | 1836 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 1843 ArrayRef<unsigned> Idxs, 1847 ArrayRef<unsigned> Idxs, 1859 ArrayRef<unsigned> Idxs, 1863 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 1866 ArrayRef<unsigned> Idxs, 1869 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 1876 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 1914 ArrayRef<unsigned> Idxs, 1917 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), [all …]
|
D | IRBuilder.h | 1014 Value *Idxs[] = { variable 1020 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name); 1022 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name); 1026 Value *Idxs[] = { variable 1032 return Insert(Folder.CreateInBoundsGetElementPtr(PC, Idxs), Name); 1034 return Insert(GetElementPtrInst::CreateInBounds(Ptr, Idxs), Name); 1055 Value *Idxs[] = { variable 1061 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name); 1063 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name); 1067 Value *Idxs[] = { variable [all …]
|
D | Constants.h | 1058 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs); 1060 ArrayRef<unsigned> Idxs);
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1551 SmallVectorImpl<unsigned> &Idxs, in BuildSubAggregate() argument 1561 Idxs.push_back(i); in BuildSubAggregate() 1563 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate() 1565 Idxs.pop_back(); in BuildSubAggregate() 1587 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate() 1593 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate() 1615 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local 1616 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate() 1618 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate() 1693 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local [all …]
|
D | InstructionSimplify.cpp | 2802 ArrayRef<unsigned> Idxs, const Query &Q, in SimplifyInsertValueInst() argument 2806 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); in SimplifyInsertValueInst() 2815 EV->getIndices() == Idxs) { in SimplifyInsertValueInst() 2829 ArrayRef<unsigned> Idxs, in SimplifyInsertValueInst() argument 2833 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (DL, TLI, DT), in SimplifyInsertValueInst()
|
/external/clang/lib/CodeGen/ |
D | CGVTT.cpp | 77 llvm::Value *Idxs[] = { in EmitVTTDefinition() local 83 llvm::ConstantExpr::getInBoundsGetElementPtr(VTable, Idxs); in EmitVTTDefinition()
|
D | CGObjCGNU.cpp | 2451 llvm::Constant *Idxs[] = {Zeros[0], in ModuleInitFunction() local 2455 makeArrayRef(Idxs, 2)); in ModuleInitFunction()
|
D | CGObjCMac.cpp | 1686 llvm::Value *Idxs[] = { in getConstantGEP() local 1690 return llvm::ConstantExpr::getGetElementPtr(C, Idxs); in getConstantGEP()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 676 Value *Idxs[2] = { in DoPromotion() local 679 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 680 Value *Idx = GetElementPtrInst::Create(*AI, Idxs, in DoPromotion() 808 Value *Idxs[2] = { in DoPromotion() local 812 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 814 GetElementPtrInst::Create(TheAlloca, Idxs, in DoPromotion()
|
D | GlobalOpt.cpp | 571 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local 572 Idxs.push_back(NullInt); in SRAGlobal() 574 Idxs.push_back(CE->getOperand(i)); in SRAGlobal() 575 NewPtr = ConstantExpr::getGetElementPtr(cast<Constant>(NewPtr), Idxs); in SRAGlobal() 578 SmallVector<Value*, 8> Idxs; in SRAGlobal() local 579 Idxs.push_back(NullInt); in SRAGlobal() 581 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal() 582 NewPtr = GetElementPtrInst::Create(NewPtr, Idxs, in SRAGlobal() 714 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local 715 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | ConstantFolding.h | 74 ArrayRef<unsigned> Idxs);
|
D | InstructionSimplify.h | 201 ArrayRef<unsigned> Idxs,
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 439 std::vector<Constant*> Idxs; in Act() local 447 Idxs.push_back(CI); in Act() 450 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
/external/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 129 Value *Idxs[2] = { Zero, One }; in insertCallSiteStore() local 130 Value *CallSite = Builder.CreateGEP(FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
|
/external/llvm/utils/TableGen/ |
D | CodeGenDAGPatterns.cpp | 3396 std::vector<unsigned> Idxs; in CombineChildVariants() local 3397 Idxs.resize(ChildVariants.size()); in CombineChildVariants() 3401 DEBUG(if (!Idxs.empty()) { in CombineChildVariants() 3403 for (unsigned i = 0; i < Idxs.size(); ++i) { in CombineChildVariants() 3404 errs() << Idxs[i] << " "; in CombineChildVariants() 3412 NewChildren.push_back(ChildVariants[i][Idxs[i]]); in CombineChildVariants() 3450 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { in CombineChildVariants() 3451 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size()) in CombineChildVariants() 3452 Idxs[IdxsIdx] = 0; in CombineChildVariants()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 322 Value *Idxs[2] = { Idx, Idx }; in InstCombineLoadCast() local 323 CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs); in InstCombineLoadCast()
|
D | InstCombineCasts.cpp | 1823 SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt); in visitBitCast() local 1824 return GetElementPtrInst::CreateInBounds(Src, Idxs); in visitBitCast()
|