Searched refs:Indices (Results 1 - 25 of 35) sorted by relevance

12

/external/llvm/include/llvm/CodeGen/
H A DAnalysis.h38 const unsigned *Indices,
43 ArrayRef<unsigned> Indices,
45 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
42 ComputeLinearIndex(Type *Ty, ArrayRef<unsigned> Indices, unsigned CurIndex = 0) argument
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A 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/CodeGen/
H A DAnalysis.cpp36 const unsigned *Indices,
40 if (Indices && Indices == IndicesEnd)
49 if (Indices && *Indices == unsigned(EI - EB))
50 return ComputeLinearIndex(*EI, Indices+1, IndicesEnd, CurIndex);
59 if (Indices && *Indices == i)
60 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex);
35 ComputeLinearIndex(Type *Ty, const unsigned *Indices, const unsigned *IndicesEnd, unsigned CurIndex) argument
H A DShadowStackGC.cpp351 Value *Indices[] = { ConstantInt::get(Type::getInt32Ty(Context), 0), local
354 Value* Val = B.CreateGEP(BasePtr, Indices, Name);
364 Value *Indices[] = { ConstantInt::get(Type::getInt32Ty(Context), 0), local
366 Value *Val = B.CreateGEP(BasePtr, Indices, Name);
/external/llvm/include/llvm/Analysis/
H A DConstantFolding.h90 ArrayRef<Constant*> Indices);
/external/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp252 /// Checks if Indices, or a prefix of Indices, is in Set.
253 static bool PrefixIn(const ArgPromotion::IndicesVector &Indices, argument
256 Low = Set.upper_bound(Indices);
259 // Low is now the last element smaller than or equal to Indices. This means
260 // it points to a prefix of Indices (possibly Indices itself), if such
264 return Low != Set.end() && IsPrefix(*Low, Indices);
269 /// is already a prefix of Indices in Safe, Indices ar
344 IndicesVector Indices; local
553 IndicesVector Indices; local
[all...]
/external/llvm/lib/Transforms/Instrumentation/
H A DProfilingUtils.cpp118 std::vector<Constant*> Indices(2);
119 Indices[0] = Constant::getNullValue(Type::getInt32Ty(Context));
120 Indices[1] = ConstantInt::get(Type::getInt32Ty(Context), CounterNum);
122 ConstantExpr::getGetElementPtr(CounterArray, Indices);
/external/llvm/lib/Target/
H A DTargetData.cpp598 ArrayRef<Value *> Indices) const {
604 TI = gep_type_begin(ptrTy, Indices);
605 for (unsigned CurIDX = 0, EndIDX = Indices.size(); CurIDX != EndIDX;
608 assert(Indices[CurIDX]->getType() ==
611 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue();
626 if (int64_t arrayIdx = cast<ConstantInt>(Indices[CurIDX])->getSExtValue())
/external/llvm/lib/Analysis/
H A DLoads.cpp65 SmallVector<Value*, 8> Indices(GEP->op_begin() + 1, GEP->op_end());
67 Indices);
H A DLint.cpp611 ArrayRef<unsigned> Indices = CE->getIndices(); local
612 if (Value *W = FindInsertedValue(CE->getOperand(0), Indices))
H A DConstantFolding.cpp1077 ArrayRef<Constant*> Indices) {
1080 for (unsigned i = 0, e = Indices.size(); i != e; ++i) {
1081 C = C->getAggregateElement(Indices[i]);
1076 ConstantFoldLoadThroughGEPIndices(Constant *C, ArrayRef<Constant*> Indices) argument
/external/llvm/bindings/ocaml/llvm/
H A Dllvm_ocaml.c709 CAMLprim LLVMValueRef llvm_const_gep(LLVMValueRef ConstantVal, value Indices) { argument
710 return LLVMConstGEP(ConstantVal, (LLVMValueRef*) Op_val(Indices),
711 Wosize_val(Indices));
716 value Indices) {
717 return LLVMConstInBoundsGEP(ConstantVal, (LLVMValueRef*) Op_val(Indices),
718 Wosize_val(Indices));
723 value Indices) {
724 CAMLparam1(Indices);
725 int size = Wosize_val(Indices);
731 idxs[i] = Int_val(Field(Indices,
715 llvm_const_in_bounds_gep(LLVMValueRef ConstantVal, value Indices) argument
722 llvm_const_extractvalue(LLVMValueRef Aggregate, value Indices) argument
740 llvm_const_insertvalue(LLVMValueRef Aggregate, LLVMValueRef Val, value Indices) argument
1698 llvm_build_gep(LLVMValueRef Pointer, value Indices, value Name, value B) argument
1706 llvm_build_in_bounds_gep(LLVMValueRef Pointer, value Indices, value Name, value B) argument
[all...]
/external/llvm/lib/AsmParser/
H A DLLParser.h190 bool ParseIndexList(SmallVectorImpl<unsigned> &Indices,bool &AteExtraComma);
191 bool ParseIndexList(SmallVectorImpl<unsigned> &Indices) { argument
193 if (ParseIndexList(Indices, AteExtraComma)) return true;
H A DLLParser.cpp1243 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
1257 Indices.push_back(Idx);
2151 SmallVector<unsigned, 4> Indices;
2154 ParseIndexList(Indices) ||
2160 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
2162 ID.ConstantVal = ConstantExpr::getExtractValue(Val, Indices);
2169 SmallVector<unsigned, 4> Indices;
2174 ParseIndexList(Indices) ||
2179 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices))
2181 ID.ConstantVal = ConstantExpr::getInsertValue(Val0, Val1, Indices);
[all...]
/external/clang/lib/CodeGen/
H A DCGBuiltin.cpp1817 SmallVector<Constant*, 16> Indices; local
1819 Indices.push_back(ConstantInt::get(Int32Ty, i+CV));
1823 Value *SV = llvm::ConstantVector::get(Indices);
1853 SmallVector<Constant*, 2> Indices; local
1854 Indices.push_back(ConstantInt::get(Int32Ty, 1-Lane));
1855 Indices.push_back(ConstantInt::get(Int32Ty, Lane));
1856 SV = llvm::ConstantVector::get(Indices);
2314 SmallVector<Constant*, 16> Indices; local
2316 Indices.push_back(Builder.getInt32(i+vi));
2317 Indices
2334 SmallVector<Constant*, 16> Indices; local
2353 SmallVector<Constant*, 16> Indices; local
2468 SmallVector<llvm::Constant*, 8> Indices; local
2499 SmallVector<llvm::Constant*, 16> Indices; local
2529 SmallVector<llvm::Constant*, 32> Indices; local
[all...]
/external/llvm/include/llvm/Target/
H A DTargetData.h290 uint64_t getIndexedOffset(Type *Ty, ArrayRef<Value *> Indices) const;
/external/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp850 // Combine Indices - If the source pointer to this getelementptr instruction
866 SmallVector<Value*, 8> Indices;
902 Indices.append(Src->op_begin()+1, Src->op_end()-1);
903 Indices.push_back(Sum);
904 Indices.append(GEP.op_begin()+2, GEP.op_end());
909 Indices.append(Src->op_begin()+1, Src->op_end());
910 Indices.append(GEP.idx_begin()+1, GEP.idx_end());
913 if (!Indices.empty())
915 GetElementPtrInst::CreateInBounds(Src->getOperand(0), Indices,
917 GetElementPtrInst::Create(Src->getOperand(0), Indices, GE
1444 SmallVector<Value*, 4> Indices; local
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp510 SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end());
517 GEPNonConstantIdx = Indices.pop_back_val();
524 Indices);
610 SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end());
615 GEPNonConstantIdx = Indices.pop_back_val();
619 Indices);
1742 SmallVector<Value*, 8> Indices(GEPI->op_begin() + 1, GEPI->op_end());
1747 Indices.pop_back();
1748 Offset += TD->getIndexedOffset(GEPI->getPointerOperandType(), Indices);
2051 SmallVector<Value*, 8> Indices(GEP
[all...]
/external/llvm/utils/TableGen/
H A DCodeGenRegisters.cpp245 // qsub_1 subreg, add a dsub_2 subreg. Keep growing Indices and process
247 SmallVector<CodeGenSubRegIndex*, 8> Indices = ExplicitSubRegIndices; local
248 for (unsigned i = 0; i != Indices.size(); ++i) {
249 CodeGenSubRegIndex *Idx = Indices[i];
267 Indices.push_back(I->second);
273 // Work backwards in the Indices vector in order to compose subregs bottom-up.
287 while (!Indices.empty() && !Orphans.empty()) {
288 CodeGenSubRegIndex *Idx = Indices.pop_back_val();
584 std::vector<Record*> Indices = Def->getValueAsListOfDefs("SubRegIndices"); local
585 unsigned Dim = Indices
[all...]
/external/llvm/lib/VMCore/
H A DConstantsContext.h173 Indices(IdxList) {
177 /// Indices - These identify which value to extract.
178 const SmallVector<unsigned, 4> Indices; member in class:llvm::ExtractValueConstantExpr
199 Indices(IdxList) {
204 /// Indices - These identify the position for the insertion.
205 const SmallVector<unsigned, 4> Indices; member in class:llvm::InsertValueConstantExpr
H A DInstructions.cpp1655 Indices.append(Idxs.begin(), Idxs.end());
1662 Indices(IVI.Indices) {
1679 Indices.append(Idxs.begin(), Idxs.end());
1685 Indices(EVI.Indices) {
/external/llvm/include/llvm/
H A DInstructions.h1733 SmallVector<unsigned, 4> Indices; member in class:llvm::ExtractValueInst
1779 inline idx_iterator idx_begin() const { return Indices.begin(); }
1780 inline idx_iterator idx_end() const { return Indices.end(); }
1793 return Indices;
1797 return (unsigned)Indices.size();
1840 SmallVector<unsigned, 4> Indices; member in class:llvm::InsertValueInst
1891 inline idx_iterator idx_begin() const { return Indices.begin(); }
1892 inline idx_iterator idx_end() const { return Indices.end(); }
1915 return Indices;
1919 return (unsigned)Indices
[all...]
/external/clang/lib/AST/
H A DDeclCXX.cpp1546 VarDecl **Indices,
1553 memcpy(MyIndices, Indices, NumIndices * sizeof(VarDecl *));
1561 VarDecl **Indices,
1567 Indices, NumIndices);
1541 CXXCtorInitializer(ASTContext &Context, FieldDecl *Member, SourceLocation MemberLoc, SourceLocation L, Expr *Init, SourceLocation R, VarDecl **Indices, unsigned NumIndices) argument
1556 Create(ASTContext &Context, FieldDecl *Member, SourceLocation MemberLoc, SourceLocation L, Expr *Init, SourceLocation R, VarDecl **Indices, unsigned NumIndices) argument
/external/llvm/include/llvm-c/
H A DCore.h2399 LLVMValueRef *Indices, unsigned NumIndices,
2402 LLVMValueRef *Indices, unsigned NumIndices,
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp559 SmallVector<Value*, 8> Indices(CE->op_begin()+1, CE->op_end());
560 uint64_t Offset = TD->getIndexedOffset(Op0->getType(), Indices);

Completed in 2139 milliseconds

12