Home
last modified time | relevance | path

Searched refs:IdxList (Results 1 – 25 of 44) sorted by relevance

12

/external/swiftshader/third_party/LLVM/include/llvm/Support/
DConstantFolder.h122 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
123 return ConstantExpr::getGetElementPtr(C, IdxList); in CreateGetElementPtr()
132 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
133 return ConstantExpr::getGetElementPtr(C, IdxList); in CreateGetElementPtr()
137 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
138 return ConstantExpr::getInBoundsGetElementPtr(C, IdxList); in CreateInBoundsGetElementPtr()
147 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
148 return ConstantExpr::getInBoundsGetElementPtr(C, IdxList); in CreateInBoundsGetElementPtr()
226 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
227 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
[all …]
DNoFolder.h181 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
182 return ConstantExpr::getGetElementPtr(C, IdxList); in CreateGetElementPtr()
185 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
186 return GetElementPtrInst::Create(C, IdxList); in CreateGetElementPtr()
190 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
191 return ConstantExpr::getInBoundsGetElementPtr(C, IdxList); in CreateInBoundsGetElementPtr()
194 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
195 return GetElementPtrInst::CreateInBounds(C, IdxList); in CreateInBoundsGetElementPtr()
274 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
275 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
[all …]
DTargetFolder.h134 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
135 return Fold(ConstantExpr::getGetElementPtr(C, IdxList)); in CreateGetElementPtr()
144 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
145 return Fold(ConstantExpr::getGetElementPtr(C, IdxList)); in CreateGetElementPtr()
149 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
150 return Fold(ConstantExpr::getInBoundsGetElementPtr(C, IdxList)); in CreateInBoundsGetElementPtr()
159 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
160 return Fold(ConstantExpr::getInBoundsGetElementPtr(C, IdxList)); in CreateInBoundsGetElementPtr()
243 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
244 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
[all …]
DIRBuilder.h779 Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
784 for (i = 0, e = IdxList.size(); i != e; ++i)
785 if (!isa<Constant>(IdxList[i]))
788 return Insert(Folder.CreateGetElementPtr(PC, IdxList), Name);
790 return Insert(GetElementPtrInst::Create(Ptr, IdxList), Name);
792 Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList,
797 for (i = 0, e = IdxList.size(); i != e; ++i)
798 if (!isa<Constant>(IdxList[i]))
801 return Insert(Folder.CreateInBoundsGetElementPtr(PC, IdxList), Name);
803 return Insert(GetElementPtrInst::CreateInBounds(Ptr, IdxList), Name);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstantFolder.h143 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
144 return ConstantExpr::getGetElementPtr(Ty, C, IdxList); in CreateGetElementPtr()
155 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
156 return ConstantExpr::getGetElementPtr(Ty, C, IdxList); in CreateGetElementPtr()
160 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
161 return ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
173 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
174 return ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
265 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
266 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
[all …]
DNoFolder.h212 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
213 return ConstantExpr::getGetElementPtr(Ty, C, IdxList); in CreateGetElementPtr()
224 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
225 return GetElementPtrInst::Create(Ty, C, IdxList); in CreateGetElementPtr()
229 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
230 return ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
242 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
243 return GetElementPtrInst::CreateInBounds(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
330 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
331 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
[all …]
DInstructions.h852 ArrayRef<Value *> IdxList, unsigned Values,
855 ArrayRef<Value *> IdxList, unsigned Values,
858 void init(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr);
868 ArrayRef<Value *> IdxList,
871 unsigned Values = 1 + unsigned(IdxList.size());
879 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
884 ArrayRef<Value *> IdxList,
887 unsigned Values = 1 + unsigned(IdxList.size());
895 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
902 ArrayRef<Value *> IdxList,
[all …]
DConstants.h1144 ArrayRef<Constant *> IdxList,
1149 Ty, C, makeArrayRef((Value * const *)IdxList.data(), IdxList.size()),
1163 ArrayRef<Value *> IdxList,
1171 ArrayRef<Constant *> IdxList) {
1172 return getGetElementPtr(Ty, C, IdxList, true);
1182 ArrayRef<Value *> IdxList) {
1183 return getGetElementPtr(Ty, C, IdxList, true);
DIRBuilder.h1374 Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1376 return CreateGEP(nullptr, Ptr, IdxList, Name);
1379 Value *CreateGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
1384 for (i = 0, e = IdxList.size(); i != e; ++i)
1385 if (!isa<Constant>(IdxList[i]))
1388 return Insert(Folder.CreateGetElementPtr(Ty, PC, IdxList), Name);
1390 return Insert(GetElementPtrInst::Create(Ty, Ptr, IdxList), Name);
1393 Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1395 return CreateInBoundsGEP(nullptr, Ptr, IdxList, Name);
1398 Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
[all …]
/external/llvm/include/llvm/IR/
DConstantFolder.h122 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
123 return ConstantExpr::getGetElementPtr(Ty, C, IdxList); in CreateGetElementPtr()
132 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
133 return ConstantExpr::getGetElementPtr(Ty, C, IdxList); in CreateGetElementPtr()
137 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
138 return ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
148 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
149 return ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
233 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
234 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
[all …]
DNoFolder.h181 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
182 return ConstantExpr::getGetElementPtr(Ty, C, IdxList); in CreateGetElementPtr()
191 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
192 return GetElementPtrInst::Create(Ty, C, IdxList); in CreateGetElementPtr()
196 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
197 return ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
207 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
208 return GetElementPtrInst::CreateInBounds(Ty, C, IdxList); in CreateInBoundsGetElementPtr()
287 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
288 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
[all …]
DInstructions.h836 void init(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr);
843 ArrayRef<Value *> IdxList, unsigned Values,
846 ArrayRef<Value *> IdxList, unsigned Values,
856 ArrayRef<Value *> IdxList,
859 unsigned Values = 1 + unsigned(IdxList.size());
867 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
871 ArrayRef<Value *> IdxList,
874 unsigned Values = 1 + unsigned(IdxList.size());
882 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
889 ArrayRef<Value *> IdxList,
[all …]
DConstants.h1076 ArrayRef<Constant *> IdxList,
1080 Ty, C, makeArrayRef((Value * const *)IdxList.data(), IdxList.size()),
1092 ArrayRef<Value *> IdxList,
1099 ArrayRef<Constant *> IdxList) {
1100 return getGetElementPtr(Ty, C, IdxList, true);
1110 ArrayRef<Value *> IdxList) {
1111 return getGetElementPtr(Ty, C, IdxList, true);
DIRBuilder.h1106 Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1108 return CreateGEP(nullptr, Ptr, IdxList, Name);
1110 Value *CreateGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
1115 for (i = 0, e = IdxList.size(); i != e; ++i)
1116 if (!isa<Constant>(IdxList[i]))
1119 return Insert(Folder.CreateGetElementPtr(Ty, PC, IdxList), Name);
1121 return Insert(GetElementPtrInst::Create(Ty, Ptr, IdxList), Name);
1123 Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1125 return CreateInBoundsGEP(nullptr, Ptr, IdxList, Name);
1127 Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetFolder.h133 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
134 return Fold(ConstantExpr::getGetElementPtr(Ty, C, IdxList)); in CreateGetElementPtr()
143 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
144 return Fold(ConstantExpr::getGetElementPtr(Ty, C, IdxList)); in CreateGetElementPtr()
148 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
149 return Fold(ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList)); in CreateInBoundsGetElementPtr()
159 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
160 return Fold(ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList)); in CreateInBoundsGetElementPtr()
257 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
258 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
[all …]
/external/llvm/include/llvm/Analysis/
DTargetFolder.h134 ArrayRef<Constant *> IdxList) const { in CreateGetElementPtr() argument
135 return Fold(ConstantExpr::getGetElementPtr(Ty, C, IdxList)); in CreateGetElementPtr()
144 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument
145 return Fold(ConstantExpr::getGetElementPtr(Ty, C, IdxList)); in CreateGetElementPtr()
149 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument
150 return Fold(ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList)); in CreateInBoundsGetElementPtr()
160 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument
161 return Fold(ConstantExpr::getInBoundsGetElementPtr(Ty, C, IdxList)); in CreateInBoundsGetElementPtr()
258 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument
259 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
[all …]
/external/llvm/lib/IR/
DConstantsContext.h168 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
171 Indices(IdxList.begin(), IdxList.end()) { in ExtractValueConstantExpr()
201 ArrayRef<unsigned> IdxList, Type *DestTy) in InsertValueConstantExpr() argument
203 Indices(IdxList.begin(), IdxList.end()) { in InsertValueConstantExpr()
229 ArrayRef<Constant *> IdxList, Type *DestTy);
233 ArrayRef<Constant *> IdxList, in Create() argument
235 GetElementPtrConstantExpr *Result = new (IdxList.size() + 1) in Create()
236 GetElementPtrConstantExpr(SrcElementTy, C, IdxList, DestTy); in Create()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantsContext.h175 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
178 Indices(IdxList.begin(), IdxList.end()) { in ExtractValueConstantExpr()
207 ArrayRef<unsigned> IdxList, Type *DestTy) in InsertValueConstantExpr() argument
209 Indices(IdxList.begin(), IdxList.end()) { in InsertValueConstantExpr()
240 ArrayRef<Constant *> IdxList, Type *DestTy);
244 ArrayRef<Constant *> IdxList, in Create() argument
246 GetElementPtrConstantExpr *Result = new (IdxList.size() + 1) in Create()
247 GetElementPtrConstantExpr(SrcElementTy, C, IdxList, DestTy); in Create()
DInstructions.cpp1403 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList, in init() argument
1405 assert(getNumOperands() == 1 + IdxList.size() && in init()
1408 std::copy(IdxList.begin(), IdxList.end(), op_begin() + 1); in init()
1433 static Type *getIndexedTypeInternal(Type *Agg, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument
1435 if (IdxList.empty()) in getIndexedTypeInternal()
1444 for (; CurIdx != IdxList.size(); ++CurIdx) { in getIndexedTypeInternal()
1447 IndexTy Index = IdxList[CurIdx]; in getIndexedTypeInternal()
1451 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal()
1454 Type *GetElementPtrInst::getIndexedType(Type *Ty, ArrayRef<Value *> IdxList) { in getIndexedType() argument
1455 return getIndexedTypeInternal(Ty, IdxList); in getIndexedType()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantsContext.h161 const SmallVector<unsigned, 4> &IdxList, in ExtractValueConstantExpr() argument
164 Indices(IdxList) { in ExtractValueConstantExpr()
186 const SmallVector<unsigned, 4> &IdxList, in InsertValueConstantExpr() argument
189 Indices(IdxList) { in InsertValueConstantExpr()
205 GetElementPtrConstantExpr(Constant *C, const std::vector<Constant*> &IdxList,
209 const std::vector<Constant*>&IdxList, in Create() argument
213 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy); in Create()
435 std::vector<Constant*> IdxList(V.operands.begin()+1, V.operands.end());
436 return GetElementPtrConstantExpr::Create(V.operands[0], IdxList, Ty,
DCore.cpp865 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstGEP() local
868 IdxList)); in LLVMConstGEP()
875 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstInBoundsGEP() local
877 return wrap(ConstantExpr::getInBoundsGetElementPtr(Val, IdxList)); in LLVMConstInBoundsGEP()
1005 LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList, in LLVMConstExtractValue() argument
1008 makeArrayRef(IdxList, NumIdx))); in LLVMConstExtractValue()
1013 unsigned *IdxList, unsigned NumIdx) { in LLVMConstInsertValue() argument
1016 makeArrayRef(IdxList, NumIdx))); in LLVMConstInsertValue()
2032 ArrayRef<Value *> IdxList(unwrap(Indices), NumIndices); in LLVMBuildGEP() local
2033 return wrap(unwrap(B)->CreateGEP(unwrap(Pointer), IdxList, Name)); in LLVMBuildGEP()
[all …]
DInstructions.cpp1334 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList, in init() argument
1336 assert(NumOperands == 1 + IdxList.size() && "NumOperands not initialized?"); in init()
1338 std::copy(IdxList.begin(), IdxList.end(), op_begin() + 1); in init()
1361 static Type *getIndexedTypeInternal(Type *Ptr, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument
1367 if (IdxList.empty()) in getIndexedTypeInternal()
1376 for (; CurIdx != IdxList.size(); ++CurIdx) { in getIndexedTypeInternal()
1379 IndexTy Index = IdxList[CurIdx]; in getIndexedTypeInternal()
1383 return CurIdx == IdxList.size() ? Agg : 0; in getIndexedTypeInternal()
1386 Type *GetElementPtrInst::getIndexedType(Type *Ptr, ArrayRef<Value *> IdxList) { in getIndexedType() argument
1387 return getIndexedTypeInternal(Ptr, IdxList); in getIndexedType()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DConstants.h791 ArrayRef<Constant *> IdxList,
793 return getGetElementPtr(C, makeArrayRef((Value * const *)IdxList.data(),
794 IdxList.size()),
806 ArrayRef<Value *> IdxList,
812 ArrayRef<Constant *> IdxList) {
813 return getGetElementPtr(C, IdxList, true);
823 ArrayRef<Value *> IdxList) {
824 return getGetElementPtr(C, IdxList, true);
DInstructions.h712 void init(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr);
718 inline GetElementPtrInst(Value *Ptr, ArrayRef<Value *> IdxList,
721 inline GetElementPtrInst(Value *Ptr, ArrayRef<Value *> IdxList,
727 static GetElementPtrInst *Create(Value *Ptr, ArrayRef<Value *> IdxList,
730 unsigned Values = 1 + unsigned(IdxList.size());
732 GetElementPtrInst(Ptr, IdxList, Values, NameStr, InsertBefore);
734 static GetElementPtrInst *Create(Value *Ptr, ArrayRef<Value *> IdxList,
737 unsigned Values = 1 + unsigned(IdxList.size());
739 GetElementPtrInst(Ptr, IdxList, Values, NameStr, InsertAtEnd);
745 ArrayRef<Value *> IdxList,
[all …]
/external/clang/test/Parser/
DDelayedTemplateParsing.cpp111 ArrayRef<> IdxList; in CreateConstInBoundsGEP2_32() local

12