LLVM API Documentation
#include <Metadata.h>
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) |
Definition at line 35 of file Metadata.h.
Definition at line 42 of file Metadata.h.
| 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.
Reimplemented from llvm::User.
Reimplemented in llvm::MDString, llvm::MDNode, and llvm::NamedMDNode.
Definition at line 56 of file Metadata.h.
References llvm::Value::getValueID(), llvm::Value::MDNodeVal, llvm::Value::MDStringVal, and llvm::Value::NamedMDNodeVal.