/external/llvm/include/llvm/IR/ |
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() 191 ArrayRef<Value *> IdxList) const { in CreateGetElementPtr() argument 192 return GetElementPtrInst::Create(C, IdxList); in CreateGetElementPtr() 196 ArrayRef<Constant *> IdxList) const { in CreateInBoundsGetElementPtr() argument 197 return ConstantExpr::getInBoundsGetElementPtr(C, IdxList); in CreateInBoundsGetElementPtr() 206 ArrayRef<Value *> IdxList) const { in CreateInBoundsGetElementPtr() argument 207 return GetElementPtrInst::CreateInBounds(C, IdxList); in CreateInBoundsGetElementPtr() 286 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument 287 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue() [all …]
|
D | Constants.h | 1019 ArrayRef<Constant *> IdxList, 1021 return getGetElementPtr(C, makeArrayRef((Value * const *)IdxList.data(), 1022 IdxList.size()), 1034 ArrayRef<Value *> IdxList, 1040 ArrayRef<Constant *> IdxList) { 1041 return getGetElementPtr(C, IdxList, true); 1051 ArrayRef<Value *> IdxList) { 1052 return getGetElementPtr(C, IdxList, true);
|
D | Instructions.h | 777 void init(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr); 783 inline GetElementPtrInst(Value *Ptr, ArrayRef<Value *> IdxList, 786 inline GetElementPtrInst(Value *Ptr, ArrayRef<Value *> IdxList, 792 static GetElementPtrInst *Create(Value *Ptr, ArrayRef<Value *> IdxList, 795 unsigned Values = 1 + unsigned(IdxList.size()); 797 GetElementPtrInst(Ptr, IdxList, Values, NameStr, InsertBefore); 799 static GetElementPtrInst *Create(Value *Ptr, ArrayRef<Value *> IdxList, 802 unsigned Values = 1 + unsigned(IdxList.size()); 804 GetElementPtrInst(Ptr, IdxList, Values, NameStr, InsertAtEnd); 810 ArrayRef<Value *> IdxList, [all …]
|
D | IRBuilder.h | 957 Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList, 962 for (i = 0, e = IdxList.size(); i != e; ++i) 963 if (!isa<Constant>(IdxList[i])) 966 return Insert(Folder.CreateGetElementPtr(PC, IdxList), Name); 968 return Insert(GetElementPtrInst::Create(Ptr, IdxList), Name); 970 Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList, 975 for (i = 0, e = IdxList.size(); i != e; ++i) 976 if (!isa<Constant>(IdxList[i])) 979 return Insert(Folder.CreateInBoundsGetElementPtr(PC, IdxList), Name); 981 return Insert(GetElementPtrInst::CreateInBounds(Ptr, IdxList), Name);
|
/external/llvm/include/llvm/Analysis/ |
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() 250 ArrayRef<unsigned> IdxList) const { in CreateExtractValue() argument 251 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantsContext.h | 173 const SmallVector<unsigned, 4> &IdxList, in ExtractValueConstantExpr() argument 176 Indices(IdxList) { in ExtractValueConstantExpr() 199 const SmallVector<unsigned, 4> &IdxList, in InsertValueConstantExpr() argument 202 Indices(IdxList) { in InsertValueConstantExpr() 219 GetElementPtrConstantExpr(Constant *C, ArrayRef<Constant*> IdxList, 223 ArrayRef<Constant*> IdxList, in Create() argument 227 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy); in Create() 452 std::vector<Constant*> IdxList(V.operands.begin()+1, V.operands.end()); 453 return GetElementPtrConstantExpr::Create(V.operands[0], IdxList, Ty,
|
D | Instructions.cpp | 1345 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList, in init() argument 1347 assert(NumOperands == 1 + IdxList.size() && "NumOperands not initialized?"); in init() 1349 std::copy(IdxList.begin(), IdxList.end(), op_begin() + 1); in init() 1372 static Type *getIndexedTypeInternal(Type *Ptr, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument 1378 if (IdxList.empty()) in getIndexedTypeInternal() 1387 for (; CurIdx != IdxList.size(); ++CurIdx) { in getIndexedTypeInternal() 1390 IndexTy Index = IdxList[CurIdx]; in getIndexedTypeInternal() 1394 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal() 1397 Type *GetElementPtrInst::getIndexedType(Type *Ptr, ArrayRef<Value *> IdxList) { in getIndexedType() argument 1398 return getIndexedTypeInternal(Ptr, IdxList); in getIndexedType() [all …]
|
D | Core.cpp | 1023 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstGEP() local 1026 IdxList)); in LLVMConstGEP() 1033 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstInBoundsGEP() local 1035 return wrap(ConstantExpr::getInBoundsGetElementPtr(Val, IdxList)); in LLVMConstInBoundsGEP() 1169 LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList, in LLVMConstExtractValue() argument 1172 makeArrayRef(IdxList, NumIdx))); in LLVMConstExtractValue() 1177 unsigned *IdxList, unsigned NumIdx) { in LLVMConstInsertValue() argument 1180 makeArrayRef(IdxList, NumIdx))); in LLVMConstInsertValue() 2331 ArrayRef<Value *> IdxList(unwrap(Indices), NumIndices); in LLVMBuildGEP() local 2332 return wrap(unwrap(B)->CreateGEP(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() 133 return ConstantExpr::getInBoundsGetElementPtr(V, IdxList); in FoldBitCast()
|
D | Constants.cpp | 2245 GetElementPtrConstantExpr(Constant *C, ArrayRef<Constant*> IdxList, in GetElementPtrConstantExpr() argument 2249 - (IdxList.size()+1), IdxList.size()+1) { in GetElementPtrConstantExpr() 2251 for (unsigned i = 0, E = IdxList.size(); i != E; ++i) in GetElementPtrConstantExpr() 2252 OperandList[i+1] = IdxList[i]; in GetElementPtrConstantExpr()
|
/external/clang/test/Parser/ |
D | DelayedTemplateParsing.cpp | 111 ArrayRef<> IdxList; in CreateConstInBoundsGEP2_32() local
|
/external/llvm/utils/TableGen/ |
D | RegisterInfoEmitter.cpp | 1092 typedef std::vector<const CodeGenSubRegIndex*> IdxList; in runTargetDesc() typedef 1093 SmallVector<IdxList, 8> SuperRegIdxLists(RegisterClasses.size()); in runTargetDesc() 1094 SequenceToOffsetTable<IdxList, CodeGenSubRegIndex::Less> SuperRegIdxSeqs; in runTargetDesc() 1104 IdxList &SRIList = SuperRegIdxLists[rc]; in runTargetDesc()
|
/external/llvm/include/llvm-c/ |
D | Core.h | 1705 LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList, 1709 unsigned *IdxList, unsigned NumIdx);
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 2349 Constant * const IdxList[] = {IdxZero, IdxZero}; in EvaluateBlock() local 2351 Ptr = ConstantExpr::getGetElementPtr(Ptr, IdxList); in EvaluateBlock()
|