LLVM
15.0.0git
|
#include "llvm/IR/Metadata.h"
Public Member Functions | |
Constant * | getValue () const |
![]() | |
Value * | getValue () const |
Type * | getType () const |
LLVMContext & | getContext () const |
SmallVector< Metadata * > | getAllArgListUsers () |
![]() | |
unsigned | getMetadataID () const |
void | dump () const |
User-friendly dump. More... | |
void | dump (const Module *M) const |
void | print (raw_ostream &OS, const Module *M=nullptr, bool IsForDebug=false) const |
Print. More... | |
void | print (raw_ostream &OS, ModuleSlotTracker &MST, const Module *M=nullptr, bool IsForDebug=false) const |
void | printAsOperand (raw_ostream &OS, const Module *M=nullptr) const |
Print as operand. More... | |
void | printAsOperand (raw_ostream &OS, ModuleSlotTracker &MST, const Module *M=nullptr) const |
Static Public Member Functions | |
static ConstantAsMetadata * | get (Constant *C) |
static ConstantAsMetadata * | getIfExists (Constant *C) |
static bool | classof (const Metadata *MD) |
![]() | |
static ValueAsMetadata * | get (Value *V) |
static ConstantAsMetadata * | getConstant (Value *C) |
static LocalAsMetadata * | getLocal (Value *Local) |
static ValueAsMetadata * | getIfExists (Value *V) |
static ConstantAsMetadata * | getConstantIfExists (Value *C) |
static LocalAsMetadata * | getLocalIfExists (Value *Local) |
static void | handleDeletion (Value *V) |
static void | handleRAUW (Value *From, Value *To) |
static bool | classof (const Metadata *MD) |
Friends | |
class | ValueAsMetadata |
Additional Inherited Members | |
![]() | |
enum | MetadataKind |
![]() | |
enum | StorageType { Uniqued, Distinct, Temporary } |
Active type of storage. More... | |
![]() | |
ValueAsMetadata (unsigned ID, Value *V) | |
~ValueAsMetadata ()=default | |
void | replaceAllUsesWith (Metadata *MD) |
Handle collisions after Value::replaceAllUsesWith(). More... | |
![]() | |
Metadata (unsigned ID, StorageType Storage) | |
~Metadata ()=default | |
void | handleChangedOperand (void *, Metadata *) |
Default handling of a changed operand, which asserts. More... | |
![]() | |
unsigned char | Storage: 7 |
Storage flag for non-uniqued, otherwise unowned, metadata. More... | |
unsigned char | SubclassData1: 1 |
unsigned short | SubclassData16 = 0 |
unsigned | SubclassData32 = 0 |
Definition at line 413 of file Metadata.h.
Definition at line 432 of file Metadata.h.
References llvm::Metadata::getMetadataID().
|
inlinestatic |
Definition at line 420 of file Metadata.h.
References llvm::ValueAsMetadata::getConstant().
Referenced by llvm::Module::addModuleFlag(), llvm::GlobalObject::addTypeMetadata(), llvm::OpenMPIRBuilder::applySimd(), llvm::GlobalObject::copyMetadata(), createAccessTag(), llvm::DIBuilder::createBitFieldMemberType(), llvm::MDBuilder::createConstant(), llvm::DIBuilder::createInheritance(), createStringMetadata(), DisableAllLoopOptsOnLoop(), llvm::AAMDNodes::extendToTBAA(), foldCtpop(), foldCttzCtlz(), getConstantOrNull(), getKeyFPValMD(), getKeyValMD(), llvm::MDNode::getMostGenericRange(), llvm::DIBuilder::getOrCreateSubrange(), llvm::ValueAsMetadata::handleRAUW(), llvm::ARMTTIImpl::instCombineIntrinsic(), LLVMMDNodeInContext(), LLVMValueAsMetadata(), llvm::LoopVectorizeHints::setAlreadyVectorized(), llvm::GlobalObject::setVCallVisibilityMetadata(), llvm::AAMDNodes::shiftTBAAStruct(), Uint32ToConstMD(), llvm::OpenMPIRBuilder::unrollLoopPartial(), llvm::UpgradeIntrinsicCall(), llvm::UpgradeModuleFlags(), and llvm::UpgradeTBAANode().
|
inlinestatic |
Definition at line 424 of file Metadata.h.
References llvm::ValueAsMetadata::getConstantIfExists().
|
inline |
Definition at line 428 of file Metadata.h.
References llvm::ValueAsMetadata::getValue().
Referenced by getSummaryFromMD(), llvm::MDNodeKeyImpl< DISubrange >::isKeyOf(), and wrapConstantAsMetadata().
|
friend |
Definition at line 414 of file Metadata.h.