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

/freebsd-10.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);
H A DConstantFold.cpp825 ArrayRef<unsigned> Idxs) {
827 if (Idxs.empty())
830 if (Constant *C = Agg->getAggregateElement(Idxs[0]))
831 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1));
838 ArrayRef<unsigned> Idxs) {
840 if (Idxs.empty())
856 if (Idxs[0] == i)
857 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1));
1882 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { argument
1884 if (Idxs
824 ConstantFoldExtractValueInstruction(Constant *Agg, ArrayRef<unsigned> Idxs) argument
836 ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs) argument
1900 ConstantFoldGetElementPtrImpl(Constant *C, bool inBounds, ArrayRef<IndexTy> Idxs) argument
2064 ConstantFoldGetElementPtr(Constant *C, bool inBounds, ArrayRef<Constant *> Idxs) argument
2070 ConstantFoldGetElementPtr(Constant *C, bool inBounds, ArrayRef<Value *> Idxs) argument
[all...]
H A DAutoUpgrade.cpp274 SmallVector<Constant*, 8> Idxs; local
278 Idxs.push_back(Builder.getInt32((Imm >> i) & 0x1));
282 Idxs.push_back(Builder.getInt32(((Imm >> (l+i)) & 0x1) + l));
285 Idxs.push_back(Builder.getInt32((Imm >> (2 * i)) & 0x3));
289 Idxs.push_back(Builder.getInt32(((Imm >> (2 * i)) & 0x3) + l));
293 Rep = Builder.CreateShuffleVector(Op0, Op0, ConstantVector::get(Idxs));
H A DConstants.cpp1821 Constant *ConstantExpr::getGetElementPtr(Constant *C, ArrayRef<Value *> Idxs, argument
1826 if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds, Idxs))
1830 Type *Ty = GetElementPtrInst::getIndexedType(C->getType(), Idxs);
1839 ArgVec.reserve(1 + Idxs.size());
1841 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) {
1842 assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() &&
1844 assert((!Idxs[i]->getType()->isVectorTy() ||
1846 Idxs[i]->getType()->getVectorNumElements()) &&
1848 ArgVec.push_back(cast<Constant>(Idxs[i]));
1958 ArrayRef<unsigned> Idxs) {
1957 getInsertValue(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs) argument
1969 getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs) argument
[all...]
H A DInstructions.cpp1352 /// The Idxs pointer should point to a continuous piece of memory containing the
1647 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, argument
1655 assert(Idxs.size() > 0 && "InsertValueInst must have at least one index");
1657 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
1662 Indices.append(Idxs.begin(), Idxs.end());
1679 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { argument
1684 assert(Idxs.size() > 0 && "ExtractValueInst must have at least one index");
1686 Indices.append(Idxs.begin(), Idxs
1702 getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs) argument
[all...]
H A DVerifier.cpp1588 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end());
1590 GetElementPtrInst::getIndexedType(GEP.getPointerOperandType(), Idxs);
1602 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) {
1603 Type *IndexTy = Idxs[i]->getType();
/freebsd-10.0-release/contrib/llvm/include/llvm/Analysis/
H A DConstantFolding.h73 ArrayRef<unsigned> Idxs);
H A DInstructionSimplify.h195 ArrayRef<unsigned> Idxs,
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGVTT.cpp75 llvm::Value *Idxs[] = { local
81 llvm::ConstantExpr::getInBoundsGetElementPtr(VTable, Idxs);
H A DCGObjCGNU.cpp2470 llvm::Constant *Idxs[] = {Zeros[0], local
2474 makeArrayRef(Idxs, 2));
H A DCGObjCMac.cpp1690 llvm::Value *Idxs[] = { local
1694 return llvm::ConstantExpr::getGetElementPtr(C, Idxs);
/freebsd-10.0-release/contrib/llvm/include/llvm/IR/
H A DIRBuilder.h965 Value *Idxs[] = { local
971 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name);
973 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name);
977 Value *Idxs[] = { local
983 return Insert(Folder.CreateInBoundsGetElementPtr(PC, Idxs), Name);
985 return Insert(GetElementPtrInst::CreateInBounds(Ptr, Idxs), Name);
1006 Value *Idxs[] = { local
1012 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name);
1014 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name);
1018 Value *Idxs[] local
1348 CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &Name = �) argument
1356 CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &Name = �) argument
[all...]
H A DInstructions.h1738 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
1745 ArrayRef<unsigned> Idxs,
1749 ArrayRef<unsigned> Idxs,
1761 ArrayRef<unsigned> Idxs,
1765 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1768 ArrayRef<unsigned> Idxs,
1771 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1778 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1816 ArrayRef<unsigned> Idxs,
1819 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
1760 Create(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = 0) argument
1767 Create(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1815 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
1823 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1875 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = 0) argument
1881 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1941 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
1951 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
[all...]
H A DConstants.h1045 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs);
1047 ArrayRef<unsigned> Idxs);
/freebsd-10.0-release/contrib/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp665 Value *Idxs[2] = { local
668 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
669 Value *Idx = GetElementPtrInst::Create(*AI, Idxs,
796 Value *Idxs[2] = { local
800 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
802 GetElementPtrInst::Create(TheAlloca, Idxs,
H A DGlobalOpt.cpp762 SmallVector<Constant*, 8> Idxs; local
763 Idxs.push_back(NullInt);
765 Idxs.push_back(CE->getOperand(i));
766 NewPtr = ConstantExpr::getGetElementPtr(cast<Constant>(NewPtr), Idxs);
769 SmallVector<Value*, 8> Idxs; local
770 Idxs.push_back(NullInt);
772 Idxs.push_back(GEPI->getOperand(i));
773 NewPtr = GetElementPtrInst::Create(NewPtr, Idxs,
912 SmallVector<Constant*, 8> Idxs; local
913 Idxs
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp1506 // arguments. Idxs is the index within the nested struct From that we are
1508 // indices from Idxs that should be left out when inserting into the resulting
1512 SmallVector<unsigned, 10> &Idxs,
1519 // General case, the type indexed by Idxs is a struct
1522 Idxs.push_back(i);
1524 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip,
1526 Idxs.pop_back();
1548 Value *V = FindInsertedValue(From, Idxs);
1554 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip),
1576 SmallVector<unsigned, 10> Idxs(idx_rang
1511 BuildSubAggregate(Value *From, Value* To, Type *IndexedType, SmallVector<unsigned, 10> &Idxs, unsigned IdxSkip, Instruction *InsertBefore) argument
1654 SmallVector<unsigned, 5> Idxs; local
[all...]
H A DInstructionSimplify.cpp2757 ArrayRef<unsigned> Idxs, const Query &Q,
2761 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs);
2770 EV->getIndices() == Idxs) {
2784 ArrayRef<unsigned> Idxs,
2788 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (TD, TLI, DT),
2756 SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Query &Q, unsigned) argument
2783 SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout *TD, const TargetLibraryInfo *TLI, const DominatorTree *DT) argument
/freebsd-10.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp305 Value *Idxs[2]; local
306 Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext()));
307 Idxs[1] = Idxs[0];
308 CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs);
H A DInstCombineCasts.cpp1715 SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt);
1716 return GetElementPtrInst::CreateInBounds(Src, Idxs);
/freebsd-10.0-release/contrib/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp133 Value *Idxs[2] = { Zero, One }; local
134 Value *CallSite = Builder.CreateGEP(FuncCtx, Idxs, "call_site");
/freebsd-10.0-release/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp437 std::vector<Constant*> Idxs; local
445 Idxs.push_back(CI);
448 Constant *Mask = ConstantVector::get(Idxs);
/freebsd-10.0-release/contrib/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.cpp3302 std::vector<unsigned> Idxs;
3303 Idxs.resize(ChildVariants.size());
3307 DEBUG(if (!Idxs.empty()) {
3308 errs() << Orig->getOperator()->getName() << ": Idxs = [ ";
3309 for (unsigned i = 0; i < Idxs.size(); ++i) {
3310 errs() << Idxs[i] << " ";
3318 NewChildren.push_back(ChildVariants[i][Idxs[i]]);
3356 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) {
3357 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size())
3358 Idxs[IdxsId
[all...]

Completed in 407 milliseconds