Movatterモバイル変換


[0]ホーム

URL:


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

Macro file.More...

#include "llvm/IR/DebugInfoMetadata.h"

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

Public Member Functions

 DEFINE_MDNODE_GET (DIMacroFile,(unsignedMIType,unsignedLine,DIFile *File, DIMacroNodeArrayElements),(MIType,Line,File,Elements)) DEFINE_MDNODE_GET(DIMacroFile
 
unsignedunsignedMetadataMetadataElements TempDIMacroFile clone ()const
 
void replaceElements (DIMacroNodeArrayElements)
 
unsigned getLine ()const
 
DIFilegetFile ()const
 
DIMacroNodeArray getElements ()const
 
MetadatagetRawFile ()const
 
MetadatagetRawElements ()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
 
unsignedunsignedMetadataFile
 
unsignedunsignedMetadataMetadataElements
 
unsignedunsignedMetadataMetadata MIType
 
unsignedunsignedMetadataMetadata Line
 
unsignedunsignedMetadataMetadata File
 

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 file.

Uses the SubclassData32Metadata slot.

Definition at line3910 of fileDebugInfoMetadata.h.

Member Function Documentation

◆ classof()

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

Definition at line3969 of fileDebugInfoMetadata.h.

Referencesllvm::Metadata::getMetadataID().

◆ clone()

unsignedunsignedMetadataMetadataElements TempDIMacroFile llvm::DIMacroFile::clone() const
inline

Definition at line3948 of fileDebugInfoMetadata.h.

◆ DEFINE_MDNODE_GET()

llvm::DIMacroFile::DEFINE_MDNODE_GET(DIMacroFile ,
(unsignedMIType,unsignedLine,DIFile *File, DIMacroNodeArrayElements,
(MIType,Line,File,Elements 
)

◆ getElements()

DIMacroNodeArray llvm::DIMacroFile::getElements() const
inline

Definition at line3962 of fileDebugInfoMetadata.h.

ReferencesgetRawElements().

Referenced byreplaceElements().

◆ getFile()

DIFile * llvm::DIMacroFile::getFile() const
inline

Definition at line3960 of fileDebugInfoMetadata.h.

ReferencesgetRawFile().

◆ getLine()

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

Definition at line3959 of fileDebugInfoMetadata.h.

Referencesllvm::Metadata::SubclassData32.

◆ getRawElements()

Metadata * llvm::DIMacroFile::getRawElements() const
inline

Definition at line3967 of fileDebugInfoMetadata.h.

Referencesllvm::MDNode::getOperand().

Referenced bygetElements().

◆ getRawFile()

Metadata * llvm::DIMacroFile::getRawFile() const
inline

Definition at line3966 of fileDebugInfoMetadata.h.

Referencesllvm::MDNode::getOperand().

Referenced bygetFile().

◆ replaceElements()

void llvm::DIMacroFile::replaceElements(DIMacroNodeArray Elements)
inline

Definition at line3950 of fileDebugInfoMetadata.h.

Referencesassert(),Elements,getElements(),llvm::is_contained(), andllvm::MDNode::replaceOperandWith().

Friends And Related Function Documentation

◆ LLVMContextImpl

friend classLLVMContextImpl
friend

Definition at line3911 of fileDebugInfoMetadata.h.

◆ MDNode

friend classMDNode
friend

Definition at line3912 of fileDebugInfoMetadata.h.

Member Data Documentation

◆ Elements

unsignedunsignedMetadataMetadata* llvm::DIMacroFile::Elements

Definition at line3945 of fileDebugInfoMetadata.h.

Referenced byreplaceElements().

◆ File[1/2]

unsignedunsignedMetadata* llvm::DIMacroFile::File

Definition at line3944 of fileDebugInfoMetadata.h.

◆ File[2/2]

unsignedunsignedMetadataMetadata llvm::DIMacroFile::File

Definition at line3946 of fileDebugInfoMetadata.h.

◆ Line[1/2]

unsignedunsigned llvm::DIMacroFile::Line

Definition at line3944 of fileDebugInfoMetadata.h.

◆ Line[2/2]

unsignedunsignedMetadataMetadata llvm::DIMacroFile::Line

Definition at line3946 of fileDebugInfoMetadata.h.

◆ MIType[1/2]

unsigned llvm::DIMacroFile::MIType

Definition at line3944 of fileDebugInfoMetadata.h.

◆ MIType[2/2]

unsignedunsignedMetadataMetadata llvm::DIMacroFile::MIType

Definition at line3946 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