Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceMetadata.cpp89 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() local
90 GV.getAllMetadata(MDs); in extractMetadataFromModule()
91 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule()
98 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() local
100 F.getAllMetadata(MDs); in extractMetadataFromModule()
101 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule()
108 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() local
109 I.getAllMetadata(MDs); in extractMetadataFromModule()
110 for (std::pair<unsigned, MDNode *> &MD : MDs) { in extractMetadataFromModule()
H A DReduceDIMetadata.cpp31 void identifyUninterestingMDNodes(Oracle &O, MDNodeList &MDs) { in identifyUninterestingMDNodes() argument
37 for (const auto &NMD : MDs) in identifyUninterestingMDNodes()
86 MDNodeList MDs; in extractDIMetadataFromModule() local
90 MDs.push_back(DC); in extractDIMetadataFromModule()
92 GV.getMetadata(llvm::LLVMContext::MD_dbg, MDs); in extractDIMetadataFromModule()
94 F.getMetadata(llvm::LLVMContext::MD_dbg, MDs); in extractDIMetadataFromModule()
97 MDs.push_back(DI); in extractDIMetadataFromModule()
99 identifyUninterestingMDNodes(O, MDs); in extractDIMetadataFromModule()
/openbsd/gnu/llvm/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.cpp428 MDs.clear(); in ValueEnumerator()
443 MDs.clear(); in ValueEnumerator()
484 MDs.clear(); in ValueEnumerator()
677 MDs.push_back(N); in EnumerateMetadata()
713 MDs.push_back(MD); in enumerateMetadataImpl()
796 if (MDs.empty()) in organizeMetadata()
820 MDs.swap(OldMDs); in organizeMetadata()
824 MDs.push_back(MD); in organizeMetadata()
838 for (unsigned I = MDs.size(), E = Order.size(), ID = MDs.size(); I != E; in organizeMetadata()
848 ID = MDs.size(); in organizeMetadata()
[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,
1738 if (MDs.empty()) in writeMetadataRecords()
1745 for (const Metadata *MD : MDs) { in writeMetadataRecords()
1859 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in writeFunctionMetadataAttachment() local
1860 F.getAllMetadata(MDs); in writeFunctionMetadataAttachment()
1861 if (!MDs.empty()) { in writeFunctionMetadataAttachment()
1862 for (const auto &I : MDs) { in writeFunctionMetadataAttachment()
1872 MDs.clear(); in writeFunctionMetadataAttachment()
1873 I.getAllMetadataOtherThanDebugLoc(MDs); in writeFunctionMetadataAttachment()
1876 if (MDs.empty()) in writeFunctionMetadataAttachment()
[all …]
/openbsd/gnu/llvm/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp390 MDs.clear(); in ValueEnumerator()
405 MDs.clear(); in ValueEnumerator()
446 MDs.clear(); in ValueEnumerator()
673 MDs.push_back(N); in EnumerateMetadata()
708 MDs.push_back(MD); in enumerateMetadataImpl()
791 if (MDs.empty()) in organizeMetadata()
815 MDs.swap(OldMDs); in organizeMetadata()
819 MDs.push_back(MD); in organizeMetadata()
833 for (unsigned I = MDs.size(), E = Order.size(), ID = MDs.size(); I != E; in organizeMetadata()
843 ID = MDs.size(); in organizeMetadata()
[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()
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp71 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()
H A DDeadArgumentElimination.cpp239 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in deleteDeadVarargs() local
240 F.getAllMetadata(MDs); in deleteDeadVarargs()
241 for (auto [KindID, Node] : MDs) in deleteDeadVarargs()
1063 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in removeDeadStuffFromFunction() local
1064 F->getAllMetadata(MDs); in removeDeadStuffFromFunction()
1065 for (auto [KindID, Node] : MDs) in removeDeadStuffFromFunction()
H A DThinLTOBitcodeWriter.cpp152 SmallVector<MDNode *, 1> MDs; in promoteTypeIds() local
153 GO.getMetadata(LLVMContext::MD_type, MDs); in promoteTypeIds()
156 for (auto *MD : MDs) { in promoteTypeIds()
/openbsd/gnu/llvm/llvm/lib/IR/
H A DMetadata.cpp925 MDTupleInfo::KeyTy Key(MDs); in getImpl()
1051 MDs.insert(MDOp); in getMostGenericAliasScope()
1058 MDs.insert(MDOp); in getMostGenericAliasScope()
1060 return MDs.empty() ? nullptr in getMostGenericAliasScope()
1177 SmallVector<Metadata *, 4> MDs; in getMostGenericRange() local
1178 MDs.reserve(EndPoints.size()); in getMostGenericRange()
1321 Info.getAll(MDs); in getAllMetadata()
1552 Other->getAllMetadata(MDs); in copyMetadata()
1553 for (auto &MD : MDs) { in copyMetadata()
1644 SmallVector<MDNode *, 1> MDs; in getDebugInfo() local
[all …]
H A DIntrinsicInst.cpp145 SmallVector<ValueAsMetadata *, 4> MDs; in replaceVariableLocationOp() local
148 MDs.push_back(VMD == *OldIt ? NewOperand : getAsMetadata(VMD)); in replaceVariableLocationOp()
150 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in replaceVariableLocationOp()
162 SmallVector<ValueAsMetadata *, 4> MDs; in replaceVariableLocationOp() local
165 MDs.push_back(Idx == OpIdx ? NewOperand in replaceVariableLocationOp()
168 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in replaceVariableLocationOp()
179 SmallVector<ValueAsMetadata *, 4> MDs; in addVariableLocationOps() local
181 MDs.push_back(getAsMetadata(VMD)); in addVariableLocationOps()
183 MDs.push_back(getAsMetadata(VMD)); in addVariableLocationOps()
185 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in addVariableLocationOps()
H A DLLVMContextImpl.cpp196 SmallVector<Metadata *, 8> MDs(drop_begin(N->operands(), Offset)); in calculateHash() local
197 unsigned RawHash = calculateHash(MDs); in calculateHash()
H A DAsmWriter.cpp1096 GO.getAllMetadata(MDs); in processGlobalObjectMetadata()
1097 for (auto &MD : MDs) in processGlobalObjectMetadata()
1121 I.getAllMetadata(MDs); in processInstructionMetadata()
1122 for (auto &MD : MDs) in processInstructionMetadata()
3654 GV->getAllMetadata(MDs); in printGlobal()
3655 printMetadataAttachments(MDs, ", "); in printGlobal()
3798 F->getAllMetadata(MDs); in printFunction()
3799 printMetadataAttachments(MDs, " "); in printFunction()
3900 F->getAllMetadata(MDs); in printFunction()
4472 if (MDs.empty()) in printMetadataAttachments()
[all …]
H A DVerifier.cpp781 SmallVector<MDNode *, 1> MDs; in visitGlobalVariable() local
782 GV.getMetadata(LLVMContext::MD_dbg, MDs); in visitGlobalVariable()
783 for (auto *MD : MDs) { in visitGlobalVariable()
2158 for (const auto &Pair : MDs) { in verifyFunctionMetadata()
2614 F.getAllMetadata(MDs); in visitFunction()
2616 verifyFunctionMetadata(MDs); in visitFunction()
2630 MDs.empty() ? nullptr : MDs.front().second); in visitFunction()
2632 for (const auto &I : MDs) { in visitFunction()
2665 for (const auto &I : MDs) { in visitFunction()
4900 I.getAllMetadata(MDs); in visitInstruction()
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp128 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in CloneModule() local
129 G.getAllMetadata(MDs); in CloneModule()
130 for (auto MD : MDs) in CloneModule()
155 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in CloneModule() local
156 I.getAllMetadata(MDs); in CloneModule()
157 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.cpp939 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in remapInstruction() local
940 I->getAllMetadata(MDs); in remapInstruction()
941 for (const auto &MI : MDs) { in remapInstruction()
990 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in remapGlobalObjectMetadata() local
991 GO.getAllMetadata(MDs); in remapGlobalObjectMetadata()
993 for (const auto &I : MDs) in remapGlobalObjectMetadata()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DMetadata.h146 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS()
147 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS()
1357 return getImpl(Context, MDs, Uniqued);
1368 return getImpl(Context, MDs, Distinct);
1377 ArrayRef<Metadata *> MDs) {
1378 return TempMDTuple(getImpl(Context, MDs, Temporary));
1400 return MDTuple::get(Context, MDs);
1404 return MDTuple::getIfExists(Context, MDs);
1408 return MDTuple::getDistinct(Context, MDs);
1412 ArrayRef<Metadata *> MDs) {
[all …]
H A DInstruction.h291 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
293 getAllMetadataImpl(MDs);
299 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
300 Value::getAllMetadata(MDs);
H A DValue.h573 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
574 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
582 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
/openbsd/gnu/llvm/llvm/lib/Target/DirectX/
H A DDXILResource.cpp376 SmallVector<Metadata *> MDs; in write() local
378 MDs.emplace_back(Res.write()); in write()
384 return MDNode::get(M.getContext(), MDs); in write()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DLoopInfo.cpp1131 SmallVector<Metadata *, 4> MDs; in makePostTransformationMetadata() local
1134 MDs.push_back(nullptr); in makePostTransformationMetadata()
1151 MDs.push_back(Op); in makePostTransformationMetadata()
1157 MDs.append(AddAttrs.begin(), AddAttrs.end()); in makePostTransformationMetadata()
1159 MDNode *NewLoopID = MDNode::getDistinct(Context, MDs); in makePostTransformationMetadata()
/openbsd/gnu/llvm/llvm/tools/llvm-reduce/
H A DReducerWorkItem.cpp599 SmallVector<std::pair<unsigned, MDNode *>> MDs; in computeIRComplexityScoreImpl() local
645 I.getAllMetadata(MDs); in computeIRComplexityScoreImpl()
646 Score += MDs.size(); in computeIRComplexityScoreImpl()
647 MDs.clear(); in computeIRComplexityScoreImpl()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp472 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in transferMetadataAndIRFlags() local
473 Op->getAllMetadataOtherThanDebugLoc(MDs); in transferMetadataAndIRFlags()
476 for (const auto &MD : MDs) in transferMetadataAndIRFlags()

12