Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/LLVM/lib/CodeGen/
DSjLjEHPrepare.cpp511 Value *Idxs[2]; in insertSjLjEHSupport() local
515 Idxs[0] = Zero; in insertSjLjEHSupport()
516 Idxs[1] = ConstantInt::get(Int32Ty, 1); in insertSjLjEHSupport()
517 CallSite = GetElementPtrInst::Create(FunctionContext, Idxs, "call_site", in insertSjLjEHSupport()
521 Idxs[1] = ConstantInt::get(Int32Ty, 2); in insertSjLjEHSupport()
522 Value *FCData = GetElementPtrInst::Create(FunctionContext, Idxs, "fc_data", in insertSjLjEHSupport()
524 Idxs[1] = ConstantInt::get(Int32Ty, 1); in insertSjLjEHSupport()
525 Value *SelectorAddr = GetElementPtrInst::Create(FCData, Idxs, in insertSjLjEHSupport()
529 Idxs[1] = Zero; in insertSjLjEHSupport()
530 Value *ExceptionAddr = GetElementPtrInst::Create(FCData, Idxs, in insertSjLjEHSupport()
[all …]
/external/llvm/lib/IR/
DAutoUpgrade.cpp440 uint32_t Idxs[64]; in UpgradeX86PSLLDQIntrinsics() local
447 Idxs[l + i] = Idx + l; in UpgradeX86PSLLDQIntrinsics()
450 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics()
474 uint32_t Idxs[64]; in UpgradeX86PSRLDQIntrinsics() local
481 Idxs[l + i] = Idx + l; in UpgradeX86PSRLDQIntrinsics()
484 Res = Builder.CreateShuffleVector(Op, Res, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSRLDQIntrinsics()
935 uint32_t Idxs[4] = { 0, 1, 0, 1 }; in UpgradeIntrinsicCall() local
937 Idxs); in UpgradeIntrinsicCall()
993 SmallVector<uint32_t, 16> Idxs(NumElts); in UpgradeIntrinsicCall() local
995 Idxs[i] = ((Imm >> (i%8)) & 1) ? i + NumElts : i; in UpgradeIntrinsicCall()
[all …]
DConstantFold.h42 ArrayRef<unsigned> Idxs);
44 ArrayRef<unsigned> Idxs);
50 ArrayRef<Constant *> Idxs);
52 ArrayRef<Value *> Idxs);
DConstantFold.cpp871 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument
873 if (Idxs.empty()) in ConstantFoldExtractValueInstruction()
876 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
877 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
884 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument
886 if (Idxs.empty()) in ConstantFoldInsertValueInstruction()
902 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction()
903 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction()
2001 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument
2003 if (Idxs.empty()) return true; in isInBoundsIndices()
[all …]
DConstants.cpp1895 ArrayRef<Value *> Idxs, bool InBounds, in getGetElementPtr() argument
1904 if (Constant *FC = ConstantFoldGetElementPtr(Ty, C, InBounds, Idxs)) in getGetElementPtr()
1908 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); in getGetElementPtr()
1916 else for (auto Idx : Idxs) in getGetElementPtr()
1928 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr()
1930 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { in getGetElementPtr()
1931 assert((!Idxs[i]->getType()->isVectorTy() || in getGetElementPtr()
1932 Idxs[i]->getType()->getVectorNumElements() == NumVecElts) && in getGetElementPtr()
1935 Constant *Idx = cast<Constant>(Idxs[i]); in getGetElementPtr()
1936 if (NumVecElts && !Idxs[i]->getType()->isVectorTy()) in getGetElementPtr()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.h43 ArrayRef<unsigned> Idxs);
45 ArrayRef<unsigned> Idxs);
51 ArrayRef<Constant *> Idxs);
53 ArrayRef<Value *> Idxs);
DConstantFold.cpp886 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument
888 if (Idxs.empty()) in ConstantFoldExtractValueInstruction()
893 Idxs)); in ConstantFoldExtractValueInstruction()
898 Idxs)); in ConstantFoldExtractValueInstruction()
902 return ConstantFoldExtractValueInstruction(CS->getOperand(Idxs[0]), in ConstantFoldExtractValueInstruction()
903 Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
906 return ConstantFoldExtractValueInstruction(CA->getOperand(Idxs[0]), in ConstantFoldExtractValueInstruction()
907 Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
909 return ConstantFoldExtractValueInstruction(CV->getOperand(Idxs[0]), in ConstantFoldExtractValueInstruction()
910 Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.cpp877 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument
879 if (Idxs.empty()) in ConstantFoldExtractValueInstruction()
882 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
883 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
890 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument
892 if (Idxs.empty()) in ConstantFoldInsertValueInstruction()
906 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction()
907 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction()
2026 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { in isInBoundsIndices() argument
2028 if (Idxs.empty()) return true; in isInBoundsIndices()
[all …]
DConstantFold.h44 ArrayRef<unsigned> Idxs);
46 ArrayRef<unsigned> Idxs);
53 ArrayRef<Value *> Idxs);
DAutoUpgrade.cpp756 uint32_t Idxs[64]; in UpgradeX86PSLLDQIntrinsics() local
763 Idxs[l + i] = Idx + l; in UpgradeX86PSLLDQIntrinsics()
766 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics()
790 uint32_t Idxs[64]; in UpgradeX86PSRLDQIntrinsics() local
797 Idxs[l + i] = Idx + l; in UpgradeX86PSRLDQIntrinsics()
800 Res = Builder.CreateShuffleVector(Op, Res, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSRLDQIntrinsics()
2111 SmallVector<uint32_t, 16> Idxs(NumElts); in UpgradeIntrinsicCall() local
2113 Idxs[i] = ((Imm >> (i%8)) & 1) ? i + NumElts : i; in UpgradeIntrinsicCall()
2115 Rep = Builder.CreateShuffleVector(Op0, Op1, Idxs); in UpgradeIntrinsicCall()
2131 SmallVector<uint32_t, 8> Idxs(DstNumElts); in UpgradeIntrinsicCall() local
[all …]
/external/libcxx/benchmarks/
DCartesianBenchmarks.hpp26 template <class D, class E, size_t ...Idxs>
27 constexpr auto makeEnumValueTuple(std::index_sequence<Idxs...>) { in makeEnumValueTuple() argument
28 return std::make_tuple(EnumValue<D, E, Idxs>{}...); in makeEnumValueTuple()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DIRBuilder.h836 Value *Idxs[] = { variable
842 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name);
844 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name);
848 Value *Idxs[] = { variable
854 return Insert(Folder.CreateInBoundsGetElementPtr(PC, Idxs), Name);
856 return Insert(GetElementPtrInst::CreateInBounds(Ptr, Idxs), Name);
877 Value *Idxs[] = { variable
883 return Insert(Folder.CreateGetElementPtr(PC, Idxs), Name);
885 return Insert(GetElementPtrInst::Create(Ptr, Idxs), Name);
889 Value *Idxs[] = { variable
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DInstructions.h1693 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
1700 ArrayRef<unsigned> Idxs,
1704 ArrayRef<unsigned> Idxs,
1716 ArrayRef<unsigned> Idxs,
1720 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1723 ArrayRef<unsigned> Idxs,
1726 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1733 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1772 ArrayRef<unsigned> Idxs,
1775 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
[all …]
/external/llvm/include/llvm/Analysis/
DConstantFolding.h102 ArrayRef<unsigned> Idxs);
108 ArrayRef<unsigned> Idxs);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DConstantFolding.h97 ArrayRef<unsigned> Idxs);
103 ArrayRef<unsigned> Idxs);
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp1319 SmallVector<unsigned, 10> &Idxs, in BuildSubAggregate() argument
1329 Idxs.push_back(i); in BuildSubAggregate()
1331 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate()
1333 Idxs.pop_back(); in BuildSubAggregate()
1355 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate()
1361 return llvm::InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), in BuildSubAggregate()
1383 SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end()); in BuildSubAggregate() local
1384 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate()
1386 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate()
1465 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp112 Value *Idxs[2]; in InstCombineLoadCast() local
113 Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext())); in InstCombineLoadCast()
114 Idxs[1] = Idxs[0]; in InstCombineLoadCast()
115 CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs); in InstCombineLoadCast()
/external/llvm/include/llvm/IR/
DIRBuilder.h1180 Value *Idxs[] = { variable
1186 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name);
1188 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
1192 Value *Idxs[] = { variable
1198 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name);
1200 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
1221 Value *Idxs[] = { variable
1227 return Insert(Folder.CreateGetElementPtr(nullptr, PC, Idxs), Name);
1229 return Insert(GetElementPtrInst::Create(nullptr, Ptr, Idxs), Name);
1233 Value *Idxs[] = { variable
[all …]
DInstructions.h2234 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
2241 ArrayRef<unsigned> Idxs,
2245 ArrayRef<unsigned> Idxs,
2258 ArrayRef<unsigned> Idxs,
2262 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2265 ArrayRef<unsigned> Idxs,
2268 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2275 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2316 ArrayRef<unsigned> Idxs,
2319 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DIRBuilder.h1458 Value *Idxs[] = { variable
1464 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name);
1466 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
1471 Value *Idxs[] = { variable
1477 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name);
1479 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
1503 Value *Idxs[] = { variable
1509 return Insert(Folder.CreateGetElementPtr(nullptr, PC, Idxs), Name);
1511 return Insert(GetElementPtrInst::Create(nullptr, Ptr, Idxs), Name);
1516 Value *Idxs[] = { variable
[all …]
DInstructions.h2674 ArrayRef<unsigned> Idxs,
2678 ArrayRef<unsigned> Idxs,
2681 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
2691 ArrayRef<unsigned> Idxs,
2695 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2699 ArrayRef<unsigned> Idxs,
2702 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2709 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2751 ArrayRef<unsigned> Idxs,
2754 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DArgumentPromotion.cpp667 Value *Idxs[2] = { in DoPromotion() local
670 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion()
671 Value *Idx = GetElementPtrInst::Create(*AI, Idxs, in DoPromotion()
797 Value *Idxs[2] = { in DoPromotion() local
801 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion()
803 GetElementPtrInst::Create(TheAlloca, Idxs, in DoPromotion()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp258 Value *Idxs[2] = { in doPromotion() local
261 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in doPromotion()
263 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call); in doPromotion()
387 Value *Idxs[2] = {ConstantInt::get(Type::getInt32Ty(F->getContext()), 0), in doPromotion() local
391 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in doPromotion()
393 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i), in doPromotion()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp809 Value *Idxs[2] = { in DoPromotion() local
812 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion()
814 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call); in DoPromotion()
938 Value *Idxs[2] = { in DoPromotion() local
942 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); in DoPromotion()
944 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i), in DoPromotion()
/external/clang/lib/CodeGen/
DCGVTT.cpp77 llvm::Value *Idxs[] = { in EmitVTTDefinition() local
83 VTable->getValueType(), VTable, Idxs); in EmitVTTDefinition()

123