LLVM API Documentation

Classes | Public Types | Public Member Functions | Friends
llvm::NamedMDNode Class Reference

#include <Metadata.h>

Inheritance diagram for llvm::NamedMDNode:
Inheritance graph
[legend]
Collaboration diagram for llvm::NamedMDNode:
Collaboration graph
[legend]

List of all members.

Classes

class  op_iterator_impl

Public Types

typedef op_iterator_impl
< MDNode *, MDNode
op_iterator
typedef op_iterator_impl
< const MDNode *, MDNode
const_op_iterator

Public Member Functions

void eraseFromParent ()
void dropAllReferences ()
 dropAllReferences - Remove all uses and clear node vector.
 ~NamedMDNode ()
 ~NamedMDNode - Destroy NamedMDNode.
ModulegetParent ()
 getParent - Get the module that holds this named metadata collection.
const ModulegetParent () const
MDNodegetOperand (unsigned i) const
 getOperand - Return specified operand.
unsigned getNumOperands () const
 getNumOperands - Return the number of NamedMDNode operands.
void addOperand (MDNode *M)
 addOperand - Add metadata operand.
StringRef getName () const
 getName - Return a constant reference to this named metadata's name.
void print (raw_ostream &ROS) const
 print - Implement operator<< on NamedMDNode.
void dump () const
 dump() - Allow printing of NamedMDNodes from the debugger.
op_iterator op_begin ()
op_iterator op_end ()
const_op_iterator op_begin () const
const_op_iterator op_end () const
iterator_range< op_iteratoroperands ()
iterator_range< const_op_iteratoroperands () const

Friends

class SymbolTableListTraits< NamedMDNode, Module >
struct ilist_traits< NamedMDNode >
class LLVMContextImpl
class Module

Detailed Description

NamedMDNode - a tuple of MDNodes. Despite its name, a NamedMDNode isn't itself an MDNode. NamedMDNodes belong to modules, have names, and contain lists of MDNodes.

Definition at line 251 of file Metadata.h.


Member Typedef Documentation

Definition at line 342 of file Metadata.h.

typedef op_iterator_impl<MDNode*, MDNode> llvm::NamedMDNode::op_iterator

Definition at line 338 of file Metadata.h.


Constructor & Destructor Documentation

~NamedMDNode - Destroy NamedMDNode.

Definition at line 570 of file Metadata.cpp.

References dropAllReferences(), and getNMDOps().


Member Function Documentation

dropAllReferences - Remove all uses and clear node vector.

Definition at line 600 of file Metadata.cpp.

References llvm::SmallVectorImpl< T >::clear(), and getNMDOps().

Referenced by ~NamedMDNode().

void NamedMDNode::dump ( ) const

dump() - Allow printing of NamedMDNodes from the debugger.

Definition at line 2303 of file AsmWriter.cpp.

References llvm::dbgs(), and print().

eraseFromParent - Drop all references and remove the node from parent module.

Definition at line 595 of file Metadata.cpp.

References llvm::Module::eraseNamedMetadata(), and getParent().

Referenced by llvm::StripDebugInfo().

getName - Return a constant reference to this named metadata's name.

Definition at line 605 of file Metadata.cpp.

Referenced by llvm::CloneModule(), llvm::Module::eraseNamedMetadata(), llvm::AssemblyWriter::printNamedMDNode(), llvm::StripDebugInfo(), and WriteModuleMetadata().

getParent - Get the module that holds this named metadata collection.

Definition at line 314 of file Metadata.h.

Referenced by eraseFromParent(), and print().

Definition at line 315 of file Metadata.h.

Definition at line 339 of file Metadata.h.

Referenced by operands().

Definition at line 343 of file Metadata.h.

Definition at line 340 of file Metadata.h.

References getNumOperands().

Referenced by operands().

Definition at line 344 of file Metadata.h.

References getNumOperands().

Definition at line 349 of file Metadata.h.

References op_begin(), and op_end().

void NamedMDNode::print ( raw_ostream ROS) const

print - Implement operator<< on NamedMDNode.

Definition at line 2184 of file AsmWriter.cpp.

References getParent(), and llvm::AssemblyWriter::printNamedMDNode().

Referenced by dump().


Friends And Related Function Documentation

friend struct ilist_traits< NamedMDNode > [friend]

Definition at line 253 of file Metadata.h.

friend class LLVMContextImpl [friend]

Definition at line 254 of file Metadata.h.

friend class Module [friend]

Definition at line 255 of file Metadata.h.

friend class SymbolTableListTraits< NamedMDNode, Module > [friend]

Definition at line 252 of file Metadata.h.


The documentation for this class was generated from the following files: