/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.cpp | 379 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; local 381 MDs.clear(); 382 GV.getAllMetadata(MDs); 383 for (const auto &I : MDs) 396 MDs.clear(); 397 F.getAllMetadata(MDs); 398 for (const auto &I : MDs) 421 MDs.clear(); 422 I.getAllMetadataOtherThanDebugLoc(MDs); 423 for (unsigned i = 0, e = MDs [all...] |
H A D | ValueEnumerator.h | 69 std::vector<const Metadata *> MDs; member in class:llvm::ValueEnumerator 84 const Metadata *get(ArrayRef<const Metadata *> MDs) const { 86 assert(ID <= MDs.size() && "Expected valid ID"); 87 return MDs[ID - 1]; 163 unsigned numMDs() const { return MDs.size(); } 201 bool hasMDs() const { return NumModuleMDs < MDs.size(); } 205 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); 210 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings);
|
H A D | BitcodeWriter.cpp | 360 void writeMetadataRecords(ArrayRef<const Metadata *> MDs, 2007 ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record, 2009 if (MDs.empty()) 2016 for (const Metadata *MD : MDs) { 2149 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 2150 GO.getAllMetadata(MDs); 2151 for (const auto &I : MDs) { 2170 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 2173 MDs.clear(); 2174 I.getAllMetadataOtherThanDebugLoc(MDs); 2006 writeMetadataRecords( ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record, std::vector<unsigned> *MDAbbrevs, std::vector<uint64_t> *IndexPos) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ConstantMerge.cpp | 71 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 72 GV->getAllMetadata(MDs); 73 for (const auto &V : MDs) 81 SmallVector<DIGlobalVariableExpression *, 1> MDs; local 82 From->getDebugInfo(MDs); 83 for (auto MD : MDs)
|
H A D | DeadArgumentElimination.cpp | 243 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 244 Fn.getAllMetadata(MDs); 245 for (auto MD : MDs) 1074 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 1075 F->getAllMetadata(MDs); 1076 for (auto MD : MDs)
|
H A D | ThinLTOBitcodeWriter.cpp | 122 SmallVector<MDNode *, 1> MDs; local 123 GO.getMetadata(LLVMContext::MD_type, MDs); 126 for (auto MD : MDs) {
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | GlobalObject.h | 144 /// Appends all attachments with the given ID to \c MDs in insertion order. 146 /// leaves MDs unchanged. 148 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 149 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const; 167 /// Appends all attachments for the global to \c MDs, sorting by attachment 170 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
|
H A D | Metadata.h | 145 inline Metadata **unwrap(LLVMMetadataRef *MDs) { argument 146 return reinterpret_cast<Metadata**>(MDs); 915 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs); 917 ArrayRef<Metadata *> MDs); 919 ArrayRef<Metadata *> MDs); 921 ArrayRef<Metadata *> MDs); 1129 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, 1141 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument 1142 return getImpl(Context, MDs, Uniqued); 1145 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument 1152 getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1161 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1174 get(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1178 getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1182 getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1186 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument [all...] |
H A D | Instruction.h | 260 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 262 getAllMetadataImpl(MDs); 268 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 270 getAllMetadataOtherThanDebugLocImpl(MDs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Metadata.cpp | 814 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, 818 MDTupleInfo::KeyTy Key(MDs); 828 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), 903 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); 904 MDs.insert(B->op_begin(), B->op_end()); 908 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); 915 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); 917 MDs.remove_if([&](Metadata *MD) { return !is_contained(BSet, MD); }); 921 return getOrSelfReference(A->getContext(), MDs [all...] |
H A D | LLVMContextImpl.cpp | 186 SmallVector<Metadata *, 8> MDs(N->op_begin() + Offset, N->op_end()); 187 unsigned RawHash = calculateHash(MDs);
|
H A D | AsmWriter.cpp | 1055 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 1056 GO.getAllMetadata(MDs); 1057 for (auto &MD : MDs) 1080 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 1081 I.getAllMetadata(MDs); 1082 for (auto &MD : MDs) 2442 const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs, 3317 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 3318 GV->getAllMetadata(MDs); 3319 printMetadataAttachments(MDs, ", "); 3434 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 3535 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 4095 printMetadataAttachments( const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs, StringRef Separator) argument [all...] |
H A D | Verifier.cpp | 509 void verifyFunctionMetadata(ArrayRef<std::pair<unsigned, MDNode *>> MDs); 690 SmallVector<MDNode *, 1> MDs; local 691 GV.getMetadata(LLVMContext::MD_dbg, MDs); 692 for (auto *MD : MDs) { 1878 ArrayRef<std::pair<unsigned, MDNode *>> MDs) { 1879 for (const auto &Pair : MDs) { 2260 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 2261 F.getAllMetadata(MDs); 2262 assert(F.hasMetadata() != MDs.empty() && "Bit out-of-sync"); 2263 verifyFunctionMetadata(MDs); 1877 verifyFunctionMetadata( ArrayRef<std::pair<unsigned, MDNode *>> MDs) argument [all...] |
H A D | DebugInfoMetadata.cpp | 30 unsigned Column, ArrayRef<Metadata *> MDs, 32 : MDNode(C, DILocationKind, Storage, MDs) { 33 assert((MDs.size() == 1 || MDs.size() == 2) && 29 DILocation(LLVMContext &C, StorageType Storage, unsigned Line, unsigned Column, ArrayRef<Metadata *> MDs, bool ImplicitCode) argument
|
H A D | DebugInfo.cpp | 652 SmallVector<std::pair<unsigned, MDNode *>, 2> MDs; local 653 I.getAllMetadata(MDs); 654 for (auto Attachment : MDs)
|
H A D | Core.cpp | 1053 LLVMMetadataRef LLVMMDNodeInContext2(LLVMContextRef C, LLVMMetadataRef *MDs, 1055 return wrap(MDNode::get(*unwrap(C), ArrayRef<Metadata*>(unwrap(MDs), Count))); 1072 SmallVector<Metadata *, 8> MDs; 1091 MDs.push_back(MD); 1093 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs)));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CloneModule.cpp | 132 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; 133 I->getAllMetadata(MDs); 134 for (auto MD : MDs)
|
H A D | LoopUtils.cpp | 202 Metadata *MDs[] = { local 205 return MDNode::get(Context, MDs); 213 SmallVector<Metadata *, 4> MDs(1); 233 MDs.push_back(Node); 237 MDs.push_back(createStringMetadata(TheLoop, StringMD, V)); 240 MDNode *NewLoopID = MDNode::get(Context, MDs); 316 SmallVector<Metadata *, 8> MDs; local 317 MDs.push_back(nullptr); 342 MDs.push_back(Op); 359 MDs [all...] |
H A D | ValueMapper.cpp | 879 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 880 I->getAllMetadata(MDs); 881 for (const auto &MI : MDs) { 929 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; local 930 GO.getAllMetadata(MDs); 932 for (const auto &I : MDs)
|
H A D | CloneFunction.cpp | 143 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 144 OldFunc->getAllMetadata(MDs); 145 for (auto MD : MDs) {
|
H A D | InlineFunction.cpp | 1370 SmallVector<Metadata *, 4> MDs = {nullptr}; local 1376 MDs.push_back(inlineDebugLoc(DL, InlinedAt, Ctx, IANodes)); 1378 MDs.push_back(MD); 1381 MDNode *NewLoopID = MDNode::getDistinct(Ctx, MDs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopInfo.cpp | 1016 SmallVector<Metadata *, 4> MDs; 1020 MDs.push_back(TempNode.get()); 1037 MDs.push_back(Op); 1043 MDs.append(AddAttrs.begin(), AddAttrs.end()); 1045 MDNode *NewLoopID = MDNode::getDistinct(Context, MDs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Scalarizer.cpp | 422 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 423 Op->getAllMetadataOtherThanDebugLoc(MDs); 426 for (const auto &MD : MDs)
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 1356 SmallVector<Metadata *, 8> MDs; local 1357 MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands()); 1358 MDs.append(DstValue->op_begin(), DstValue->op_end()); 1359 MDs.append(SrcValue->op_begin(), SrcValue->op_end()); 1361 replaceDstValue(MDNode::get(DstM.getContext(), MDs));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | MetadataLoader.cpp | 514 SmallVector<MDNode *, 1> MDs; local 515 GV.getMetadata(LLVMContext::MD_dbg, MDs); 517 for (auto *MD : MDs) 2055 assert(!MD->isTemporary() && "should load MDs before attachments");
|