Home
last modified time | relevance | path

Searched refs:Indices (Results 1 – 25 of 58) sorted by relevance

123

/external/llvm/include/llvm/CodeGen/
DAnalysis.h38 const unsigned *Indices,
43 ArrayRef<unsigned> Indices,
45 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dmetafunctions.cpp149 namespace Indices { namespace
153 template<unsigned I, unsigned N, int ...Indices>
154 struct build_indices_impl<I, N, int_tuple<Indices...> >
155 : build_indices_impl<I+1, N, int_tuple<Indices..., I> > {
158 template<unsigned N, int ...Indices>
159 struct build_indices_impl<N, N, int_tuple<Indices...> > {
160 typedef int_tuple<Indices...> type;
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp249 static bool PrefixIn(const ArgPromotion::IndicesVector &Indices, in PrefixIn() argument
252 Low = Set.upper_bound(Indices); in PrefixIn()
260 return Low != Set.end() && IsPrefix(*Low, Indices); in PrefixIn()
340 IndicesVector Indices; in isSafeToPromoteArgument() local
349 Indices.reserve(GEP->getNumIndices()); in isSafeToPromoteArgument()
353 Indices.push_back(CI->getSExtValue()); in isSafeToPromoteArgument()
360 MarkIndicesSafe(Indices, SafeToUnconditionallyLoad); in isSafeToPromoteArgument()
361 Indices.clear(); in isSafeToPromoteArgument()
554 IndicesVector Indices; in DoPromotion() local
555 Indices.reserve(User->getNumOperands() - 1); in DoPromotion()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp118 SmallVector<Value *, 2> Indices; in lowerGlobal() local
119 Indices.push_back(Constant::getNullValue(Type::getInt64Ty(Ctx))); in lowerGlobal()
120 Indices.push_back(ThreadID); in lowerGlobal()
121 Value *Addr = Builder.CreateInBoundsGEP(NewGV, Indices); in lowerGlobal()
/external/llvm/lib/CodeGen/
DAnalysis.cpp34 const unsigned *Indices, in ComputeLinearIndex() argument
38 if (Indices && Indices == IndicesEnd) in ComputeLinearIndex()
47 if (Indices && *Indices == unsigned(EI - EB)) in ComputeLinearIndex()
48 return ComputeLinearIndex(*EI, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
57 if (Indices && *Indices == i) in ComputeLinearIndex()
58 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
DShadowStackGC.cpp351 Value *Indices[] = { ConstantInt::get(Type::getInt32Ty(Context), 0), in CreateGEP() local
354 Value* Val = B.CreateGEP(BasePtr, Indices, Name); in CreateGEP()
364 Value *Indices[] = { ConstantInt::get(Type::getInt32Ty(Context), 0), in CreateGEP() local
366 Value *Val = B.CreateGEP(BasePtr, Indices, Name); in CreateGEP()
/external/llvm/lib/Transforms/Instrumentation/
DProfilingUtils.cpp118 std::vector<Constant*> Indices(2); in IncrementCounterInBlock() local
119 Indices[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in IncrementCounterInBlock()
120 Indices[1] = ConstantInt::get(Type::getInt32Ty(Context), CounterNum); in IncrementCounterInBlock()
122 ConstantExpr::getGetElementPtr(CounterArray, Indices); in IncrementCounterInBlock()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1161 SmallVectorImpl<Value *> &Indices) { in buildGEP() argument
1162 if (Indices.empty()) in buildGEP()
1167 if (Indices.size() == 1 && cast<ConstantInt>(Indices.back())->isZero()) in buildGEP()
1170 return IRB.CreateInBoundsGEP(BasePtr, Indices, "idx"); in buildGEP()
1184 SmallVectorImpl<Value *> &Indices) { in getNaturalGEPWithType() argument
1186 return buildGEP(IRB, BasePtr, Indices); in getNaturalGEPWithType()
1199 Indices.push_back(IRB.getInt(APInt(DL.getPointerSizeInBits(0), 0))); in getNaturalGEPWithType()
1204 Indices.push_back(IRB.getInt32(0)); in getNaturalGEPWithType()
1211 Indices.erase(Indices.end() - NumLayers, Indices.end()); in getNaturalGEPWithType()
1213 return buildGEP(IRB, BasePtr, Indices); in getNaturalGEPWithType()
[all …]
DScalarReplAggregates.cpp510 SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end()); in CanConvertToScalar() local
517 GEPNonConstantIdx = Indices.pop_back_val(); in CanConvertToScalar()
524 Indices); in CanConvertToScalar()
610 SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end()); in ConvertUsesToScalar() local
615 GEPNonConstantIdx = Indices.pop_back_val(); in ConvertUsesToScalar()
619 Indices); in ConvertUsesToScalar()
1733 SmallVector<Value*, 8> Indices(GEPI->op_begin() + 1, GEPI->op_end()); in isSafeGEP() local
1738 Indices.pop_back(); in isSafeGEP()
1739 Offset += TD->getIndexedOffset(GEPI->getPointerOperandType(), Indices); in isSafeGEP()
2042 SmallVector<Value*, 8> Indices(GEPI->op_begin() + 1, GEPI->op_end()); in RewriteGEP() local
[all …]
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c709 CAMLprim LLVMValueRef llvm_const_gep(LLVMValueRef ConstantVal, value Indices) { in llvm_const_gep() argument
710 return LLVMConstGEP(ConstantVal, (LLVMValueRef*) Op_val(Indices), in llvm_const_gep()
711 Wosize_val(Indices)); in llvm_const_gep()
716 value Indices) { in llvm_const_in_bounds_gep() argument
717 return LLVMConstInBoundsGEP(ConstantVal, (LLVMValueRef*) Op_val(Indices), in llvm_const_in_bounds_gep()
718 Wosize_val(Indices)); in llvm_const_in_bounds_gep()
723 value Indices) { in llvm_const_extractvalue() argument
724 CAMLparam1(Indices); in llvm_const_extractvalue()
725 int size = Wosize_val(Indices); in llvm_const_extractvalue()
731 idxs[i] = Int_val(Field(Indices, i)); in llvm_const_extractvalue()
[all …]
/external/llvm/lib/IR/
DDataLayout.cpp633 ArrayRef<Value *> Indices) const { in getIndexedOffset()
639 TI = gep_type_begin(ptrTy, Indices); in getIndexedOffset()
640 for (unsigned CurIDX = 0, EndIDX = Indices.size(); CurIDX != EndIDX; in getIndexedOffset()
643 assert(Indices[CurIDX]->getType() == in getIndexedOffset()
646 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); in getIndexedOffset()
661 if (int64_t arrayIdx = cast<ConstantInt>(Indices[CurIDX])->getSExtValue()) in getIndexedOffset()
/external/clang/docs/analyzer/
Dindex.rst17 Indices and tables
/external/chromium_org/third_party/mesa/src/src/gallium/docs/source/
Dindex.rst24 Indices and tables
Ddistro.rst156 Indices section in Auxiliary
159 Indices provides tools for translating or generating element indices for
/external/mesa3d/src/gallium/docs/source/
Dindex.rst24 Indices and tables
Ddistro.rst156 Indices section in Auxiliary
159 Indices provides tools for translating or generating element indices for
/external/llvm/lib/Target/R600/
DAMDGPURegisterInfo.td17 // Indices are used in a variety of ways here, so don't set a size/offset.
/external/clang/docs/
Dindex.rst68 Indices and tables
/external/llvm/include/llvm/Analysis/
DConstantFolding.h90 ArrayRef<Constant*> Indices);
/external/clang/lib/CodeGen/
DCGBuiltin.cpp2263 SmallVector<Constant*, 16> Indices; in EmitARMBuiltinExpr() local
2265 Indices.push_back(ConstantInt::get(Int32Ty, i+CV)); in EmitARMBuiltinExpr()
2269 Value *SV = llvm::ConstantVector::get(Indices); in EmitARMBuiltinExpr()
2299 SmallVector<Constant*, 2> Indices; in EmitARMBuiltinExpr() local
2300 Indices.push_back(ConstantInt::get(Int32Ty, 1-Lane)); in EmitARMBuiltinExpr()
2301 Indices.push_back(ConstantInt::get(Int32Ty, Lane)); in EmitARMBuiltinExpr()
2302 SV = llvm::ConstantVector::get(Indices); in EmitARMBuiltinExpr()
2772 SmallVector<Constant*, 16> Indices; in EmitARMBuiltinExpr() local
2774 Indices.push_back(Builder.getInt32(i+vi)); in EmitARMBuiltinExpr()
2775 Indices.push_back(Builder.getInt32(i+e+vi)); in EmitARMBuiltinExpr()
[all …]
/external/llvm/lib/AsmParser/
DLLParser.cpp1528 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices, in ParseIndexList() argument
1542 Indices.push_back(Idx); in ParseIndexList()
2444 SmallVector<unsigned, 4> Indices; in ParseValID() local
2447 ParseIndexList(Indices) || in ParseValID()
2453 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices)) in ParseValID()
2455 ID.ConstantVal = ConstantExpr::getExtractValue(Val, Indices); in ParseValID()
2462 SmallVector<unsigned, 4> Indices; in ParseValID() local
2467 ParseIndexList(Indices) || in ParseValID()
2472 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices)) in ParseValID()
2474 ID.ConstantVal = ConstantExpr::getInsertValue(Val0, Val1, Indices); in ParseValID()
[all …]
DLLParser.h211 bool ParseIndexList(SmallVectorImpl<unsigned> &Indices,bool &AteExtraComma);
212 bool ParseIndexList(SmallVectorImpl<unsigned> &Indices) { in ParseIndexList() argument
214 if (ParseIndexList(Indices, AteExtraComma)) return true; in ParseIndexList()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1125 SmallVector<Value*, 8> Indices; in visitGetElementPtrInst() local
1161 Indices.append(Src->op_begin()+1, Src->op_end()-1); in visitGetElementPtrInst()
1162 Indices.push_back(Sum); in visitGetElementPtrInst()
1163 Indices.append(GEP.op_begin()+2, GEP.op_end()); in visitGetElementPtrInst()
1168 Indices.append(Src->op_begin()+1, Src->op_end()); in visitGetElementPtrInst()
1169 Indices.append(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
1172 if (!Indices.empty()) in visitGetElementPtrInst()
1174 GetElementPtrInst::CreateInBounds(Src->getOperand(0), Indices, in visitGetElementPtrInst()
1176 GetElementPtrInst::Create(Src->getOperand(0), Indices, GEP.getName()); in visitGetElementPtrInst()
1778 SmallVector<Value*, 4> Indices; in visitExtractValueInst() local
[all …]
/external/lzma/CPP/7zip/Archive/7z/
D7zUpdate.cpp322 CRecordVector<UInt32> Indices; member
835 groups[GetGroupIndex(method.PasswordIsDefined, filteredGroup)].Indices.Add(i); in Update()
1012 int numFiles = group.Indices.Size(); in Update()
1019 refItems.Add(CRefItem(group.Indices[i], updateItems[group.Indices[i]], sortByType)); in Update()
/external/llvm/lib/Object/
DArchive.cpp355 const char *Indices = Buf + sizeof(support::ulittle32_t); in getMember() local
360 *(reinterpret_cast<const support::ulittle16_t*>(Indices) in getMember()

123