Movatterモバイル変換


[0]ホーム

URL:


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

Macro.More...

#include "llvm/IR/DebugInfoMetadata.h"

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

Public Member Functions

 DEFINE_MDNODE_GET (DIMacro,(unsignedMIType,unsignedLine,StringRefName,StringRefValue=""),(MIType,Line,Name,Value)) DEFINE_MDNODE_GET(DIMacro
 
unsignedunsignedMDStringMDStringValue TempDIMacro clone ()const
 
unsigned getLine ()const
 
StringRef getName ()const
 
StringRef getValue ()const
 
MDStringgetRawName ()const
 
MDStringgetRawValue ()const
 
- Public Member Functions inherited fromllvm::DIMacroNode
unsigned getMacinfoType ()const
 
- Public Member Functions inherited fromllvm::MDNode
 MDNode (constMDNode &)=delete
 
void operator= (constMDNode &)=delete
 
void * operator new (size_t)=delete
 
TempMDNode clone ()const
 Create a (temporary) clone of this.
 
LLVMContextgetContext ()const
 
void replaceOperandWith (unsignedI,Metadata *New)
 Replace a specific operand.
 
bool isResolved ()const
 Check if node is fully resolved.
 
bool isUniqued ()const
 
bool isDistinct ()const
 
bool isTemporary ()const
 
bool isReplaceable ()const
 
bool isAlwaysReplaceable ()const
 
unsigned getNumTemporaryUses ()const
 
void replaceAllUsesWith (Metadata *MD)
 RAUW a temporary.
 
void resolveCycles ()
 Resolve cycles.
 
void resolve ()
 Resolve a unique, unresolved node.
 
op_iterator op_begin ()const
 
op_iterator op_end ()const
 
ArrayRef<MDOperandoperands ()const
 
constMDOperandgetOperand (unsignedI)const
 
unsigned getNumOperands ()const
 Return number ofMDNode operands.
 
bool isTBAAVtableAccess ()const
 Check whetherMDNode is a vtable access.
 
void printTree (raw_ostream &OS,constModule *M=nullptr)const
 Print in tree shape.
 
void printTree (raw_ostream &OS,ModuleSlotTracker &MST,constModule *M=nullptr)const
 
void dumpTree ()const
 User-friendly dump in tree shape.
 
void dumpTree (constModule *M)const
 
- Public Member Functions inherited fromllvm::Metadata
unsigned getMetadataID ()const
 
void dump ()const
 User-friendly dump.
 
void dump (constModule *M)const
 
void print (raw_ostream &OS,constModule *M=nullptr,bool IsForDebug=false)const
 Print.
 
void print (raw_ostream &OS,ModuleSlotTracker &MST,constModule *M=nullptr,bool IsForDebug=false)const
 
void printAsOperand (raw_ostream &OS,constModule *M=nullptr)const
 Print as operand.
 
void printAsOperand (raw_ostream &OS,ModuleSlotTracker &MST,constModule *M=nullptr)const
 

Static Public Member Functions

staticbool classof (constMetadata *MD)
 
- Static Public Member Functions inherited fromllvm::DIMacroNode
staticbool classof (constMetadata *MD)
 
- Static Public Member Functions inherited fromllvm::MDNode
staticMDTupleget (LLVMContext &Context,ArrayRef<Metadata * > MDs)
 
staticMDTuplegetIfExists (LLVMContext &Context,ArrayRef<Metadata * > MDs)
 
staticMDTuplegetDistinct (LLVMContext &Context,ArrayRef<Metadata * > MDs)
 
static TempMDTuple getTemporary (LLVMContext &Context,ArrayRef<Metadata * > MDs)
 
static void deleteTemporary (MDNode *N)
 Deallocate a node created by getTemporary.
 
template<classT >
static std::enable_if_t< std::is_base_of<MDNode,T >::value,T * > replaceWithPermanent (std::unique_ptr<T,TempMDNodeDeleter >N)
 Replace a temporary node with a permanent one.
 
template<classT >
static std::enable_if_t< std::is_base_of<MDNode,T >::value,T * > replaceWithUniqued (std::unique_ptr<T,TempMDNodeDeleter >N)
 Replace a temporary node with a uniqued one.
 
template<classT >
static std::enable_if_t< std::is_base_of<MDNode,T >::value,T * > replaceWithDistinct (std::unique_ptr<T,TempMDNodeDeleter >N)
 Replace a temporary node with a distinct one.
 
staticbool classof (constMetadata *MD)
 Methods for support type inquiry through isa, cast, and dyn_cast:
 
staticMDNodeconcatenate (MDNode *A,MDNode *B)
 Methods for metadata merging.
 
staticMDNodeintersect (MDNode *A,MDNode *B)
 
staticMDNodegetMostGenericTBAA (MDNode *A,MDNode *B)
 
staticMDNodegetMostGenericFPMath (MDNode *A,MDNode *B)
 
staticMDNodegetMostGenericRange (MDNode *A,MDNode *B)
 
staticMDNodegetMostGenericNoaliasAddrspace (MDNode *A,MDNode *B)
 
staticMDNodegetMostGenericAliasScope (MDNode *A,MDNode *B)
 
staticMDNodegetMostGenericAlignmentOrDereferenceable (MDNode *A,MDNode *B)
 
staticMDNodegetMergedProfMetadata (MDNode *A,MDNode *B,constInstruction *AInstr,constInstruction *BInstr)
 Merge !prof metadata from two instructions.
 
staticMDNodegetMergedMemProfMetadata (MDNode *A,MDNode *B)
 
staticMDNodegetMergedCallsiteMetadata (MDNode *A,MDNode *B)
 

Public Attributes

unsigned MIType
 
unsignedunsigned Line
 
unsignedunsignedMDStringName
 
unsignedunsignedMDStringMDStringValue
 
unsignedunsignedMDStringMDString MIType
 
unsignedunsignedMDStringMDString Line
 
unsignedunsignedMDStringMDString Name
 

Friends

class LLVMContextImpl
 
class MDNode
 

Additional Inherited Members

- Public Types inherited fromllvm::MDNode
using op_iterator =constMDOperand *
 
using op_range =iterator_range<op_iterator >
 
- Public Types inherited fromllvm::Metadata
enum  MetadataKind
 
- Static Public Attributes inherited fromllvm::Metadata
static constexprconstunsigned PoisonGeneratingIDs []
 Metadata IDs that may generate poison.
 
- Protected Types inherited fromllvm::MDNode
using mutable_op_range =iterator_range<MDOperand * >
 
- Protected Types inherited fromllvm::Metadata
enum  StorageType {Uniqued,Distinct,Temporary }
 Active type of storage.More...
 
- Protected Member Functions inherited fromllvm::DIMacroNode
 DIMacroNode (LLVMContext &C,unsignedID,StorageTypeStorage,unsigned MIType,ArrayRef<Metadata * > Ops1,ArrayRef<Metadata * > Ops2={})
 
 ~DIMacroNode ()=default
 
template<class Ty >
Ty * getOperandAs (unsignedI)const
 
StringRef getStringOperand (unsignedI)const
 
- Protected Member Functions inherited fromllvm::MDNode
 MDNode (LLVMContext &Context,unsignedID,StorageTypeStorage,ArrayRef<Metadata * > Ops1,ArrayRef<Metadata * > Ops2={})
 
 ~MDNode ()=default
 
void * operator new (size_tSize, size_t NumOps,StorageTypeStorage)
 
void operator delete (void *Mem)
 
void operator delete (void *,unsigned)
 Required by std, but never called.
 
void operator delete (void *,unsigned,bool)
 Required by std, but never called.
 
void dropAllReferences ()
 
MDOperandmutable_begin ()
 
MDOperandmutable_end ()
 
mutable_op_range mutable_operands ()
 
void setOperand (unsignedI,Metadata *New)
 Set an operand.
 
unsigned getNumUnresolved ()const
 
void setNumUnresolved (unsignedN)
 
void storeDistinctInContext ()
 
void resize (size_t NumOps)
 Resize the node to holdNumOps operands.
 
- Protected Member Functions inherited fromllvm::Metadata
 Metadata (unsignedID,StorageTypeStorage)
 
 ~Metadata ()=default
 
void handleChangedOperand (void *,Metadata *)
 Default handling of a changed operand, which asserts.
 
- Static Protected Member Functions inherited fromllvm::DIMacroNode
staticMDStringgetCanonicalMDString (LLVMContext &Context,StringRef S)
 
- Static Protected Member Functions inherited fromllvm::MDNode
template<classT , class StoreT >
staticTstoreImpl (T *N,StorageTypeStorage, StoreT &Store)
 
template<classT >
staticTstoreImpl (T *N,StorageTypeStorage)
 
- Protected Attributes inherited fromllvm::Metadata
unsignedchar Storage: 7
 Storage flag for non-uniqued, otherwise unowned, metadata.
 
unsignedchar SubclassData1: 1
 
unsigned short SubclassData16 = 0
 
unsigned SubclassData32 = 0
 

Detailed Description

Macro.

Uses the SubclassData32Metadata slot.

Definition at line3856 of fileDebugInfoMetadata.h.

Member Function Documentation

◆ classof()

staticbool llvm::DIMacro::classof(constMetadataMD)
inlinestatic

Definition at line3902 of fileDebugInfoMetadata.h.

Referencesllvm::Metadata::getMetadataID().

◆ clone()

unsignedunsignedMDStringMDStringValue TempDIMacro llvm::DIMacro::clone() const
inline

Definition at line3892 of fileDebugInfoMetadata.h.

◆ DEFINE_MDNODE_GET()

llvm::DIMacro::DEFINE_MDNODE_GET(DIMacro ,
(unsignedMIType,unsignedLine,StringRefName,StringRefValue="") ,
(MIType,Line,Name,Value 
)

◆ getLine()

unsigned llvm::DIMacro::getLine() const
inline

Definition at line3894 of fileDebugInfoMetadata.h.

Referencesllvm::Metadata::SubclassData32.

◆ getName()

StringRef llvm::DIMacro::getName() const
inline

Definition at line3896 of fileDebugInfoMetadata.h.

Referencesllvm::DIMacroNode::getStringOperand().

◆ getRawName()

MDString * llvm::DIMacro::getRawName() const
inline

Definition at line3899 of fileDebugInfoMetadata.h.

◆ getRawValue()

MDString * llvm::DIMacro::getRawValue() const
inline

Definition at line3900 of fileDebugInfoMetadata.h.

◆ getValue()

StringRef llvm::DIMacro::getValue() const
inline

Definition at line3897 of fileDebugInfoMetadata.h.

Referencesllvm::DIMacroNode::getStringOperand().

Friends And Related Function Documentation

◆ LLVMContextImpl

friend classLLVMContextImpl
friend

Definition at line3857 of fileDebugInfoMetadata.h.

◆ MDNode

friend classMDNode
friend

Definition at line3858 of fileDebugInfoMetadata.h.

Member Data Documentation

◆ Line[1/2]

unsignedunsigned llvm::DIMacro::Line

Definition at line3888 of fileDebugInfoMetadata.h.

◆ Line[2/2]

unsignedunsignedMDStringMDString llvm::DIMacro::Line

Definition at line3890 of fileDebugInfoMetadata.h.

◆ MIType[1/2]

unsigned llvm::DIMacro::MIType

Definition at line3888 of fileDebugInfoMetadata.h.

◆ MIType[2/2]

unsignedunsignedMDStringMDString llvm::DIMacro::MIType

Definition at line3890 of fileDebugInfoMetadata.h.

◆ Name[1/2]

unsignedunsignedMDString* llvm::DIMacro::Name

Definition at line3888 of fileDebugInfoMetadata.h.

◆ Name[2/2]

unsignedunsignedMDStringMDString llvm::DIMacro::Name

Definition at line3890 of fileDebugInfoMetadata.h.

◆ Value

unsignedunsignedMDStringMDString* llvm::DIMacro::Value

Definition at line3889 of fileDebugInfoMetadata.h.


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

Generated on Sun Jul 20 2025 15:56:47 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp