/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.cpp | 397 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; local 399 MDs.clear(); 400 GV.getAllMetadata(MDs); 401 for (const auto &I : MDs) 414 MDs.clear(); 415 F.getAllMetadata(MDs); 416 for (const auto &I : MDs) 441 MDs.clear(); 442 I.getAllMetadataOtherThanDebugLoc(MDs); 443 for (unsigned i = 0, e = MDs [all...] |
H A D | ValueEnumerator.h | 67 std::vector<const Metadata *> MDs; member in class:llvm::ValueEnumerator 82 const Metadata *get(ArrayRef<const Metadata *> MDs) const { 84 assert(ID <= MDs.size() && "Expected valid ID"); 85 return MDs[ID - 1]; 161 unsigned numMDs() const { return MDs.size(); } 199 bool hasMDs() const { return NumModuleMDs < MDs.size(); } 203 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); 208 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings);
|
H A D | BitcodeWriter.cpp | 359 void writeMetadataRecords(ArrayRef<const Metadata *> MDs, 2046 ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record, 2048 if (MDs.empty()) 2055 for (const Metadata *MD : MDs) { 2188 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 2189 GO.getAllMetadata(MDs); 2190 for (const auto &I : MDs) { 2209 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 2212 MDs.clear(); 2213 I.getAllMetadataOtherThanDebugLoc(MDs); 2045 writeMetadataRecords( ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record, std::vector<unsigned> *MDAbbrevs, std::vector<uint64_t> *IndexPos) argument [all...] |
/freebsd-13-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 | 240 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 241 Fn.getAllMetadata(MDs); 242 for (auto MD : MDs) 1073 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 1074 F->getAllMetadata(MDs); 1075 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) {
|
H A D | Attributor.cpp | 1340 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; 1341 F.getAllMetadata(MDs); 1342 for (auto MDIt : MDs)
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | GlobalObject.h | 150 /// Appends all attachments with the given ID to \c MDs in insertion order. 152 /// leaves MDs unchanged. 154 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 155 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const; 173 /// Appends all attachments for the global to \c MDs, sorting by attachment 176 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); 913 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs); 915 ArrayRef<Metadata *> MDs); 917 ArrayRef<Metadata *> MDs); 919 ArrayRef<Metadata *> MDs); 1127 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, 1139 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument 1140 return getImpl(Context, MDs, Uniqued); 1143 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument 1150 getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1159 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1172 get(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1176 getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1180 getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument 1184 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument [all...] |
H A D | Instruction.h | 295 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 297 getAllMetadataImpl(MDs); 303 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 305 getAllMetadataOtherThanDebugLocImpl(MDs);
|
/freebsd-13-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 !BSet.count(MD); }); 921 return getOrSelfReference(A->getContext(), MDs [all...] |
H A D | LLVMContextImpl.cpp | 174 SmallVector<Metadata *, 8> MDs(N->op_begin() + Offset, N->op_end()); 175 unsigned RawHash = calculateHash(MDs);
|
H A D | AsmWriter.cpp | 1087 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 1088 GO.getAllMetadata(MDs); 1089 for (auto &MD : MDs) 1112 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 1113 I.getAllMetadata(MDs); 1114 for (auto &MD : MDs) 2522 const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs, 3441 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 3442 GV->getAllMetadata(MDs); 3443 printMetadataAttachments(MDs, ", "); 3558 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 3659 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 4221 printMetadataAttachments( const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs, StringRef Separator) argument [all...] |
H A D | Verifier.cpp | 512 void verifyFunctionMetadata(ArrayRef<std::pair<unsigned, MDNode *>> MDs); 691 SmallVector<MDNode *, 1> MDs; local 692 GV.getMetadata(LLVMContext::MD_dbg, MDs); 693 for (auto *MD : MDs) { 1938 ArrayRef<std::pair<unsigned, MDNode *>> MDs) { 1939 for (const auto &Pair : MDs) { 2334 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 2335 F.getAllMetadata(MDs); 2336 assert(F.hasMetadata() != MDs.empty() && "Bit out-of-sync"); 2337 verifyFunctionMetadata(MDs); 1937 verifyFunctionMetadata( ArrayRef<std::pair<unsigned, MDNode *>> MDs) argument 4378 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local [all...] |
H A D | DebugInfo.cpp | 273 SmallVector<Metadata *, 4> MDs = {nullptr}; local 279 MDs.push_back(NewDL); 281 MDs.push_back(MD); 284 MDNode *NewLoopID = MDNode::getDistinct(OrigLoopID->getContext(), MDs);
|
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 | Core.cpp | 1062 LLVMMetadataRef LLVMMDNodeInContext2(LLVMContextRef C, LLVMMetadataRef *MDs, 1064 return wrap(MDNode::get(*unwrap(C), ArrayRef<Metadata*>(unwrap(MDs), Count))); 1081 SmallVector<Metadata *, 8> MDs; 1100 MDs.push_back(MD); 1102 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs)));
|
/freebsd-13-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 | 218 Metadata *MDs[] = { local 221 return MDNode::get(Context, MDs); 229 SmallVector<Metadata *, 4> MDs(1); 249 MDs.push_back(Node); 253 MDs.push_back(createStringMetadata(TheLoop, StringMD, V)); 256 MDNode *NewLoopID = MDNode::get(Context, MDs); 332 SmallVector<Metadata *, 8> MDs; local 333 MDs.push_back(nullptr); 358 MDs.push_back(Op); 375 MDs [all...] |
H A D | ValueMapper.cpp | 878 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 879 I->getAllMetadata(MDs); 880 for (const auto &MI : MDs) { 928 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; local 929 GO.getAllMetadata(MDs); 931 for (const auto &I : MDs)
|
H A D | CloneFunction.cpp | 140 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 141 OldFunc->getAllMetadata(MDs); 142 for (auto MD : MDs) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopInfo.cpp | 1017 SmallVector<Metadata *, 4> MDs; 1021 MDs.push_back(TempNode.get()); 1038 MDs.push_back(Op); 1044 MDs.append(AddAttrs.begin(), AddAttrs.end()); 1046 MDNode *NewLoopID = MDNode::getDistinct(Context, MDs);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 1360 SmallVector<Metadata *, 8> MDs; local 1361 MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands()); 1362 MDs.append(DstValue->op_begin(), DstValue->op_end()); 1363 MDs.append(SrcValue->op_begin(), SrcValue->op_end()); 1365 replaceDstValue(MDNode::get(DstM.getContext(), MDs));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Scalarizer.cpp | 427 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local 428 Op->getAllMetadataOtherThanDebugLoc(MDs); 431 for (const auto &MD : MDs)
|
/freebsd-13-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) 2091 assert(!MD->isTemporary() && "should load MDs before attachments");
|