/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 346 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local 348 MDs.clear(); in ValueEnumerator() 349 GV.getAllMetadata(MDs); in ValueEnumerator() 350 for (const auto &I : MDs) in ValueEnumerator() 363 MDs.clear(); in ValueEnumerator() 364 F.getAllMetadata(MDs); in ValueEnumerator() 365 for (const auto &I : MDs) in ValueEnumerator() 390 MDs.clear(); in ValueEnumerator() 391 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator() 392 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator() [all …]
|
D | ValueEnumerator.h | 65 std::vector<const Metadata *> MDs; variable 80 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get() 82 assert(ID <= MDs.size() && "Expected valid ID"); in get() 83 return MDs[ID - 1]; in get() 156 unsigned numMDs() const { return MDs.size(); } in numMDs() 193 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs() 197 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings() 202 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 380 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local 382 MDs.clear(); in ValueEnumerator() 383 GV.getAllMetadata(MDs); in ValueEnumerator() 384 for (const auto &I : MDs) in ValueEnumerator() 397 MDs.clear(); in ValueEnumerator() 398 F.getAllMetadata(MDs); in ValueEnumerator() 399 for (const auto &I : MDs) in ValueEnumerator() 424 MDs.clear(); in ValueEnumerator() 425 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator() 426 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator() [all …]
|
D | ValueEnumerator.h | 70 std::vector<const Metadata *> MDs; variable 85 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get() 87 assert(ID <= MDs.size() && "Expected valid ID"); in get() 88 return MDs[ID - 1]; in get() 164 unsigned numMDs() const { return MDs.size(); } in numMDs() 202 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs() 206 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings() 211 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
|
/external/llvm/lib/IR/ |
D | Metadata.cpp | 776 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument 780 MDTupleInfo::KeyTy Key(MDs); in getImpl() 790 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl() 865 SmallVector<Metadata *, 4> MDs; in concatenate() local 866 MDs.reserve(A->getNumOperands() + B->getNumOperands()); in concatenate() 867 MDs.append(A->op_begin(), A->op_end()); in concatenate() 868 MDs.append(B->op_begin(), B->op_end()); in concatenate() 872 return getOrSelfReference(A->getContext(), MDs); in concatenate() 879 SmallVector<Metadata *, 4> MDs; in intersect() local 882 MDs.push_back(MD); in intersect() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 71 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in hasMetadataOtherThanDebugLoc() local 72 GV->getAllMetadata(MDs); in hasMetadataOtherThanDebugLoc() 73 for (const auto &V : MDs) in hasMetadataOtherThanDebugLoc() 81 SmallVector<DIGlobalVariableExpression *, 1> MDs; in copyDebugLocMetadata() local 82 From->getDebugInfo(MDs); in copyDebugLocMetadata() 83 for (auto MD : MDs) in copyDebugLocMetadata()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Metadata.h | 143 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS() 144 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS() 905 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs); 907 ArrayRef<Metadata *> MDs); 909 ArrayRef<Metadata *> MDs); 911 ArrayRef<Metadata *> MDs); 1119 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, 1131 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) { 1132 return getImpl(Context, MDs, Uniqued); 1135 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { [all …]
|
D | GlobalObject.h | 129 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 130 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const; 151 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
|
D | Instruction.h | 216 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 218 getAllMetadataImpl(MDs); 224 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 226 getAllMetadataOtherThanDebugLocImpl(MDs);
|
/external/llvm/include/llvm/IR/ |
D | Metadata.h | 850 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs); 852 ArrayRef<Metadata *> MDs); 854 ArrayRef<Metadata *> MDs); 856 ArrayRef<Metadata *> MDs); 1062 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, 1074 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) { 1075 return getImpl(Context, MDs, Uniqued); 1077 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { 1078 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false); 1084 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) { [all …]
|
D | GlobalObject.h | 91 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 92 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const; 113 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
|
D | Instruction.h | 177 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 179 getAllMetadataImpl(MDs); 185 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 187 getAllMetadataOtherThanDebugLocImpl(MDs);
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Metadata.h | 872 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs); 874 ArrayRef<Metadata *> MDs); 876 ArrayRef<Metadata *> MDs); 878 ArrayRef<Metadata *> MDs); 1087 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, 1099 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) { 1100 return getImpl(Context, MDs, Uniqued); 1103 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { 1104 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false); 1110 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) { [all …]
|
D | GlobalObject.h | 94 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 95 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const; 116 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
|
D | Instruction.h | 191 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata() argument 193 getAllMetadataImpl(MDs); in getAllMetadata() 199 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadataOtherThanDebugLoc() argument 201 getAllMetadataOtherThanDebugLocImpl(MDs); in getAllMetadataOtherThanDebugLoc()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Metadata.cpp | 813 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument 817 MDTupleInfo::KeyTy Key(MDs); in getImpl() 827 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl() 902 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in concatenate() local 903 MDs.insert(B->op_begin(), B->op_end()); in concatenate() 907 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate() 914 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in intersect() local 916 MDs.remove_if([&](Metadata *MD) { return !is_contained(BSet, MD); }); in intersect() 920 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect() 1043 SmallVector<Metadata *, 4> MDs; in getMostGenericRange() local [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | StripSymbols.cpp | 355 SmallVector<MDNode *, 8> MDs; in runOnModule() local 358 MDs.push_back(NMD->getOperand(i)); in runOnModule() 364 for (SmallVector<MDNode *, 8>::iterator I = MDs.begin(), in runOnModule() 365 E = MDs.end(); I != E; ++I) { in runOnModule() 379 SmallVector<MDNode *, 8> MDs; in runOnModule() local 382 MDs.push_back(NMD->getOperand(i)); in runOnModule() 388 for (SmallVector<MDNode *, 8>::iterator I = MDs.begin(), in runOnModule() 389 E = MDs.end(); I != E; ++I) { in runOnModule()
|
/external/llvm/bindings/go/llvm/ |
D | IRBindings.cpp | 60 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMMDNode2() argument 63 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2() 66 LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMTemporaryMDNode() argument 69 ArrayRef<Metadata *>(unwrap(MDs), Count)) in LLVMTemporaryMDNode()
|
D | IRBindings.h | 43 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, 45 LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs,
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 66 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in ValueEnumerator() local 92 MDs.clear(); in ValueEnumerator() 93 I->getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator() 94 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator() 95 EnumerateMetadata(MDs[i].second); in ValueEnumerator() 443 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in incorporateFunction() local 444 I->getAllMetadataOtherThanDebugLoc(MDs); in incorporateFunction() 445 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in incorporateFunction() 446 MDNode *N = MDs[i].second; in incorporateFunction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopVersioningLICM.cpp | 118 Metadata *MDs[] = { in createStringMetadata() local 121 return MDNode::get(Context, MDs); in createStringMetadata() 127 SmallVector<Metadata *, 4> MDs(1); in addStringMetadataToLoop() local 133 MDs.push_back(Node); in addStringMetadataToLoop() 137 MDs.push_back(createStringMetadata(TheLoop, MDString, V)); in addStringMetadataToLoop() 140 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopVersioningLICM.cpp | 119 Metadata *MDs[] = { in createStringMetadata() local 122 return MDNode::get(Context, MDs); in createStringMetadata() 128 SmallVector<Metadata *, 4> MDs(1); in addStringMetadataToLoop() local 134 MDs.push_back(Node); in addStringMetadataToLoop() 138 MDs.push_back(createStringMetadata(TheLoop, MDString, V)); in addStringMetadataToLoop() 141 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Instruction.h | 154 void getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs)const{ in getAllMetadata() argument 156 getAllMetadataImpl(MDs); in getAllMetadata() 162 MDNode*> > &MDs) const { in getAllMetadataOtherThanDebugLoc() 164 getAllMetadataOtherThanDebugLocImpl(MDs); in getAllMetadataOtherThanDebugLoc()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 187 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in RemapInstruction() local 188 I->getAllMetadata(MDs); in RemapInstruction() 190 MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) { in RemapInstruction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/go/llvm/ |
D | IRBindings.cpp | 33 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMMDNode2() argument 36 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()
|