/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | ConstantFolder.h | 122 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 …]
|
D | NoFolder.h | 181 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 …]
|
D | TargetFolder.h | 134 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 …]
|
D | IRBuilder.h | 779 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/llvm/include/llvm/IR/ |
D | ConstantFolder.h | 122 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 …]
|
D | NoFolder.h | 181 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 …]
|
D | Instructions.h | 836 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 …]
|
D | Constants.h | 1076 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);
|
D | IRBuilder.h | 1106 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/llvm/include/llvm/Analysis/ |
D | TargetFolder.h | 134 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/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantsContext.h | 161 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,
|
D | Core.cpp | 865 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 …]
|
D | Instructions.cpp | 1334 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 …]
|
D | Constants.cpp | 1882 GetElementPtrConstantExpr(Constant *C, const std::vector<Constant*> &IdxList, in GetElementPtrConstantExpr() argument 1886 - (IdxList.size()+1), IdxList.size()+1) { in GetElementPtrConstantExpr() 1888 for (unsigned i = 0, E = IdxList.size(); i != E; ++i) in GetElementPtrConstantExpr() 1889 OperandList[i+1] = IdxList[i]; in GetElementPtrConstantExpr()
|
/external/llvm/lib/IR/ |
D | ConstantsContext.h | 168 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()
|
D | Instructions.cpp | 1641 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList, in init() argument 1643 assert(getNumOperands() == 1 + IdxList.size() && in init() 1646 std::copy(IdxList.begin(), IdxList.end(), op_begin() + 1); in init() 1671 static Type *getIndexedTypeInternal(Type *Agg, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument 1673 if (IdxList.empty()) in getIndexedTypeInternal() 1682 for (; CurIdx != IdxList.size(); ++CurIdx) { in getIndexedTypeInternal() 1685 IndexTy Index = IdxList[CurIdx]; in getIndexedTypeInternal() 1689 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal() 1692 Type *GetElementPtrInst::getIndexedType(Type *Ty, ArrayRef<Value *> IdxList) { in getIndexedType() argument 1693 return getIndexedTypeInternal(Ty, IdxList); in getIndexedType() [all …]
|
D | Core.cpp | 1257 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstGEP() local 1260 nullptr, unwrap<Constant>(ConstantVal), IdxList)); in LLVMConstGEP() 1267 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstInBoundsGEP() local 1269 return wrap(ConstantExpr::getInBoundsGetElementPtr(nullptr, Val, IdxList)); in LLVMConstInBoundsGEP() 1403 LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList, in LLVMConstExtractValue() argument 1406 makeArrayRef(IdxList, NumIdx))); in LLVMConstExtractValue() 1411 unsigned *IdxList, unsigned NumIdx) { in LLVMConstInsertValue() argument 1414 makeArrayRef(IdxList, NumIdx))); in LLVMConstInsertValue() 2780 ArrayRef<Value *> IdxList(unwrap(Indices), NumIndices); in LLVMBuildGEP() local 2781 return wrap(unwrap(B)->CreateGEP(nullptr, unwrap(Pointer), IdxList, Name)); in LLVMBuildGEP() [all …]
|
D | ConstantFold.cpp | 111 SmallVector<Value*, 8> IdxList; in FoldBitCast() local 114 IdxList.push_back(Zero); in FoldBitCast() 120 IdxList.push_back(Zero); in FoldBitCast() 125 IdxList.push_back(Zero); in FoldBitCast() 134 V, IdxList); in FoldBitCast()
|
D | Constants.cpp | 2264 Type *SrcElementTy, Constant *C, ArrayRef<Constant *> IdxList, Type *DestTy) in GetElementPtrConstantExpr() argument 2267 (IdxList.size() + 1), in GetElementPtrConstantExpr() 2268 IdxList.size() + 1), in GetElementPtrConstantExpr() 2270 ResElementTy(GetElementPtrInst::getIndexedType(SrcElementTy, IdxList)) { in GetElementPtrConstantExpr() 2273 for (unsigned i = 0, E = IdxList.size(); i != E; ++i) in GetElementPtrConstantExpr() 2274 OperandList[i+1] = IdxList[i]; in GetElementPtrConstantExpr()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Constants.h | 791 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);
|
D | Instructions.h | 712 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/ |
D | DelayedTemplateParsing.cpp | 111 ArrayRef<> IdxList; in CreateConstInBoundsGEP2_32() local
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 1094 Value **IdxList = new Value*[Num+1]; in fabricateGEP() local 1103 IdxList[IdxC++] = ConstantInt::get(Int32Ty, 0); in fabricateGEP() 1110 IdxList[IdxC++] = N->Idx; in fabricateGEP() 1119 ArrayRef<Value*> A(IdxList, IdxC); in fabricateGEP() 1127 delete[] IdxList; in fabricateGEP()
|
/external/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 249 Constant * const IdxList[] = {IdxZero, IdxZero}; in EvaluateBlock() local 251 Ptr = ConstantExpr::getGetElementPtr(nullptr, Ptr, IdxList); in EvaluateBlock()
|
/external/llvm/utils/TableGen/ |
D | RegisterInfoEmitter.cpp | 1239 typedef std::vector<const CodeGenSubRegIndex*> IdxList; in runTargetDesc() typedef 1240 SmallVector<IdxList, 8> SuperRegIdxLists(RegisterClasses.size()); in runTargetDesc() 1241 SequenceToOffsetTable<IdxList, deref<llvm::less>> SuperRegIdxSeqs; in runTargetDesc() 1250 IdxList &SRIList = SuperRegIdxLists[RC.EnumValue]; in runTargetDesc()
|