Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/include/llvm/IR/
HDConstantFolder.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 …]
HDNoFolder.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 …]
HDInstructions.h835 void init(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr);
842 ArrayRef<Value *> IdxList, unsigned Values,
845 ArrayRef<Value *> IdxList, unsigned Values,
855 ArrayRef<Value *> IdxList,
858 unsigned Values = 1 + unsigned(IdxList.size());
866 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
870 ArrayRef<Value *> IdxList,
873 unsigned Values = 1 + unsigned(IdxList.size());
881 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
888 ArrayRef<Value *> IdxList,
[all …]
HDConstants.h1093 ArrayRef<Constant *> IdxList,
1097 Ty, C, makeArrayRef((Value * const *)IdxList.data(), IdxList.size()),
1109 ArrayRef<Value *> IdxList,
1116 ArrayRef<Constant *> IdxList) {
1117 return getGetElementPtr(Ty, C, IdxList, true);
1127 ArrayRef<Value *> IdxList) {
1128 return getGetElementPtr(Ty, C, IdxList, true);
HDIRBuilder.h1032 Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1034 return CreateGEP(nullptr, Ptr, IdxList, Name);
1036 Value *CreateGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
1041 for (i = 0, e = IdxList.size(); i != e; ++i)
1042 if (!isa<Constant>(IdxList[i]))
1045 return Insert(Folder.CreateGetElementPtr(Ty, PC, IdxList), Name);
1047 return Insert(GetElementPtrInst::Create(Ty, Ptr, IdxList), Name);
1049 Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1051 return CreateInBoundsGEP(nullptr, Ptr, IdxList, Name);
1053 Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
[all …]
/NextBSD/contrib/llvm/include/llvm/Analysis/
HDTargetFolder.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 …]
/NextBSD/contrib/llvm/lib/IR/
HDConstantsContext.h170 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
173 Indices(IdxList.begin(), IdxList.end()) { in ExtractValueConstantExpr()
196 ArrayRef<unsigned> IdxList, Type *DestTy) in InsertValueConstantExpr() argument
198 Indices(IdxList.begin(), IdxList.end()) { in InsertValueConstantExpr()
216 ArrayRef<Constant *> IdxList, Type *DestTy);
220 ArrayRef<Constant*> IdxList, in Create() argument
225 IdxList, DestTy, Flags); in Create()
228 ArrayRef<Constant *> IdxList, in Create() argument
230 GetElementPtrConstantExpr *Result = new (IdxList.size() + 1) in Create()
231 GetElementPtrConstantExpr(SrcElementTy, C, IdxList, DestTy); in Create()
HDInstructions.cpp1196 void GetElementPtrInst::init(Value *Ptr, ArrayRef<Value *> IdxList, in init() argument
1198 assert(getNumOperands() == 1 + IdxList.size() && in init()
1201 std::copy(IdxList.begin(), IdxList.end(), op_begin() + 1); in init()
1226 static Type *getIndexedTypeInternal(Type *Agg, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument
1228 if (IdxList.empty()) in getIndexedTypeInternal()
1237 for (; CurIdx != IdxList.size(); ++CurIdx) { in getIndexedTypeInternal()
1240 IndexTy Index = IdxList[CurIdx]; in getIndexedTypeInternal()
1244 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal()
1247 Type *GetElementPtrInst::getIndexedType(Type *Ty, ArrayRef<Value *> IdxList) { in getIndexedType() argument
1248 return getIndexedTypeInternal(Ty, IdxList); in getIndexedType()
[all …]
HDCore.cpp1165 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstGEP() local
1168 nullptr, unwrap<Constant>(ConstantVal), IdxList)); in LLVMConstGEP()
1175 ArrayRef<Constant *> IdxList(unwrap<Constant>(ConstantIndices, NumIndices), in LLVMConstInBoundsGEP() local
1177 return wrap(ConstantExpr::getInBoundsGetElementPtr(nullptr, Val, IdxList)); in LLVMConstInBoundsGEP()
1311 LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList, in LLVMConstExtractValue() argument
1314 makeArrayRef(IdxList, NumIdx))); in LLVMConstExtractValue()
1319 unsigned *IdxList, unsigned NumIdx) { in LLVMConstInsertValue() argument
1322 makeArrayRef(IdxList, NumIdx))); in LLVMConstInsertValue()
2529 ArrayRef<Value *> IdxList(unwrap(Indices), NumIndices); in LLVMBuildGEP() local
2530 return wrap(unwrap(B)->CreateGEP(nullptr, unwrap(Pointer), IdxList, Name)); in LLVMBuildGEP()
[all …]
HDConstantFold.cpp113 SmallVector<Value*, 8> IdxList; in FoldBitCast() local
116 IdxList.push_back(Zero); in FoldBitCast()
122 IdxList.push_back(Zero); in FoldBitCast()
127 IdxList.push_back(Zero); in FoldBitCast()
136 V, IdxList); in FoldBitCast()
HDConstants.cpp2398 Type *SrcElementTy, Constant *C, ArrayRef<Constant *> IdxList, Type *DestTy) in GetElementPtrConstantExpr() argument
2401 (IdxList.size() + 1), in GetElementPtrConstantExpr()
2402 IdxList.size() + 1), in GetElementPtrConstantExpr()
2406 for (unsigned i = 0, E = IdxList.size(); i != E; ++i) in GetElementPtrConstantExpr()
2407 OperandList[i+1] = IdxList[i]; in GetElementPtrConstantExpr()
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonCommonGEP.cpp1110 Value **IdxList = new Value*[Num+1]; in fabricateGEP() local
1119 IdxList[IdxC++] = ConstantInt::get(Int32Ty, 0); in fabricateGEP()
1126 IdxList[IdxC++] = N->Idx; in fabricateGEP()
1135 ArrayRef<Value*> A(IdxList, IdxC); in fabricateGEP()
1143 delete[] IdxList; in fabricateGEP()
/NextBSD/contrib/llvm/utils/TableGen/
HDRegisterInfoEmitter.cpp1207 typedef std::vector<const CodeGenSubRegIndex*> IdxList; in runTargetDesc() typedef
1208 SmallVector<IdxList, 8> SuperRegIdxLists(RegisterClasses.size()); in runTargetDesc()
1209 SequenceToOffsetTable<IdxList, deref<llvm::less>> SuperRegIdxSeqs; in runTargetDesc()
1218 IdxList &SRIList = SuperRegIdxLists[RC.EnumValue]; in runTargetDesc()
/NextBSD/contrib/llvm/include/llvm-c/
HDCore.h1755 LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList,
1759 unsigned *IdxList, unsigned NumIdx);
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDGlobalOpt.cpp2338 Constant * const IdxList[] = {IdxZero, IdxZero}; in EvaluateBlock() local
2340 Ptr = ConstantExpr::getGetElementPtr(nullptr, Ptr, IdxList); in EvaluateBlock()