Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/CodeGen/
DAnalysis.h38 const unsigned *Indices,
43 ArrayRef<unsigned> Indices,
45 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
/external/llvm/lib/CodeGen/
DAnalysis.cpp36 const unsigned *Indices, in ComputeLinearIndex() argument
40 if (Indices && Indices == IndicesEnd) in ComputeLinearIndex()
49 if (Indices && *Indices == unsigned(EI - EB)) in ComputeLinearIndex()
50 return ComputeLinearIndex(*EI, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
59 if (Indices && *Indices == i) in ComputeLinearIndex()
60 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/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.cpp256 static bool PrefixIn(const ArgPromotion::IndicesVector &Indices, in PrefixIn() argument
259 Low = Set.upper_bound(Indices); in PrefixIn()
267 return Low != Set.end() && IsPrefix(*Low, Indices); in PrefixIn()
347 IndicesVector Indices; in isSafeToPromoteArgument() local
356 Indices.reserve(GEP->getNumIndices()); in isSafeToPromoteArgument()
360 Indices.push_back(CI->getSExtValue()); in isSafeToPromoteArgument()
367 MarkIndicesSafe(Indices, SafeToUnconditionallyLoad); in isSafeToPromoteArgument()
368 Indices.clear(); in isSafeToPromoteArgument()
556 IndicesVector Indices; in DoPromotion() local
557 Indices.reserve(User->getNumOperands() - 1); in DoPromotion()
[all …]
/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/Target/
DTargetData.cpp598 ArrayRef<Value *> Indices) const { in getIndexedOffset()
604 TI = gep_type_begin(ptrTy, Indices); in getIndexedOffset()
605 for (unsigned CurIDX = 0, EndIDX = Indices.size(); CurIDX != EndIDX; in getIndexedOffset()
608 assert(Indices[CurIDX]->getType() == in getIndexedOffset()
611 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); in getIndexedOffset()
626 if (int64_t arrayIdx = cast<ConstantInt>(Indices[CurIDX])->getSExtValue()) in getIndexedOffset()
/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/Analysis/
DLoads.cpp65 SmallVector<Value*, 8> Indices(GEP->op_begin() + 1, GEP->op_end()); in getUnderlyingObjectWithOffset() local
67 Indices); in getUnderlyingObjectWithOffset()
DLint.cpp611 ArrayRef<unsigned> Indices = CE->getIndices(); in findValueImpl() local
612 if (Value *W = FindInsertedValue(CE->getOperand(0), Indices)) in findValueImpl()
DConstantFolding.cpp1036 ArrayRef<Constant*> Indices) { in ConstantFoldLoadThroughGEPIndices() argument
1039 for (unsigned i = 0, e = Indices.size(); i != e; ++i) { in ConstantFoldLoadThroughGEPIndices()
1040 C = C->getAggregateElement(Indices[i]); in ConstantFoldLoadThroughGEPIndices()
/external/llvm/utils/TableGen/
DCodeGenRegisters.cpp185 SmallVector<CodeGenSubRegIndex*, 8> Indices; in getSubRegs() local
189 Indices.push_back(Idx); in getSubRegs()
224 for (unsigned i = 0; i != Indices.size(); ++i) { in getSubRegs()
225 CodeGenSubRegIndex *Idx = Indices[i]; in getSubRegs()
243 Indices.push_back(I->second); in getSubRegs()
301 while (!Indices.empty() && !Orphans.empty()) { in getSubRegs()
302 CodeGenSubRegIndex *Idx = Indices.pop_back_val(); in getSubRegs()
332 std::vector<Record*> Indices = TheDef->getValueAsListOfDefs("SubRegIndices"); in addSubRegsPreOrder() local
333 for (unsigned i = 0, e = Indices.size(); i != e; ++i) { in addSubRegsPreOrder()
334 CodeGenSubRegIndex *Idx = RegBank.getSubRegIdx(Indices[i]); in addSubRegsPreOrder()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp862 SmallVector<Value*, 8> Indices; in visitGetElementPtrInst() local
898 Indices.append(Src->op_begin()+1, Src->op_end()-1); in visitGetElementPtrInst()
899 Indices.push_back(Sum); in visitGetElementPtrInst()
900 Indices.append(GEP.op_begin()+2, GEP.op_end()); in visitGetElementPtrInst()
905 Indices.append(Src->op_begin()+1, Src->op_end()); in visitGetElementPtrInst()
906 Indices.append(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
909 if (!Indices.empty()) in visitGetElementPtrInst()
911 GetElementPtrInst::CreateInBounds(Src->getOperand(0), Indices, in visitGetElementPtrInst()
913 GetElementPtrInst::Create(Src->getOperand(0), Indices, GEP.getName()); in visitGetElementPtrInst()
1391 SmallVector<Value*, 4> Indices; in visitExtractValueInst() local
[all …]
/external/llvm/lib/AsmParser/
DLLParser.cpp1200 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices, in ParseIndexList() argument
1214 Indices.push_back(Idx); in ParseIndexList()
2106 SmallVector<unsigned, 4> Indices; in ParseValID() local
2109 ParseIndexList(Indices) || in ParseValID()
2115 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices)) in ParseValID()
2117 ID.ConstantVal = ConstantExpr::getExtractValue(Val, Indices); in ParseValID()
2124 SmallVector<unsigned, 4> Indices; in ParseValID() local
2129 ParseIndexList(Indices) || in ParseValID()
2134 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices)) in ParseValID()
2136 ID.ConstantVal = ConstantExpr::getInsertValue(Val0, Val1, Indices); in ParseValID()
[all …]
DLLParser.h187 bool ParseIndexList(SmallVectorImpl<unsigned> &Indices,bool &AteExtraComma);
188 bool ParseIndexList(SmallVectorImpl<unsigned> &Indices) { in ParseIndexList() argument
190 if (ParseIndexList(Indices, AteExtraComma)) return true; in ParseIndexList()
/external/llvm/include/llvm/Analysis/
DConstantFolding.h90 ArrayRef<Constant*> Indices);
/external/llvm/lib/VMCore/
DConstantsContext.h173 Indices(IdxList) { in ExtractValueConstantExpr()
178 const SmallVector<unsigned, 4> Indices; variable
199 Indices(IdxList) { in InsertValueConstantExpr()
205 const SmallVector<unsigned, 4> Indices; variable
DInstructions.cpp1649 Indices.append(Idxs.begin(), Idxs.end()); in init()
1656 Indices(IVI.Indices) { in InsertValueInst()
1673 Indices.append(Idxs.begin(), Idxs.end()); in init()
1679 Indices(EVI.Indices) { in ExtractValueInst()
/external/clang/lib/CodeGen/
DCGBuiltin.cpp1693 SmallVector<Constant*, 16> Indices; in EmitARMBuiltinExpr() local
1695 Indices.push_back(ConstantInt::get(Int32Ty, i+CV)); in EmitARMBuiltinExpr()
1699 Value *SV = llvm::ConstantVector::get(Indices); in EmitARMBuiltinExpr()
2166 SmallVector<Constant*, 16> Indices; in EmitARMBuiltinExpr() local
2168 Indices.push_back(Builder.getInt32(i+vi)); in EmitARMBuiltinExpr()
2169 Indices.push_back(Builder.getInt32(i+e+vi)); in EmitARMBuiltinExpr()
2172 SV = llvm::ConstantVector::get(Indices); in EmitARMBuiltinExpr()
2186 SmallVector<Constant*, 16> Indices; in EmitARMBuiltinExpr() local
2188 Indices.push_back(ConstantInt::get(Int32Ty, 2*i+vi)); in EmitARMBuiltinExpr()
2191 SV = llvm::ConstantVector::get(Indices); in EmitARMBuiltinExpr()
[all …]
/external/llvm/include/llvm/Target/
DTargetData.h290 uint64_t getIndexedOffset(Type *Ty, ArrayRef<Value *> Indices) const;
/external/llvm/include/llvm/
DInstructions.h1726 SmallVector<unsigned, 4> Indices;
1772 inline idx_iterator idx_begin() const { return Indices.begin(); }
1773 inline idx_iterator idx_end() const { return Indices.end(); }
1786 return Indices;
1790 return (unsigned)Indices.size();
1833 SmallVector<unsigned, 4> Indices;
1884 inline idx_iterator idx_begin() const { return Indices.begin(); }
1885 inline idx_iterator idx_end() const { return Indices.end(); }
1908 return Indices;
1912 return (unsigned)Indices.size();
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp455 SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end()); in CanConvertToScalar() local
459 Indices); in CanConvertToScalar()
538 SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end()); in ConvertUsesToScalar() local
540 Indices); in ConvertUsesToScalar()
1637 SmallVector<Value*, 8> Indices(GEPI->op_begin() + 1, GEPI->op_end()); in isSafeGEP() local
1638 Offset += TD->getIndexedOffset(GEPI->getPointerOperandType(), Indices); in isSafeGEP()
1927 SmallVector<Value*, 8> Indices(GEPI->op_begin() + 1, GEPI->op_end()); in RewriteGEP() local
1928 Offset += TD->getIndexedOffset(GEPI->getPointerOperandType(), Indices); in RewriteGEP()
/external/clang/lib/AST/
DDeclCXX.cpp1524 VarDecl **Indices, in CXXCtorInitializer() argument
1531 memcpy(MyIndices, Indices, NumIndices * sizeof(VarDecl *)); in CXXCtorInitializer()
1539 VarDecl **Indices, in Create() argument
1545 Indices, NumIndices); in Create()
/external/llvm/test/CodeGen/ARM/
Dvext.ll77 ; Tests for ReconstructShuffle function. Indices have to be carefully
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp558 SmallVector<Value*, 8> Indices(CE->op_begin()+1, CE->op_end()); in getConstantValue() local
559 uint64_t Offset = TD->getIndexedOffset(Op0->getType(), Indices); in getConstantValue()

12