LLVM API Documentation

llvm::MetadataBase Class Reference

#include <Metadata.h>

Inheritance diagram for llvm::MetadataBase:
[legend]
Collaboration diagram for llvm::MetadataBase:
[legend]

List of all members.

Public Member Functions

virtual bool isNullValue () const

Static Public Member Functions

static bool classof (const MetadataBase *)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)

Protected Member Functions

 MetadataBase (const Type *Ty, unsigned scid)
void resizeOperands (unsigned NumOps)


Detailed Description

Definition at line 35 of file Metadata.h.


Constructor & Destructor Documentation

llvm::MetadataBase::MetadataBase ( const Type *  Ty,
unsigned  scid 
) [inline, protected]

Definition at line 42 of file Metadata.h.


Member Function Documentation

void MetadataBase::resizeOperands ( unsigned  NumOps  )  [protected]

resizeOperands - Metadata keeps track of other metadata uses using OperandList. Resize this list to hold anticipated number of metadata operands.

Definition at line 28 of file Metadata.cpp.

References llvm::User::allocHungoffUses(), llvm::User::getNumOperands(), llvm::User::NumOperands, llvm::User::OperandList, and llvm::Use::zap().

Referenced by llvm::NamedMDNode::addElement(), llvm::MDNode::MDNode(), and llvm::NamedMDNode::NamedMDNode().

virtual bool llvm::MetadataBase::isNullValue (  )  const [inline, virtual]

isNullValue - Return true if this is the value that would be returned by getNullValue. This always returns false because getNullValue will never produce metadata.

Reimplemented in llvm::MDNode, and llvm::NamedMDNode.

Definition at line 50 of file Metadata.h.

static bool llvm::MetadataBase::classof ( const MetadataBase *   )  [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:.

Definition at line 55 of file Metadata.h.

static bool llvm::MetadataBase::classof ( const Value *  V  )  [inline, static]


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