/external/llvm/utils/TableGen/ |
D | SetTheory.cpp | 30 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 31 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts); in apply() 37 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 46 Elts.insert(*I); in apply() 52 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 60 Elts.insert(*I); in apply() 68 RecSet &Elts) =0; 70 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts) { in apply() 78 apply2(ST, Expr, Set, II->getValue(), Elts); in apply() 86 RecSet &Elts) { in apply2() [all …]
|
D | SetTheory.h | 75 virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts) =0; 86 virtual void expand(SetTheory&, Record*, RecSet &Elts) =0; 122 void evaluate(Init *Expr, RecSet &Elts); 126 void evaluate(Iter begin, Iter end, RecSet &Elts) { in evaluate() argument 128 evaluate(*begin++, Elts); in evaluate()
|
D | TableGen.cpp | 173 const std::vector<Record*> *Elts = Sets.expand(Recs[i]); in operator ()() local 174 assert(Elts && "Couldn't expand Set instance"); in operator ()() 175 for (unsigned ei = 0, ee = Elts->size(); ei != ee; ++ei) in operator ()() 176 OS << ' ' << (*Elts)[ei]->getName(); in operator ()()
|
/external/llvm/lib/Analysis/ |
D | DIBuilder.cpp | 102 Value *Elts[] = { in createCompileUnit() local 119 TheCU = DICompileUnit(MDNode::get(VMContext, Elts)); in createCompileUnit() 131 Value *Elts[] = { in createFile() local 137 return DIFile(MDNode::get(VMContext, Elts)); in createFile() 143 Value *Elts[] = { in createEnumerator() local 148 return DIEnumerator(MDNode::get(VMContext, Elts)); in createEnumerator() 156 Value *Elts[] = { in createNullPtrType() local 168 return DIType(MDNode::get(VMContext, Elts)); in createNullPtrType() 179 Value *Elts[] = { in createBasicType() local 191 return DIType(MDNode::get(VMContext, Elts)); in createBasicType() [all …]
|
D | DebugInfo.cpp | 970 SmallVector<Value *, 16> Elts; in createInlinedVariable() local 973 i == 7 ? Elts.push_back(InlinedScope) : in createInlinedVariable() 974 Elts.push_back(DV->getOperand(i)); in createInlinedVariable() 975 return DIVariable(MDNode::get(VMContext, Elts)); in createInlinedVariable() 980 SmallVector<Value *, 16> Elts; in cleanseInlinedVariable() local 984 Elts.push_back(llvm::Constant::getNullValue(Type::getInt32Ty(VMContext))): in cleanseInlinedVariable() 985 Elts.push_back(DV->getOperand(i)); in cleanseInlinedVariable() 986 return DIVariable(MDNode::get(VMContext, Elts)); in cleanseInlinedVariable()
|
/external/llvm/lib/VMCore/ |
D | Constants.cpp | 717 SmallVector<uint8_t, 16> Elts; in get() local 720 Elts.push_back(CI->getZExtValue()); in get() 723 if (Elts.size() == V.size()) in get() 724 return ConstantDataArray::get(C->getContext(), Elts); in get() 726 SmallVector<uint16_t, 16> Elts; in get() local 729 Elts.push_back(CI->getZExtValue()); in get() 732 if (Elts.size() == V.size()) in get() 733 return ConstantDataArray::get(C->getContext(), Elts); in get() 735 SmallVector<uint32_t, 16> Elts; in get() local 738 Elts.push_back(CI->getZExtValue()); in get() [all …]
|
D | DebugLoc.cpp | 108 Value *Elts[] = { in getAsMDNode() local 112 return MDNode::get(Ctx2, Elts); in getAsMDNode()
|
D | Type.cpp | 457 Type **Elts = getContext().pImpl->TypeAllocator.Allocate<Type*>(NumElements); in setBody() local 458 memcpy(Elts, Elements.data(), sizeof(Elements[0]) * NumElements); in setBody() 460 ContainedTys = Elts; in setBody()
|
/external/clang/include/clang/AST/ |
D | APValue.h | 81 APValue *Elts; member 83 Vec() : Elts(0), NumElts(0) {} in Vec() 84 ~Vec() { delete[] Elts; } in ~Vec() 87 APValue *Elts; member 93 APValue *Elts; member 255 return ((Vec*)(char*)Data)->Elts[I]; in getVectorElt() 268 return ((Arr*)(char*)Data)->Elts[I]; in getArrayInitializedElt() 279 return ((Arr*)(char*)Data)->Elts[getArrayInitializedElts()]; in getArrayFiller() 303 return ((StructData*)(char*)Data)->Elts[i]; in getStructBase() 307 return ((StructData*)(char*)Data)->Elts[getStructNumBases() + i]; in getStructField() [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 521 SmallVector<Value *, 16> Elts; in ParseStandaloneMetadata() local 527 ParseMDNodeVector(Elts, NULL) || in ParseStandaloneMetadata() 531 MDNode *Init = MDNode::get(Context, Elts); in ParseStandaloneMetadata() 1479 SmallVector<Type*, 8> Elts; in ParseAnonStructType() local 1480 if (ParseStructBody(Elts)) return true; in ParseAnonStructType() 1482 Result = StructType::get(Context, Elts, Packed); in ParseAnonStructType() 1932 SmallVector<Constant*, 16> Elts; in ParseValID() local 1933 if (ParseGlobalValueVector(Elts) || in ParseValID() 1937 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID() 1938 ID.UIntVal = Elts.size(); in ParseValID() [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 885 SmallVector<Value*, 8> Elts; in ParseMetadata() local 890 Elts.push_back(MDValueList.getValueFwdRef(Record[i+1])); in ParseMetadata() 892 Elts.push_back(ValueList.getValueFwdRef(Record[i+1], Ty)); in ParseMetadata() 894 Elts.push_back(NULL); in ParseMetadata() 896 Value *V = MDNode::getWhenValsUnresolved(Context, Elts, IsFunctionLocal); in ParseMetadata() 1074 SmallVector<Constant*, 16> Elts; in ParseConstants() local 1078 Elts.push_back(ValueList.getConstantFwdRef(Record[i], in ParseConstants() 1080 V = ConstantStruct::get(STy, Elts); in ParseConstants() 1084 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); in ParseConstants() 1085 V = ConstantArray::get(ATy, Elts); in ParseConstants() [all …]
|
/external/llvm/include/llvm/ |
D | Constants.h | 674 static Constant *get(LLVMContext &Context, ArrayRef<uint8_t> Elts); 675 static Constant *get(LLVMContext &Context, ArrayRef<uint16_t> Elts); 676 static Constant *get(LLVMContext &Context, ArrayRef<uint32_t> Elts); 677 static Constant *get(LLVMContext &Context, ArrayRef<uint64_t> Elts); 678 static Constant *get(LLVMContext &Context, ArrayRef<float> Elts); 679 static Constant *get(LLVMContext &Context, ArrayRef<double> Elts); 727 static Constant *get(LLVMContext &Context, ArrayRef<uint8_t> Elts); 728 static Constant *get(LLVMContext &Context, ArrayRef<uint16_t> Elts); 729 static Constant *get(LLVMContext &Context, ArrayRef<uint32_t> Elts); 730 static Constant *get(LLVMContext &Context, ArrayRef<uint64_t> Elts); [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 69 SmallVector<Value*, 4> Elts; in MapValue() local 70 Elts.reserve(MD->getNumOperands()); in MapValue() 73 Elts.push_back(Op ? MapValue(Op, VM, Flags, TypeMapper) : 0); in MapValue() 75 MDNode *NewMD = MDNode::get(V->getContext(), Elts); in MapValue()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 446 SmallVector<Constant*, 16> Elts; in visitShuffleVectorInst() local 449 Elts.push_back(UndefValue::get(Type::getInt32Ty(SVI.getContext()))); in visitShuffleVectorInst() 456 Elts.push_back(UndefValue::get(Type::getInt32Ty(SVI.getContext()))); in visitShuffleVectorInst() 459 Elts.push_back(ConstantInt::get(Type::getInt32Ty(SVI.getContext()), in visitShuffleVectorInst() 465 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst() 657 SmallVector<Constant*, 16> Elts; in visitShuffleVectorInst() local 661 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst() 663 Elts.push_back(ConstantInt::get(Int32Ty, newMask[i])); in visitShuffleVectorInst() 668 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
|
D | InstCombineSimplifyDemanded.cpp | 842 SmallVector<Constant*, 16> Elts; in SimplifyDemandedVectorElts() local 845 Elts.push_back(Undef); in SimplifyDemandedVectorElts() 854 Elts.push_back(Undef); in SimplifyDemandedVectorElts() 857 Elts.push_back(Elt); in SimplifyDemandedVectorElts() 862 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 979 SmallVector<Constant*, 16> Elts; in SimplifyDemandedVectorElts() local 982 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext()))); in SimplifyDemandedVectorElts() 984 Elts.push_back(ConstantInt::get(Type::getInt32Ty(I->getContext()), in SimplifyDemandedVectorElts() 987 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
|
D | InstCombineMulDivRem.cpp | 706 SmallVector<Constant *, 16> Elts(VWidth); in visitSRem() local 708 Elts[i] = C->getAggregateElement(i); // Handle undef, etc. in visitSRem() 709 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elts[i])) { in visitSRem() 711 Elts[i] = cast<ConstantInt>(ConstantExpr::getNeg(RHS)); in visitSRem() 715 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
|
/external/clang/lib/CodeGen/ |
D | CGExprConstant.cpp | 664 SmallVector<llvm::Constant*, 2> Elts; in VisitCastExpr() local 666 Elts.push_back(C); in VisitCastExpr() 677 Elts.push_back(llvm::UndefValue::get(Ty)); in VisitCastExpr() 683 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr() 775 std::vector<llvm::Constant*> Elts; in EmitArrayInitialization() local 776 Elts.reserve(NumInitableElts + NumElements); in EmitArrayInitialization() 785 Elts.push_back(C); in EmitArrayInitialization() 798 Elts.resize(NumElements, fillC); in EmitArrayInitialization() 804 for (unsigned i = 0, e = Elts.size(); i < e; ++i) in EmitArrayInitialization() 805 Types.push_back(Elts[i]->getType()); in EmitArrayInitialization() [all …]
|
D | CGValue.h | 280 static LValue MakeExtVectorElt(llvm::Value *Vec, llvm::Constant *Elts, in MakeExtVectorElt() argument 285 R.VectorElts = Elts; in MakeExtVectorElt()
|
D | CGDebugInfo.cpp | 852 SmallVector<llvm::Value *, 16> Elts; in getOrCreateMethodType() local 855 Elts.push_back(Args.getElement(0)); in getOrCreateMethodType() 876 Elts.push_back(ThisPtrType); in getOrCreateMethodType() 881 Elts.push_back(ThisPtrType); in getOrCreateMethodType() 887 Elts.push_back(Args.getElement(i)); in getOrCreateMethodType() 889 llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(Elts); in getOrCreateMethodType() 1960 SmallVector<llvm::Value *, 16> Elts; in getOrCreateFunctionType() local 1963 Elts.push_back(getOrCreateType(OMethod->getResultType(), F)); in getOrCreateFunctionType() 1965 Elts.push_back(getOrCreateType(OMethod->getSelfDecl()->getType(), F)); in getOrCreateFunctionType() 1967 Elts.push_back(getOrCreateType(OMethod->getCmdDecl()->getType(), F)); in getOrCreateFunctionType() [all …]
|
D | CGExpr.cpp | 514 const llvm::Constant *Elts) { in getAccessedFieldNo() argument 515 return cast<llvm::ConstantInt>(Elts->getAggregateElement(Idx)) in getAccessedFieldNo() 1099 const llvm::Constant *Elts = LV.getExtVectorElts(); in EmitLoadOfExtVectorElementLValue() local 1105 unsigned InIdx = getAccessedFieldNo(0, Elts); in EmitLoadOfExtVectorElementLValue() 1115 Mask.push_back(Builder.getInt32(getAccessedFieldNo(i, Elts))); in EmitLoadOfExtVectorElementLValue() 1328 const llvm::Constant *Elts = Dst.getExtVectorElts(); in EmitStoreThroughExtVectorComponentLValue() local 1342 Mask[getAccessedFieldNo(i, Elts)] = Builder.getInt32(i); in EmitStoreThroughExtVectorComponentLValue() 1369 Mask[getAccessedFieldNo(i, Elts)] = Builder.getInt32(i+NumDstElts); in EmitStoreThroughExtVectorComponentLValue() 1378 unsigned InIdx = getAccessedFieldNo(0, Elts); in EmitStoreThroughExtVectorComponentLValue() 1910 SmallVector<unsigned, 4> &Elts) { in GenerateConstantVector() argument [all …]
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 25 void ObjCListBase::set(void *const* InList, unsigned Elts, ASTContext &Ctx) { in set() argument 27 if (Elts == 0) return; // Setting to an empty list is a noop. in set() 30 List = new (Ctx) void*[Elts]; in set() 31 NumElts = Elts; in set() 32 memcpy(List, InList, sizeof(void*)*Elts); in set() 35 void ObjCProtocolList::set(ObjCProtocolDecl* const* InList, unsigned Elts, in set() argument 37 if (Elts == 0) in set() 40 Locations = new (Ctx) SourceLocation[Elts]; in set() 41 memcpy(Locations, Locs, sizeof(SourceLocation) * Elts); in set() 42 set(InList, Elts, Ctx); in set()
|
D | APValue.cpp | 109 Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]), in Arr() 111 APValue::Arr::~Arr() { delete [] Elts; } in ~Arr() 114 Elts(new APValue[NumBases+NumFields]), in StructData() 117 delete [] Elts; in ~StructData() 139 setVector(((const Vec *)(const char *)RHS.Data)->Elts, in APValue()
|
/external/llvm/tools/bugpoint/ |
D | ExtractFunction.cpp | 213 Constant *Elts[] = { in GetTorInit() local 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts)); in GetTorInit()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 2210 SmallVector<Constant*, 32> Elts; in EvaluateStoreInto() local 2214 Elts.push_back(Init->getAggregateElement(i)); in EvaluateStoreInto() 2220 Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1); in EvaluateStoreInto() 2223 return ConstantStruct::get(STy, Elts); in EvaluateStoreInto() 2237 Elts.push_back(Init->getAggregateElement(i)); in EvaluateStoreInto() 2240 Elts[CI->getZExtValue()] = in EvaluateStoreInto() 2241 EvaluateStoreInto(Elts[CI->getZExtValue()], Val, Addr, OpNo+1); in EvaluateStoreInto() 2244 return ConstantArray::get(cast<ArrayType>(InitTy), Elts); in EvaluateStoreInto() 2245 return ConstantVector::get(Elts); in EvaluateStoreInto()
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 248 Stmt **Elts = reinterpret_cast<Stmt**>(elts.release()); in ActOnCompoundStmt() local 255 for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt() 259 for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt() 263 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt() 273 DiagnoseUnusedExprResult(Elts[i]); in ActOnCompoundStmt() 282 DiagnoseEmptyLoopBody(Elts[i], Elts[i + 1]); in ActOnCompoundStmt() 285 return Owned(new (Context) CompoundStmt(Context, Elts, NumElts, L, R)); in ActOnCompoundStmt()
|