Home | History | Annotate | Download | only in IR

Lines Matching refs:NamedMDNode

48   NamedMDSymTab = new StringMap<NamedMDNode *>();
60 delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab);
281 /// getNamedMetadata - Return the first NamedMDNode in the module with the
282 /// specified name. This method returns null if a NamedMDNode with the
284 NamedMDNode *Module::getNamedMetadata(const Twine &Name) const {
287 return static_cast<StringMap<NamedMDNode*> *>(NamedMDSymTab)->lookup(NameRef);
291 /// with the specified name. This method returns a new NamedMDNode if a
292 /// NamedMDNode with the specified name is not found.
293 NamedMDNode *Module::getOrInsertNamedMetadata(StringRef Name) {
294 NamedMDNode *&NMD =
295 (*static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab))[Name];
297 NMD = new NamedMDNode(Name);
304 /// eraseNamedMetadata - Remove the given NamedMDNode from this module and
306 void Module::eraseNamedMetadata(NamedMDNode *NMD) {
307 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName());
314 const NamedMDNode *ModFlags = getModuleFlagsMetadata();
340 /// getModuleFlagsMetadata - Returns the NamedMDNode in the module that
343 NamedMDNode *Module::getModuleFlagsMetadata() const {
347 /// getOrInsertModuleFlagsMetadata - Returns the NamedMDNode in the module that
350 NamedMDNode *Module::getOrInsertModuleFlagsMetadata() {