Searched refs:Idxs (Results 1 - 25 of 25) sorted by relevance

/freebsd-11.0-release/contrib/llvm/lib/IR/
H A DConstantFold.h43 ArrayRef<unsigned> Idxs);
45 ArrayRef<unsigned> Idxs);
51 ArrayRef<Constant *> Idxs);
53 ArrayRef<Value *> Idxs);
55 ArrayRef<Constant *> Idxs);
57 ArrayRef<Value *> Idxs);
H A DAutoUpgrade.cpp304 SmallVector<Constant*, 32> Idxs; local
311 Idxs.push_back(Builder.getInt32(Idx + l));
314 Res = Builder.CreateShuffleVector(Res, Op, ConstantVector::get(Idxs));
341 SmallVector<Constant*, 32> Idxs; local
348 Idxs.push_back(Builder.getInt32(Idx + l));
351 Res = Builder.CreateShuffleVector(Op, Res, ConstantVector::get(Idxs));
509 const int Idxs[4] = { 0, 1, 0, 1 }; local
511 Idxs);
574 SmallVector<Constant*, 16> Idxs; local
577 Idxs
596 SmallVector<Constant*, 8> Idxs; local
662 SmallVector<Constant*, 8> Idxs; local
[all...]
H A DConstantFold.cpp872 ArrayRef<unsigned> Idxs) {
874 if (Idxs.empty())
877 if (Constant *C = Agg->getAggregateElement(Idxs[0]))
878 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1));
885 ArrayRef<unsigned> Idxs) {
887 if (Idxs.empty())
903 if (Idxs[0] == i)
904 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1));
1985 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { argument
1987 if (Idxs
871 ConstantFoldExtractValueInstruction(Constant *Agg, ArrayRef<unsigned> Idxs) argument
883 ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs) argument
2034 ConstantFoldGetElementPtrImpl(Type *PointeeTy, Constant *C, bool inBounds, ArrayRef<IndexTy> Idxs) argument
2240 ConstantFoldGetElementPtr(Constant *C, bool inBounds, ArrayRef<Constant *> Idxs) argument
2248 ConstantFoldGetElementPtr(Constant *C, bool inBounds, ArrayRef<Value *> Idxs) argument
2256 ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds, ArrayRef<Constant *> Idxs) argument
2262 ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds, ArrayRef<Value *> Idxs) argument
[all...]
H A DConstants.cpp1965 ArrayRef<Value *> Idxs, bool InBounds,
1974 if (Constant *FC = ConstantFoldGetElementPtr(Ty, C, InBounds, Idxs))
1978 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs);
1990 ArgVec.reserve(1 + Idxs.size());
1992 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) {
1993 assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() &&
1995 assert((!Idxs[i]->getType()->isVectorTy() ||
1997 Idxs[i]->getType()->getVectorNumElements()) &&
1999 ArgVec.push_back(cast<Constant>(Idxs[i]));
2127 ArrayRef<unsigned> Idxs,
1964 getGetElementPtr(Type *Ty, Constant *C, ArrayRef<Value *> Idxs, bool InBounds, Type *OnlyIfReducedTy) argument
2126 getInsertValue(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs, Type *OnlyIfReducedTy) argument
2150 getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, Type *OnlyIfReducedTy) argument
[all...]
H A DInstructions.cpp1530 /// The Idxs pointer should point to a continuous piece of memory containing the
1821 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
1829 assert(Idxs.size() > 0 && "InsertValueInst must have at least one index");
1831 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
1836 Indices.append(Idxs.begin(), Idxs.end());
1853 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) {
1858 assert(Idxs.size() > 0 && "ExtractValueInst must have at least one index");
1860 Indices.append(Idxs.begin(), Idxs
[all...]
H A DVerifier.cpp2729 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end());
2731 GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs);
2744 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) {
2745 Type *IndexTy = Idxs[i]->getType();
/freebsd-11.0-release/contrib/llvm/include/llvm/Analysis/
H A DConstantFolding.h73 ArrayRef<unsigned> Idxs);
79 ArrayRef<unsigned> Idxs);
H A DInstructionSimplify.h241 ArrayRef<unsigned> Idxs, const DataLayout &DL,
249 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGVTT.cpp77 llvm::Value *Idxs[] = { local
83 VTable->getValueType(), VTable, Idxs);
H A DCGObjCGNU.cpp2484 llvm::Constant *Idxs[] = {Zeros[0], local
2488 SelectorList->getValueType(), SelectorList, makeArrayRef(Idxs, 2));
H A DMicrosoftCXXABI.cpp3126 llvm::Value *Idxs[] = {getZeroInt(), VBIndex}; local
3128 Builder.CreateAlignedLoad(Builder.CreateInBoundsGEP(VDispMap, Idxs),
H A DCGObjCMac.cpp1676 llvm::Value *Idxs[] = { local
1680 return llvm::ConstantExpr::getGetElementPtr(C->getValueType(), C, Idxs);
H A DCGBuiltin.cpp6229 Value *Idxs[] = { local
6234 Value *CpuFeatures = Builder.CreateGEP(STy, CpuModel, Idxs);
/freebsd-11.0-release/contrib/llvm/include/llvm/IR/
H A DIRBuilder.h1176 Value *Idxs[] = { local
1182 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name);
1184 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
1188 Value *Idxs[] = { local
1194 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name);
1196 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
1217 Value *Idxs[] = { local
1223 return Insert(Folder.CreateGetElementPtr(nullptr, PC, Idxs), Name);
1225 return Insert(GetElementPtrInst::Create(nullptr, Ptr, Idxs), Name);
1229 Value *Idxs[] local
1630 CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &Name = �) argument
1638 CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &Name = �) argument
[all...]
H A DInstructions.h2188 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)),
2211 Create(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = nullptr) argument
2218 Create(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
2269 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
2277 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
2332 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = nullptr) argument
2338 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
2401 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
2411 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
[all...]
H A DConstants.h1162 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs,
1165 ArrayRef<unsigned> Idxs,
/freebsd-11.0-release/contrib/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp788 Value *Idxs[2] = { local
791 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
793 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call);
916 Value *Idxs[2] = { local
920 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
922 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i),
H A DGlobalOpt.cpp575 SmallVector<Constant*, 8> Idxs; local
576 Idxs.push_back(NullInt);
578 Idxs.push_back(CE->getOperand(i));
580 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs);
583 SmallVector<Value*, 8> Idxs; local
584 Idxs.push_back(NullInt);
586 Idxs.push_back(GEPI->getOperand(i));
588 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(Val), GEPI);
719 SmallVector<Constant*, 8> Idxs; local
720 Idxs
[all...]
H A DLowerBitSets.cpp390 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), local
393 ByteArrayConst->getType(), ByteArray, Idxs);
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp134 Value *Idxs[2] = { Zero, One }; local
136 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site");
/freebsd-11.0-release/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp447 std::vector<Constant*> Idxs; variable
455 Idxs.push_back(CI);
458 Constant *Mask = ConstantVector::get(Idxs);
/freebsd-11.0-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp2673 // arguments. Idxs is the index within the nested struct From that we are
2675 // indices from Idxs that should be left out when inserting into the resulting
2679 SmallVectorImpl<unsigned> &Idxs,
2686 // General case, the type indexed by Idxs is a struct
2689 Idxs.push_back(i);
2691 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip,
2693 Idxs.pop_back();
2715 Value *V = FindInsertedValue(From, Idxs);
2721 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip),
2743 SmallVector<unsigned, 10> Idxs(idx_rang
2678 BuildSubAggregate(Value *From, Value* To, Type *IndexedType, SmallVectorImpl<unsigned> &Idxs, unsigned IdxSkip, Instruction *InsertBefore) argument
2821 SmallVector<unsigned, 5> Idxs; local
[all...]
H A DInstructionSimplify.cpp3542 ArrayRef<unsigned> Idxs, const Query &Q,
3546 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs);
3555 EV->getIndices() == Idxs) {
3569 Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL,
3572 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query(DL, TLI, DT, AC, CxtI),
3578 static Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, argument
3581 return ConstantFoldExtractValueInstruction(CAgg, Idxs);
3584 unsigned NumIdxs = Idxs.size();
3591 Idxs.slice(0, NumCommonIdxs)) {
3601 Value *llvm::SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, argument
3541 SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Query &Q, unsigned) argument
3568 SimplifyInsertValueInst( Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL, const TargetLibraryInfo *TLI, const DominatorTree *DT, AssumptionCache *AC, const Instruction *CxtI) argument
[all...]
/freebsd-11.0-release/contrib/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.cpp3564 std::vector<unsigned> Idxs;
3565 Idxs.resize(ChildVariants.size());
3569 DEBUG(if (!Idxs.empty()) {
3570 errs() << Orig->getOperator()->getName() << ": Idxs = [ ";
3571 for (unsigned Idx : Idxs) {
3580 NewChildren.push_back(ChildVariants[i][Idxs[i]]);
3608 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) {
3609 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size())
3610 Idxs[IdxsIdx] = 0;
/freebsd-11.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1827 SmallVector<Value *, 8> Idxs(NumZeros + 1, Builder->getInt32(0));
1828 return GetElementPtrInst::CreateInBounds(Src, Idxs);

Completed in 2611 milliseconds