class DILabel

Declaration

class DILabel : public DINode { /* full declaration omitted */ };

Description

Label.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3148

Inherits from: DINode

Member Variables

private unsigned int Line

Inherited from Metadata:

protected Storage
protected SubclassData1
protected SubclassData16 = 0
protected SubclassData32 = 0

Method Overview

  • private DILabel(llvm::LLVMContext & C, llvm::Metadata::StorageType Storage, unsigned int Line, ArrayRef<llvm::Metadata *> Ops)
  • public static bool classof(const llvm::Metadata * MD)
  • public llvm::TempDILabel clone() const
  • private llvm::TempDILabel cloneImpl() const
  • public llvm::DIFile * getFile() const
  • private static llvm::DILabel * getImpl(llvm::LLVMContext & Context, llvm::DIScope * Scope, llvm::StringRef Name, llvm::DIFile * File, unsigned int Line, llvm::Metadata::StorageType Storage, bool ShouldCreate = true)
  • private static llvm::DILabel * getImpl(llvm::LLVMContext & Context, llvm::Metadata * Scope, llvm::MDString * Name, llvm::Metadata * File, unsigned int Line, llvm::Metadata::StorageType Storage, bool ShouldCreate = true)
  • public unsigned int getLine() const
  • public llvm::StringRef getName() const
  • public llvm::Metadata * getRawFile() const
  • public llvm::MDString * getRawName() const
  • public llvm::Metadata * getRawScope() const
  • public llvm::DILocalScope * getScope() const
  • public bool isValidLocationForIntrinsic(const llvm::DILocation * DL) const
  • private ~DILabel()

Inherited from DINode:

Inherited from MDNode:

Inherited from Metadata:

Methods

DILabel(llvm::LLVMContext& C,
        llvm::Metadata::StorageType Storage,
        unsigned int Line,
        ArrayRef<llvm::Metadata*> Ops)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3154

Parameters

llvm::LLVMContext& C
llvm::Metadata::StorageType Storage
unsigned int Line
ArrayRef<llvm::Metadata*> Ops

static bool classof(const llvm::Metadata* MD)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3208

Parameters

const llvm::Metadata* MD

llvm::TempDILabel clone() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3183

llvm::TempDILabel cloneImpl() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3168

llvm::DIFile* getFile() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3193

static llvm::DILabel* getImpl(
    llvm::LLVMContext& Context,
    llvm::DIScope* Scope,
    llvm::StringRef Name,
    llvm::DIFile* File,
    unsigned int Line,
    llvm::Metadata::StorageType Storage,
    bool ShouldCreate = true)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3158

Parameters

llvm::LLVMContext& Context
llvm::DIScope* Scope
llvm::StringRef Name
llvm::DIFile* File
unsigned int Line
llvm::Metadata::StorageType Storage
bool ShouldCreate = true

static llvm::DILabel* getImpl(
    llvm::LLVMContext& Context,
    llvm::Metadata* Scope,
    llvm::MDString* Name,
    llvm::Metadata* File,
    unsigned int Line,
    llvm::Metadata::StorageType Storage,
    bool ShouldCreate = true)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3164

Parameters

llvm::LLVMContext& Context
llvm::Metadata* Scope
llvm::MDString* Name
llvm::Metadata* File
unsigned int Line
llvm::Metadata::StorageType Storage
bool ShouldCreate = true

unsigned int getLine() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3191

llvm::StringRef getName() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3192

llvm::Metadata* getRawFile() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3197

llvm::MDString* getRawName() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3196

llvm::Metadata* getRawScope() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3195

llvm::DILocalScope* getScope() const

Description

Get the local scope for this label. Labels must be defined in a local scope.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3188

bool isValidLocationForIntrinsic(
    const llvm::DILocation* DL) const

Description

Check that a location is valid for this label. Check that \c DL exists, is in the same subprogram, and has the same inlined-at location as \c this. (Otherwise, it's not a valid attachment to a \a DbgInfoIntrinsic.)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3204

Parameters

const llvm::DILocation* DL

~DILabel()

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:3156