LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::ConstantAsMetadata Class Reference

#include "llvm/IR/Metadata.h"

Inheritance diagram for llvm::ConstantAsMetadata:
Inheritance graph
[legend]

Public Member Functions

ConstantgetValue () const
 

Static Public Member Functions

static ConstantAsMetadataget (Constant *C)
 
static ConstantAsMetadatagetIfExists (Constant *C)
 
static bool classof (const Metadata *MD)
 

Friends

class ValueAsMetadata
 

Additional Inherited Members

 Active type of storage. More...

Detailed Description

Definition at line 521 of file Metadata.h.

Member Function Documentation

◆ classof()

static bool llvm::ConstantAsMetadata::classof ( const Metadata MD)
inlinestatic

Definition at line 540 of file Metadata.h.

References llvm::Metadata::getMetadataID().

◆ get()

static ConstantAsMetadata * llvm::ConstantAsMetadata::get ( Constant C)
inlinestatic

Definition at line 528 of file Metadata.h.

References llvm::CallingConv::C, and llvm::ValueAsMetadata::getConstant().

Referenced by llvm::GlobalObject::addTypeMetadata(), llvm::OpenMPIRBuilder::applySimd(), llvm::GlobalObject::copyMetadata(), createAccessTag(), llvm::DIBuilder::createBitFieldMemberType(), llvm::MDBuilder::createConstant(), llvm::DIBuilder::createInheritance(), llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(), llvm::OpenMPIRBuilder::createOffloadEntry(), createRoundingModeDecoration(), createSaturatedConversionDecoration(), createStringMetadata(), DisableAllLoopOptsOnLoop(), llvm::embedBufferInModule(), emitDXILVersionTupleMD(), emitShaderModelVersionMD(), emitValidatorVersionMD(), llvm::AAMDNodes::extendToTBAA(), llvm::hlsl::FrontendResource::FrontendResource(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getConstantOrNull(), getEntryPropAsMetadata(), getKeyFPValMD(), getKeyValMD(), llvm::MDNode::getMostGenericNoaliasAddrspace(), llvm::MDNode::getMostGenericRange(), llvm::offloading::getOffloadingEntryInitializer(), llvm::DIBuilder::getOrCreateSubrange(), getTagValueAsMetadata(), llvm::ValueAsMetadata::handleRAUW(), LLVMMDNodeInContext(), LLVMValueAsMetadata(), lowerPtrAnnotation(), parseAnnotation(), llvm::LoopVectorizeHints::setAlreadyVectorized(), setAssignmentTrackingModuleFlag(), llvm::GlobalObject::setVCallVisibilityMetadata(), llvm::AAMDNodes::shiftTBAAStruct(), llvm::OpenMPIRBuilder::unrollLoopPartial(), updateNVPTXMetadata(), llvm::UpgradeModuleFlags(), llvm::UpgradeTBAANode(), upgradeX86IntrinsicCall(), llvm::dxil::UAVResource::write(), llvm::dxil::ConstantBuffer::write(), llvm::dxil::ResourceBase::ExtendedProperties::write(), and llvm::dxil::ResourceBase::write().

◆ getIfExists()

static ConstantAsMetadata * llvm::ConstantAsMetadata::getIfExists ( Constant C)
inlinestatic

◆ getValue()

Constant * llvm::ConstantAsMetadata::getValue ( ) const
inline

Friends And Related Function Documentation

◆ ValueAsMetadata

friend class ValueAsMetadata
friend

Definition at line 522 of file Metadata.h.


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