class DIScope
Declaration
class DIScope : public DINode { /* full declaration omitted */ };
Description
Base class for scope-like contexts. Base class for lexical scopes and types (which are also declaration contexts). TODO: Separate the concepts of declaration contexts and lexical scopes.
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:399
Inherits from: DINode
Member Variables
Inherited from Metadata:
Method Overview
- protected DIScope(llvm::LLVMContext & C, unsigned int ID, llvm::Metadata::StorageType Storage, unsigned int Tag, ArrayRef<llvm::Metadata *> Ops)
- public static bool classof(const llvm::Metadata * MD)
- public inline llvm::StringRef getDirectory() const
- public llvm::DIFile * getFile() const
- public inline llvm::StringRef getFilename() const
- public llvm::StringRef getName() const
- public llvm::Metadata * getRawFile() const
- public llvm::DIScope * getScope() const
- public inline Optional<llvm::StringRef> getSource() const
- protected ~DIScope()
Inherited from DINode:
- public classof
- protected getCanonicalMDString
- public getFlag
- public getFlagString
- protected getOperandAs
- protected getStringOperand
- public getTag
- protected setTag
- public splitFlags
Inherited from MDNode:
- public classof
- public clone
- public concatenate
- public deleteTemporary
- protected dropAllReferences
- public get
- public getContext
- public getDistinct
- public getIfExists
- public getMostGenericAliasScope
- public getMostGenericAlignmentOrDereferenceable
- public getMostGenericFPMath
- public getMostGenericRange
- public getMostGenericTBAA
- public getNumOperands
- public getOperand
- public getTemporary
- public intersect
- public isDistinct
- public isResolved
- public isTBAAVtableAccess
- public isTemporary
- public isUniqued
- protected mutable_begin
- protected mutable_end
- public mutable_operands
- public op_begin
- public op_end
- public operands
- public replaceAllUsesWith
- public replaceOperandWith
- public replaceWithDistinct
- public replaceWithPermanent
- public replaceWithUniqued
- public resolve
- public resolveCycles
- protected setOperand
- protected storeDistinctInContext
- protected storeImpl
- protected storeImpl
Inherited from Metadata:
- public dump
- public dump
- public getMetadataID
- protected handleChangedOperand
- public print
- public print
- public printAsOperand
- public printAsOperand
Methods
¶DIScope(llvm::LLVMContext& C,
unsigned int ID,
llvm::Metadata::StorageType Storage,
unsigned int Tag,
ArrayRef<llvm::Metadata*> Ops)
DIScope(llvm::LLVMContext& C,
unsigned int ID,
llvm::Metadata::StorageType Storage,
unsigned int Tag,
ArrayRef<llvm::Metadata*> Ops)
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:401
Parameters
- llvm::LLVMContext& C
- unsigned int ID
- llvm::Metadata::StorageType Storage
- unsigned int Tag
- ArrayRef<llvm::Metadata*> Ops
¶static bool classof(const llvm::Metadata* MD)
static bool classof(const llvm::Metadata* MD)
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:427
Parameters
- const llvm::Metadata* MD
¶inline llvm::StringRef getDirectory() const
inline llvm::StringRef getDirectory() const
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:410
¶llvm::DIFile* getFile() const
llvm::DIFile* getFile() const
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:407
¶inline llvm::StringRef getFilename() const
inline llvm::StringRef getFilename() const
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:409
¶llvm::StringRef getName() const
llvm::StringRef getName() const
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:413
¶llvm::Metadata* getRawFile() const
llvm::Metadata* getRawFile() const
Description
Return the raw underlying file. A \a DIFile is a \a DIScope, but it doesn't point at a separate file (it\em is the file). If \c this is an \a DIFile, we need to return \c this. Otherwise, return the first operand, which is where all other subclasses store their file pointer.
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:422
¶llvm::DIScope* getScope() const
llvm::DIScope* getScope() const
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:414
¶inline Optional<llvm::StringRef> getSource() const
inline Optional<llvm::StringRef> getSource() const
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:411
¶~DIScope()
~DIScope()
Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:404