/external/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 | 823 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument 825 if (Idxs.empty()) in ConstantFoldExtractValueInstruction() 828 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 829 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 836 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument 838 if (Idxs.empty()) in ConstantFoldInsertValueInstruction() 854 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction() 855 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction() 1893 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument 1895 if (Idxs.empty()) return true; in isInBoundsIndices() [all …]
|
D | AutoUpgrade.cpp | 273 SmallVector<Constant*, 8> Idxs; in UpgradeIntrinsicCall() local 277 Idxs.push_back(Builder.getInt32((Imm >> i) & 0x1)); in UpgradeIntrinsicCall() 281 Idxs.push_back(Builder.getInt32(((Imm >> (l+i)) & 0x1) + l)); in UpgradeIntrinsicCall() 284 Idxs.push_back(Builder.getInt32((Imm >> (2 * i)) & 0x3)); in UpgradeIntrinsicCall() 288 Idxs.push_back(Builder.getInt32(((Imm >> (2 * i)) & 0x3) + l)); in UpgradeIntrinsicCall() 292 Rep = Builder.CreateShuffleVector(Op0, Op0, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
|
D | Constants.cpp | 1740 Constant *ConstantExpr::getGetElementPtr(Constant *C, ArrayRef<Value *> Idxs, in getGetElementPtr() argument 1742 if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds, Idxs)) in getGetElementPtr() 1746 Type *Ty = GetElementPtrInst::getIndexedType(C->getType(), Idxs); in getGetElementPtr() 1755 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr() 1757 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) in getGetElementPtr() 1758 ArgVec.push_back(cast<Constant>(Idxs[i])); in getGetElementPtr() 1876 ArrayRef<unsigned> Idxs) { in getInsertValue() argument 1878 Idxs) == Val->getType() && in getInsertValue() 1882 Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs); in getInsertValue() 1888 ArrayRef<unsigned> Idxs) { in getExtractValue() argument [all …]
|
D | Instructions.cpp | 1640 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 1648 assert(Idxs.size() > 0 && "InsertValueInst must have at least one index"); in init() 1650 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 1655 Indices.append(Idxs.begin(), Idxs.end()); in init() 1672 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { in init() argument 1677 assert(Idxs.size() > 0 && "ExtractValueInst must have at least one index"); in init() 1679 Indices.append(Idxs.begin(), Idxs.end()); in init() 1696 ArrayRef<unsigned> Idxs) { in getIndexedType() argument 1697 for (unsigned CurIdx = 0; CurIdx != Idxs.size(); ++CurIdx) { in getIndexedType() 1698 unsigned Index = Idxs[CurIdx]; in getIndexedType()
|
D | Verifier.cpp | 1335 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst() local 1337 GetElementPtrInst::getIndexedType(GEP.getPointerOperandType(), Idxs); in visitGetElementPtrInst() 1347 Assert1(Idxs.size() == 1, "Invalid number of indices!", &GEP); in visitGetElementPtrInst() 1348 Value *Index = Idxs[0]; in visitGetElementPtrInst()
|
/external/llvm/include/llvm/ |
D | IRBuilder.h | 884 Value *Idxs[] = { variable 890 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name); 892 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name); 896 Value *Idxs[] = { variable 902 return Insert(Folder.CreateInBoundsGetElementPtr(PC, Idxs), Name); 904 return Insert(GetElementPtrInst::CreateInBounds(Ptr, Idxs), Name); 925 Value *Idxs[] = { variable 931 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name); 933 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name); 937 Value *Idxs[] = { variable [all …]
|
D | Instructions.h | 1736 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 1743 ArrayRef<unsigned> Idxs, 1747 ArrayRef<unsigned> Idxs, 1759 ArrayRef<unsigned> Idxs, 1763 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 1766 ArrayRef<unsigned> Idxs, 1769 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 1776 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 1815 ArrayRef<unsigned> Idxs, 1818 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), [all …]
|
D | Constants.h | 1058 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs); 1060 ArrayRef<unsigned> Idxs);
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1421 SmallVector<unsigned, 10> &Idxs, in BuildSubAggregate() argument 1431 Idxs.push_back(i); in BuildSubAggregate() 1433 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate() 1435 Idxs.pop_back(); in BuildSubAggregate() 1457 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate() 1463 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate() 1485 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local 1486 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate() 1488 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate() 1563 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local [all …]
|
D | InstructionSimplify.cpp | 2591 ArrayRef<unsigned> Idxs, const Query &Q, in SimplifyInsertValueInst() argument 2595 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); in SimplifyInsertValueInst() 2604 EV->getIndices() == Idxs) { in SimplifyInsertValueInst() 2618 ArrayRef<unsigned> Idxs, in SimplifyInsertValueInst() argument 2622 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (TD, TLI, DT), in SimplifyInsertValueInst()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 663 Value *Idxs[2] = { in DoPromotion() local 666 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 667 Value *Idx = GetElementPtrInst::Create(*AI, Idxs, in DoPromotion() 791 Value *Idxs[2] = { in DoPromotion() local 795 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 797 GetElementPtrInst::Create(TheAlloca, Idxs, in DoPromotion()
|
D | GlobalOpt.cpp | 758 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local 759 Idxs.push_back(NullInt); in SRAGlobal() 761 Idxs.push_back(CE->getOperand(i)); in SRAGlobal() 762 NewPtr = ConstantExpr::getGetElementPtr(cast<Constant>(NewPtr), Idxs); in SRAGlobal() 765 SmallVector<Value*, 8> Idxs; in SRAGlobal() local 766 Idxs.push_back(NullInt); in SRAGlobal() 768 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal() 769 NewPtr = GetElementPtrInst::Create(NewPtr, Idxs, in SRAGlobal() 908 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local 909 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 316 Value *Idxs[2]; in InstCombineLoadCast() local 317 Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext())); in InstCombineLoadCast() 318 Idxs[1] = Idxs[0]; in InstCombineLoadCast() 319 CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs); in InstCombineLoadCast()
|
D | InstCombineCasts.cpp | 1683 SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt); in visitBitCast() local 1684 return GetElementPtrInst::CreateInBounds(Src, Idxs); in visitBitCast()
|
/external/llvm/include/llvm/Analysis/ |
D | ConstantFolding.h | 73 ArrayRef<unsigned> Idxs);
|
D | InstructionSimplify.h | 157 ArrayRef<unsigned> Idxs,
|
/external/clang/lib/CodeGen/ |
D | CGVTT.cpp | 75 llvm::Value *Idxs[] = { in EmitVTTDefinition() local 81 llvm::ConstantExpr::getInBoundsGetElementPtr(VTable, Idxs); in EmitVTTDefinition()
|
D | CGObjCGNU.cpp | 2335 llvm::Constant *Idxs[] = {Zeros[0], in ModuleInitFunction() local 2339 makeArrayRef(Idxs, 2)); in ModuleInitFunction()
|
D | CGObjCMac.cpp | 1537 llvm::Value *Idxs[] = { in getConstantGEP() local 1541 return llvm::ConstantExpr::getGetElementPtr(C, Idxs); in getConstantGEP()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 435 std::vector<Constant*> Idxs; in Act() local 443 Idxs.push_back(CI); in Act() 446 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
/external/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 133 Value *Idxs[2] = { Zero, One }; in insertCallSiteStore() local 134 Value *CallSite = Builder.CreateGEP(FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
|
/external/llvm/utils/TableGen/ |
D | CodeGenDAGPatterns.cpp | 3169 std::vector<unsigned> Idxs; in CombineChildVariants() local 3170 Idxs.resize(ChildVariants.size()); in CombineChildVariants() 3174 DEBUG(if (!Idxs.empty()) { in CombineChildVariants() 3176 for (unsigned i = 0; i < Idxs.size(); ++i) { in CombineChildVariants() 3177 errs() << Idxs[i] << " "; in CombineChildVariants() 3185 NewChildren.push_back(ChildVariants[i][Idxs[i]]); in CombineChildVariants() 3223 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { in CombineChildVariants() 3224 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size()) in CombineChildVariants() 3225 Idxs[IdxsIdx] = 0; in CombineChildVariants()
|