/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 | 160 const std::vector<Record*> *Elts = Sets.expand(Recs[i]); in operator ()() local 161 assert(Elts && "Couldn't expand Set instance"); in operator ()() 162 for (unsigned ei = 0, ee = Elts->size(); ei != ee; ++ei) in operator ()() 163 OS << ' ' << (*Elts)[ei]->getName(); in operator ()()
|
/external/llvm/lib/VMCore/ |
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 | 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 | DebugInfo.cpp | 723 SmallVector<Value *, 16> Elts; in createInlinedVariable() local 726 i == 7 ? Elts.push_back(InlinedScope) : in createInlinedVariable() 727 Elts.push_back(DV->getOperand(i)); in createInlinedVariable() 728 return DIVariable(MDNode::get(VMContext, Elts)); in createInlinedVariable() 733 SmallVector<Value *, 16> Elts; in cleanseInlinedVariable() local 737 Elts.push_back(Constant::getNullValue(Type::getInt32Ty(VMContext))): in cleanseInlinedVariable() 738 Elts.push_back(DV->getOperand(i)); in cleanseInlinedVariable() 739 return DIVariable(MDNode::get(VMContext, Elts)); in cleanseInlinedVariable()
|
D | AutoUpgrade.cpp | 196 SmallVector<Value *, 1> Elts; in UpgradeIntrinsicCall() local 197 Elts.push_back(ConstantInt::get(Type::getInt32Ty(C), 1)); in UpgradeIntrinsicCall() 198 MDNode *Node = MDNode::get(C, Elts); in UpgradeIntrinsicCall()
|
D | DebugLoc.cpp | 109 Value *Elts[] = { in getAsMDNode() local 113 return MDNode::get(Ctx2, Elts); in getAsMDNode()
|
D | Function.cpp | 558 Type *Elts[5]; in DecodeFixedType() local 561 Elts[i] = DecodeFixedType(Infos, Tys, Context); in DecodeFixedType() 562 return StructType::get(Context, ArrayRef<Type*>(Elts,D.Struct_NumElements)); in DecodeFixedType()
|
/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 | 522 SmallVector<Value *, 16> Elts; in ParseStandaloneMetadata() local 528 ParseMDNodeVector(Elts, NULL) || in ParseStandaloneMetadata() 532 MDNode *Init = MDNode::get(Context, Elts); in ParseStandaloneMetadata() 1522 SmallVector<Type*, 8> Elts; in ParseAnonStructType() local 1523 if (ParseStructBody(Elts)) return true; in ParseAnonStructType() 1525 Result = StructType::get(Context, Elts, Packed); in ParseAnonStructType() 1975 SmallVector<Constant*, 16> Elts; in ParseValID() local 1976 if (ParseGlobalValueVector(Elts) || in ParseValID() 1980 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID() 1981 ID.UIntVal = Elts.size(); in ParseValID() [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 854 SmallVector<Value*, 8> Elts; in ParseMetadata() local 859 Elts.push_back(MDValueList.getValueFwdRef(Record[i+1])); in ParseMetadata() 861 Elts.push_back(ValueList.getValueFwdRef(Record[i+1], Ty)); in ParseMetadata() 863 Elts.push_back(NULL); in ParseMetadata() 865 Value *V = MDNode::getWhenValsUnresolved(Context, Elts, IsFunctionLocal); in ParseMetadata() 1039 SmallVector<Constant*, 16> Elts; in ParseConstants() local 1043 Elts.push_back(ValueList.getConstantFwdRef(Record[i], in ParseConstants() 1045 V = ConstantStruct::get(STy, Elts); in ParseConstants() 1049 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); in ParseConstants() 1050 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 | 719 SmallVector<Constant *, 16> Elts(VWidth); in visitSRem() local 721 Elts[i] = C->getAggregateElement(i); // Handle undef, etc. in visitSRem() 722 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elts[i])) { in visitSRem() 724 Elts[i] = cast<ConstantInt>(ConstantExpr::getNeg(RHS)); in visitSRem() 728 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() 778 std::vector<llvm::Constant*> Elts; in EmitArrayInitialization() local 779 Elts.reserve(NumInitableElts + NumElements); in EmitArrayInitialization() 788 Elts.push_back(C); in EmitArrayInitialization() 801 Elts.resize(NumElements, fillC); in EmitArrayInitialization() 807 for (unsigned i = 0, e = Elts.size(); i < e; ++i) in EmitArrayInitialization() 808 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 | 871 SmallVector<llvm::Value *, 16> Elts; in getOrCreateMethodType() local 874 Elts.push_back(Args.getElement(0)); in getOrCreateMethodType() 895 Elts.push_back(ThisPtrType); in getOrCreateMethodType() 900 Elts.push_back(ThisPtrType); in getOrCreateMethodType() 906 Elts.push_back(Args.getElement(i)); in getOrCreateMethodType() 908 llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(Elts); in getOrCreateMethodType() 1996 SmallVector<llvm::Value *, 16> Elts; in getOrCreateFunctionType() local 1999 Elts.push_back(getOrCreateType(OMethod->getResultType(), F)); in getOrCreateFunctionType() 2001 Elts.push_back(getOrCreateType(OMethod->getSelfDecl()->getType(), F)); in getOrCreateFunctionType() 2003 Elts.push_back(getOrCreateType(OMethod->getCmdDecl()->getType(), F)); in getOrCreateFunctionType() [all …]
|
/external/llvm/include/llvm/Support/ |
D | IntegersSubset.h | 509 std::vector<Constant*> Elts; in IntegersSubset() local 510 Elts.reserve(Src.size()); in IntegersSubset() 526 Elts.push_back(CV); in IntegersSubset() 529 ArrayType::get(Elts.front()->getType(), (uint64_t)Elts.size()); in IntegersSubset() 530 Holder = ConstantArray::get(ArrTy, Elts); in IntegersSubset()
|
/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 | 2396 SmallVector<Constant*, 32> Elts; in EvaluateStoreInto() local 2400 Elts.push_back(Init->getAggregateElement(i)); in EvaluateStoreInto() 2406 Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1); in EvaluateStoreInto() 2409 return ConstantStruct::get(STy, Elts); in EvaluateStoreInto() 2423 Elts.push_back(Init->getAggregateElement(i)); in EvaluateStoreInto() 2426 Elts[CI->getZExtValue()] = in EvaluateStoreInto() 2427 EvaluateStoreInto(Elts[CI->getZExtValue()], Val, Addr, OpNo+1); in EvaluateStoreInto() 2430 return ConstantArray::get(cast<ArrayType>(InitTy), Elts); in EvaluateStoreInto() 2431 return ConstantVector::get(Elts); in EvaluateStoreInto()
|