Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DConstantFold.h43 ArrayRef<unsigned> Idxs);
45 ArrayRef<unsigned> Idxs);
51 ArrayRef<Constant *> Idxs);
53 ArrayRef<Value *> Idxs);
DAutoUpgrade.cpp362 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 …]
DConstantFold.cpp866 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 …]
DConstants.cpp2005 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 …]
DInstructions.cpp1555 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()
DVerifier.cpp2460 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/
DInstructions.h1901 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 …]
DIRBuilder.h1093 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 …]
DConstants.h1105 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs,
1108 ArrayRef<unsigned> Idxs,
/external/clang/lib/CodeGen/
DCGVTT.cpp77 llvm::Value *Idxs[] = { in EmitVTTDefinition() local
83 VTable->getValueType(), VTable, Idxs); in EmitVTTDefinition()
DCGObjCGNU.cpp2458 llvm::Constant *Idxs[] = {Zeros[0], in ModuleInitFunction() local
2462 SelectorList->getValueType(), SelectorList, makeArrayRef(Idxs, 2)); in ModuleInitFunction()
DCGObjCMac.cpp1680 llvm::Value *Idxs[] = { in getConstantGEP() local
1684 return llvm::ConstantExpr::getGetElementPtr(C->getValueType(), C, Idxs); in getConstantGEP()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp771 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()
DGlobalOpt.cpp572 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 …]
DLowerBitSets.cpp350 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() local
353 ByteArrayConst->getType(), ByteArray, Idxs); in allocateByteArrays()
/external/llvm/include/llvm/Analysis/
DConstantFolding.h73 ArrayRef<unsigned> Idxs);
DInstructionSimplify.h241 ArrayRef<unsigned> Idxs, const DataLayout &DL,
/external/llvm/lib/Analysis/
DValueTracking.cpp2397 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 …]
DInstructionSimplify.cpp3340 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/
Dllvm-stress.cpp439 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/
DSjLjEHPrepare.cpp134 Value *Idxs[2] = { Zero, One }; in insertCallSiteStore() local
136 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
/external/llvm/utils/TableGen/
DCodeGenDAGPatterns.cpp3526 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/
DInstCombineCasts.cpp1785 SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt); in visitBitCast() local
1786 return GetElementPtrInst::CreateInBounds(Src, Idxs); in visitBitCast()