/external/llvm/lib/IR/ |
D | ConstantFold.h | 43 ArrayRef<unsigned> Idxs); 45 ArrayRef<unsigned> Idxs); 51 ArrayRef<Constant *> Idxs); 53 ArrayRef<Value *> Idxs);
|
D | AutoUpgrade.cpp | 362 SmallVector<Constant*, 32> Idxs; in UpgradeX86PSLLDQIntrinsics() local 369 Idxs.push_back(Builder.getInt32(Idx + l)); in UpgradeX86PSLLDQIntrinsics() 372 Res = Builder.CreateShuffleVector(Res, Op, ConstantVector::get(Idxs)); in UpgradeX86PSLLDQIntrinsics() 399 SmallVector<Constant*, 32> Idxs; in UpgradeX86PSRLDQIntrinsics() local 406 Idxs.push_back(Builder.getInt32(Idx + l)); in UpgradeX86PSRLDQIntrinsics() 409 Res = Builder.CreateShuffleVector(Op, Res, ConstantVector::get(Idxs)); in UpgradeX86PSRLDQIntrinsics() 543 const int Idxs[4] = { 0, 1, 0, 1 }; in UpgradeIntrinsicCall() local 545 Idxs); in UpgradeIntrinsicCall() 600 SmallVector<Constant*, 16> Idxs; in UpgradeIntrinsicCall() local 603 Idxs.push_back(Builder.getInt32(Idx)); in UpgradeIntrinsicCall() [all …]
|
D | ConstantFold.cpp | 866 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument 868 if (Idxs.empty()) in ConstantFoldExtractValueInstruction() 871 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 872 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction() 879 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument 881 if (Idxs.empty()) in ConstantFoldInsertValueInstruction() 897 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction() 898 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction() 1976 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument 1978 if (Idxs.empty()) return true; in isInBoundsIndices() [all …]
|
D | Constants.cpp | 2005 ArrayRef<Value *> Idxs, bool InBounds, in getGetElementPtr() argument 2007 if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds, Idxs)) in getGetElementPtr() 2016 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); in getGetElementPtr() 2028 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr() 2030 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in getGetElementPtr() 2031 assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && in getGetElementPtr() 2033 assert((!Idxs[i]->getType()->isVectorTy() || in getGetElementPtr() 2035 Idxs[i]->getType()->getVectorNumElements()) && in getGetElementPtr() 2037 ArgVec.push_back(cast<Constant>(Idxs[i])); in getGetElementPtr() 2164 ArrayRef<unsigned> Idxs, in getInsertValue() argument [all …]
|
D | Instructions.cpp | 1555 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 1563 assert(Idxs.size() > 0 && "InsertValueInst must have at least one index"); in init() 1565 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 1570 Indices.append(Idxs.begin(), Idxs.end()); in init() 1587 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { in init() argument 1592 assert(Idxs.size() > 0 && "ExtractValueInst must have at least one index"); in init() 1594 Indices.append(Idxs.begin(), Idxs.end()); in init() 1611 ArrayRef<unsigned> Idxs) { in getIndexedType() argument 1612 for (unsigned Index : Idxs) { in getIndexedType()
|
D | Verifier.cpp | 2460 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst() local 2462 GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs); in visitGetElementPtrInst() 2475 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in visitGetElementPtrInst() 2476 Type *IndexTy = Idxs[i]->getType(); in visitGetElementPtrInst()
|
/external/llvm/include/llvm/IR/ |
D | Instructions.h | 1901 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 1908 ArrayRef<unsigned> Idxs, 1912 ArrayRef<unsigned> Idxs, 1924 ArrayRef<unsigned> Idxs, 1928 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 1931 ArrayRef<unsigned> Idxs, 1934 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 1941 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 1982 ArrayRef<unsigned> Idxs, 1985 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), [all …]
|
D | IRBuilder.h | 1093 Value *Idxs[] = { variable 1099 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name); 1101 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name); 1105 Value *Idxs[] = { variable 1111 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name); 1113 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name); 1134 Value *Idxs[] = { variable 1140 return Insert(Folder.CreateGetElementPtr(nullptr, PC, Idxs), Name); 1142 return Insert(GetElementPtrInst::Create(nullptr, Ptr, Idxs), Name); 1146 Value *Idxs[] = { variable [all …]
|
D | Constants.h | 1105 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, 1108 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 | 2458 llvm::Constant *Idxs[] = {Zeros[0], in ModuleInitFunction() local 2462 SelectorList->getValueType(), SelectorList, makeArrayRef(Idxs, 2)); in ModuleInitFunction()
|
D | CGObjCMac.cpp | 1680 llvm::Value *Idxs[] = { in getConstantGEP() local 1684 return llvm::ConstantExpr::getGetElementPtr(C->getValueType(), C, Idxs); in getConstantGEP()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 771 Value *Idxs[2] = { in DoPromotion() local 774 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 776 STy, *AI, Idxs, (*AI)->getName() + "." + utostr(i), Call); in DoPromotion() 906 Value *Idxs[2] = { in DoPromotion() local 910 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion() 912 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i), in DoPromotion()
|
D | GlobalOpt.cpp | 572 SmallVector<Constant*, 8> Idxs; in SRAGlobal() local 573 Idxs.push_back(NullInt); in SRAGlobal() 575 Idxs.push_back(CE->getOperand(i)); in SRAGlobal() 577 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal() 578 NewTy = GetElementPtrInst::getIndexedType(NewTy, Idxs); in SRAGlobal() 581 SmallVector<Value*, 8> Idxs; in SRAGlobal() local 582 Idxs.push_back(NullInt); in SRAGlobal() 584 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal() 586 NewPtr->getType()->getPointerElementType(), NewPtr, Idxs, in SRAGlobal() 718 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local [all …]
|
D | LowerBitSets.cpp | 350 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() local 353 ByteArrayConst->getType(), ByteArray, Idxs); in allocateByteArrays()
|
/external/llvm/include/llvm/Analysis/ |
D | ConstantFolding.h | 73 ArrayRef<unsigned> Idxs);
|
D | InstructionSimplify.h | 241 ArrayRef<unsigned> Idxs, const DataLayout &DL,
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 2397 SmallVectorImpl<unsigned> &Idxs, in BuildSubAggregate() argument 2407 Idxs.push_back(i); in BuildSubAggregate() 2409 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate() 2411 Idxs.pop_back(); in BuildSubAggregate() 2433 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate() 2439 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate() 2461 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local 2462 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate() 2464 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate() 2539 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local [all …]
|
D | InstructionSimplify.cpp | 3340 ArrayRef<unsigned> Idxs, const Query &Q, in SimplifyInsertValueInst() argument 3344 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); in SimplifyInsertValueInst() 3353 EV->getIndices() == Idxs) { in SimplifyInsertValueInst() 3367 Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL, in SimplifyInsertValueInst() argument 3370 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query(DL, TLI, DT, AC, CxtI), in SimplifyInsertValueInst()
|
/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 | 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 | 3526 std::vector<unsigned> Idxs; in CombineChildVariants() local 3527 Idxs.resize(ChildVariants.size()); in CombineChildVariants() 3531 DEBUG(if (!Idxs.empty()) { in CombineChildVariants() 3533 for (unsigned i = 0; i < Idxs.size(); ++i) { in CombineChildVariants() 3534 errs() << Idxs[i] << " "; in CombineChildVariants() 3542 NewChildren.push_back(ChildVariants[i][Idxs[i]]); in CombineChildVariants() 3580 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { in CombineChildVariants() 3581 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size()) in CombineChildVariants() 3582 Idxs[IdxsIdx] = 0; in CombineChildVariants()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1785 SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt); in visitBitCast() local 1786 return GetElementPtrInst::CreateInBounds(Src, Idxs); in visitBitCast()
|