Home
last modified time | relevance | path

Searched refs:MDs (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.cpp426 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
428 MDs.clear(); in ValueEnumerator()
429 GV.getAllMetadata(MDs); in ValueEnumerator()
430 for (const auto &I : MDs) in ValueEnumerator()
443 MDs.clear(); in ValueEnumerator()
444 F.getAllMetadata(MDs); in ValueEnumerator()
445 for (const auto &I : MDs) in ValueEnumerator()
484 MDs.clear(); in ValueEnumerator()
485 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
486 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
[all …]
H A DDXILValueEnumerator.h71 std::vector<const Metadata *> MDs; variable
86 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
88 assert(ID <= MDs.size() && "Expected valid ID"); in get()
89 return MDs[ID - 1]; in get()
163 unsigned numMDs() const { return MDs.size(); } in numMDs()
200 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs()
204 return ArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings()
209 return ArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
H A DDXILBitcodeWriter.cpp321 void writeMetadataRecords(ArrayRef<const Metadata *> MDs,
1728 void DXILBitcodeWriter::writeMetadataRecords(ArrayRef<const Metadata *> MDs, in writeMetadataRecords() argument
1732 if (MDs.empty()) in writeMetadataRecords()
1739 for (const Metadata *MD : MDs) { in writeMetadataRecords()
1857 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in writeFunctionMetadataAttachment() local
1858 F.getAllMetadata(MDs); in writeFunctionMetadataAttachment()
1859 if (!MDs.empty()) { in writeFunctionMetadataAttachment()
1860 for (const auto &I : MDs) { in writeFunctionMetadataAttachment()
1870 MDs.clear(); in writeFunctionMetadataAttachment()
1871 I.getAllMetadataOtherThanDebugLoc(MDs); in writeFunctionMetadataAttachment()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp402 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
404 MDs.clear(); in ValueEnumerator()
405 GV.getAllMetadata(MDs); in ValueEnumerator()
406 for (const auto &I : MDs) in ValueEnumerator()
419 MDs.clear(); in ValueEnumerator()
420 F.getAllMetadata(MDs); in ValueEnumerator()
421 for (const auto &I : MDs) in ValueEnumerator()
483 MDs.clear(); in ValueEnumerator()
484 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
485 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
[all …]
H A DValueEnumerator.h68 std::vector<const Metadata *> MDs; variable
83 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
85 assert(ID <= MDs.size() && "Expected valid ID"); in get()
86 return MDs[ID - 1]; in get()
162 unsigned numMDs() const { return MDs.size(); } in numMDs()
200 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs()
204 return ArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings()
209 return ArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp70 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in hasMetadataOtherThanDebugLoc() local
71 GV->getAllMetadata(MDs); in hasMetadataOtherThanDebugLoc()
72 for (const auto &V : MDs) in hasMetadataOtherThanDebugLoc()
80 SmallVector<DIGlobalVariableExpression *, 1> MDs; in copyDebugLocMetadata() local
81 From->getDebugInfo(MDs); in copyDebugLocMetadata()
82 for (auto *MD : MDs) in copyDebugLocMetadata()
H A DDeadArgumentElimination.cpp246 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in deleteDeadVarargs() local
247 F.getAllMetadata(MDs); in deleteDeadVarargs()
248 for (auto [KindID, Node] : MDs) in deleteDeadVarargs()
1078 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in removeDeadStuffFromFunction() local
1079 F->getAllMetadata(MDs); in removeDeadStuffFromFunction()
1080 for (auto [KindID, Node] : MDs) in removeDeadStuffFromFunction()
H A DThinLTOBitcodeWriter.cpp158 SmallVector<MDNode *, 1> MDs; in promoteTypeIds() local
159 GO.getMetadata(LLVMContext::MD_type, MDs); in promoteTypeIds()
162 for (auto *MD : MDs) { in promoteTypeIds()
H A DMergeFunctions.cpp718 SmallVector<MDNode *, 4> MDs; in copyMetadataIfPresent() local
719 From->getMetadata(Kind, MDs); in copyMetadataIfPresent()
720 for (MDNode *MD : MDs) in copyMetadataIfPresent()
H A DExpandVariadics.cpp573 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in deriveFixedArityReplacement() local
574 F.getAllMetadata(MDs); in deriveFixedArityReplacement()
575 for (auto [KindID, Node] : MDs) in deriveFixedArityReplacement()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp134 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in CloneModule() local
135 G.getAllMetadata(MDs); in CloneModule()
136 for (auto MD : MDs) in CloneModule()
161 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in CloneModule() local
162 I.getAllMetadata(MDs); in CloneModule()
163 for (auto MD : MDs) in CloneModule()
H A DLoopUtils.cpp205 Metadata *MDs[] = { in createStringMetadata() local
208 return MDNode::get(Context, MDs); in createStringMetadata()
216 SmallVector<Metadata *, 4> MDs(1); in addStringMetadataToLoop() local
236 MDs.push_back(Node); in addStringMetadataToLoop()
240 MDs.push_back(createStringMetadata(TheLoop, StringMD, V)); in addStringMetadataToLoop()
243 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop()
277 SmallVector<Metadata *, 8> MDs; in makeFollowupLoopID() local
278 MDs.push_back(nullptr); in makeFollowupLoopID()
303 MDs.push_back(Op); in makeFollowupLoopID()
320 MDs.push_back(Option.get()); in makeFollowupLoopID()
[all …]
H A DValueMapper.cpp996 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in remapInstruction() local
997 I->getAllMetadata(MDs); in remapInstruction()
998 for (const auto &MI : MDs) { in remapInstruction()
1047 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in remapGlobalObjectMetadata() local
1048 GO.getAllMetadata(MDs); in remapGlobalObjectMetadata()
1050 for (const auto &I : MDs) in remapGlobalObjectMetadata()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMetadata.cpp1024 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument
1028 MDTupleInfo::KeyTy Key(MDs); in getImpl()
1038 return storeImpl(new (MDs.size(), Storage) in getImpl()
1039 MDTuple(Context, Storage, Hash, MDs), in getImpl()
1114 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in concatenate() local
1115 MDs.insert(B->op_begin(), B->op_end()); in concatenate()
1119 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate()
1126 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in intersect() local
1128 MDs.remove_if([&](Metadata *MD) { return !BSet.count(MD); }); in intersect()
1132 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect()
[all …]
H A DDebugProgramInstruction.cpp313 SmallVector<ValueAsMetadata *, 4> MDs; in replaceVariableLocationOp() local
316 MDs.push_back(VMD == *OldIt ? NewOperand : getAsMetadata(VMD)); in replaceVariableLocationOp()
317 setRawLocation(DIArgList::get(getVariableLocationOp(0)->getContext(), MDs)); in replaceVariableLocationOp()
331 SmallVector<ValueAsMetadata *, 4> MDs; in replaceVariableLocationOp() local
334 MDs.push_back(Idx == OpIdx ? NewOperand in replaceVariableLocationOp()
337 setRawLocation(DIArgList::get(getVariableLocationOp(0)->getContext(), MDs)); in replaceVariableLocationOp()
348 SmallVector<ValueAsMetadata *, 4> MDs; in addVariableLocationOps() local
350 MDs.push_back(getAsMetadata(VMD)); in addVariableLocationOps()
352 MDs.push_back(getAsMetadata(VMD)); in addVariableLocationOps()
353 setRawLocation(DIArgList::get(getVariableLocationOp(0)->getContext(), MDs)); in addVariableLocationOps()
H A DIntrinsicInst.cpp155 SmallVector<ValueAsMetadata *, 4> MDs; in replaceVariableLocationOp() local
158 MDs.push_back(VMD == *OldIt ? NewOperand : getAsMetadata(VMD)); in replaceVariableLocationOp()
160 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in replaceVariableLocationOp()
172 SmallVector<ValueAsMetadata *, 4> MDs; in replaceVariableLocationOp() local
175 MDs.push_back(Idx == OpIdx ? NewOperand in replaceVariableLocationOp()
178 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in replaceVariableLocationOp()
189 SmallVector<ValueAsMetadata *, 4> MDs; in addVariableLocationOps() local
191 MDs.push_back(getAsMetadata(VMD)); in addVariableLocationOps()
193 MDs.push_back(getAsMetadata(VMD)); in addVariableLocationOps()
195 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in addVariableLocationOps()
H A DLLVMContextImpl.cpp203 SmallVector<Metadata *, 8> MDs(drop_begin(N->operands(), Offset)); in calculateHash() local
204 unsigned RawHash = calculateHash(MDs); in calculateHash()
H A DAsmWriter.cpp1130 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in processGlobalObjectMetadata() local
1131 GO.getAllMetadata(MDs); in processGlobalObjectMetadata()
1132 for (auto &MD : MDs) in processGlobalObjectMetadata()
1180 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in processInstructionMetadata() local
1181 I.getAllMetadata(MDs); in processInstructionMetadata()
1182 for (auto &MD : MDs) in processInstructionMetadata()
2786 const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs,
3834 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in printGlobal() local
3835 GV->getAllMetadata(MDs); in printGlobal()
3836 printMetadataAttachments(MDs, ", "); in printGlobal()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMetadata.h147 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS()
148 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS()
1216 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
1218 ArrayRef<Metadata *> MDs);
1220 ArrayRef<Metadata *> MDs);
1222 ArrayRef<Metadata *> MDs);
1487 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1500 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1501 return getImpl(Context, MDs, Uniqued);
1504 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
H A DInstruction.h399 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
401 getAllMetadataImpl(MDs);
407 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
408 Value::getAllMetadata(MDs);
H A DValue.h573 /// Appends all attachments with the given ID to \c MDs in insertion order.
575 /// leaves MDs unchanged.
577 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
578 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
581 /// Appends all metadata attached to this value to \c MDs, sorting by
586 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp203 SmallVector<Metadata *> MDs; in parseAnnotation() local
242 MDs.push_back(MDNode::get(Ctx, MDsItem)); in parseAnnotation()
244 return Pos == static_cast<int>(Anno.length()) ? MDs in parseAnnotation()
263 SmallVector<Metadata *> MDs = parseAnnotation(II, Anno, Ctx, Int32Ty); in lowerPtrAnnotation() local
269 if (MDs.size() == 0) { in lowerPtrAnnotation()
272 MDs.push_back(MDNode::get(Ctx, {UserSemantic, MDString::get(Ctx, Anno)})); in lowerPtrAnnotation()
280 {PtrArg, MetadataAsValue::get(Ctx, MDNode::get(Ctx, MDs))}); in lowerPtrAnnotation()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResource.cpp325 SmallVector<Metadata *> MDs; in write() local
327 MDs.emplace_back(Res.write()); in write()
333 return MDNode::get(M.getContext(), MDs); in write()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopInfo.cpp1163 SmallVector<Metadata *, 4> MDs; in makePostTransformationMetadata() local
1166 MDs.push_back(nullptr); in makePostTransformationMetadata()
1183 MDs.push_back(Op); in makePostTransformationMetadata()
1189 MDs.append(AddAttrs.begin(), AddAttrs.end()); in makePostTransformationMetadata()
1191 MDNode *NewLoopID = MDNode::getDistinct(Context, MDs); in makePostTransformationMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp515 SmallVector<MDNode *, 1> MDs; in upgradeCUVariables() local
516 GV.getMetadata(LLVMContext::MD_dbg, MDs); in upgradeCUVariables()
518 for (auto *MD : MDs) in upgradeCUVariables()
590 SmallVector<Metadata *> MDs(RetainedNodes.begin(), in upgradeCULocals() local
592 MDs.append(I->second); in upgradeCULocals()
593 SP->replaceRetainedNodes(MDNode::get(Context, MDs)); in upgradeCULocals()

12