class SDDbgValue

Declaration

class SDDbgValue { /* full declaration omitted */ };

Description

Holds the information from a dbg_value node through SDISel. We do not use SDValue here to avoid including its header.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:30

Method Overview

  • public SDDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, const llvm::Value * C, llvm::DebugLoc dl, unsigned int O)
  • public SDDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, unsigned int VRegOrFrameIdx, bool IsIndirect, llvm::DebugLoc DL, unsigned int Order, enum DbgValueKind Kind)
  • public SDDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, llvm::SDNode * N, unsigned int R, bool indir, llvm::DebugLoc dl, unsigned int O)
  • public void clearIsEmitted()
  • public void dump() const
  • public const llvm::Value * getConst() const
  • public llvm::DebugLoc getDebugLoc() const
  • public llvm::DIExpression * getExpression() const
  • public unsigned int getFrameIx() const
  • public llvm::SDDbgValue::DbgValueKind getKind() const
  • public unsigned int getOrder() const
  • public unsigned int getResNo() const
  • public llvm::SDNode * getSDNode() const
  • public unsigned int getVReg() const
  • public llvm::DIVariable * getVariable() const
  • public bool isEmitted() const
  • public bool isIndirect() const
  • public bool isInvalidated() const
  • public void print(llvm::raw_ostream & OS) const
  • public void setIsEmitted()
  • public void setIsInvalidated()

Methods

SDDbgValue(llvm::DIVariable* Var,
           llvm::DIExpression* Expr,
           const llvm::Value* C,
           llvm::DebugLoc dl,
           unsigned int O)

Description

Constructor for constants.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:68

Parameters

llvm::DIVariable* Var
llvm::DIExpression* Expr
const llvm::Value* C
llvm::DebugLoc dl
unsigned int O

SDDbgValue(llvm::DIVariable* Var,
           llvm::DIExpression* Expr,
           unsigned int VRegOrFrameIdx,
           bool IsIndirect,
           llvm::DebugLoc DL,
           unsigned int Order,
           enum DbgValueKind Kind)

Description

Constructor for virtual registers and frame indices.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:76

Parameters

llvm::DIVariable* Var
llvm::DIExpression* Expr
unsigned int VRegOrFrameIdx
bool IsIndirect
llvm::DebugLoc DL
unsigned int Order
enum DbgValueKind Kind

SDDbgValue(llvm::DIVariable* Var,
           llvm::DIExpression* Expr,
           llvm::SDNode* N,
           unsigned int R,
           bool indir,
           llvm::DebugLoc dl,
           unsigned int O)

Description

Constructor for non-constants.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:59

Parameters

llvm::DIVariable* Var
llvm::DIExpression* Expr
llvm::SDNode* N
unsigned int R
bool indir
llvm::DebugLoc dl
unsigned int O

void clearIsEmitted()

Description

clearIsEmitted - Reset Emitted flag, for certain special cases where dbg.addr is emitted twice.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:136

void dump() const

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:138

const llvm::Value* getConst() const

Description

Returns the Value* for a constant

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:105

llvm::DebugLoc getDebugLoc() const

Description

Returns the DebugLoc.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:117

llvm::DIExpression* getExpression() const

Description

Returns the DIExpression pointer for the expression.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:96

unsigned int getFrameIx() const

Description

Returns the FrameIx for a stack object

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:108

llvm::SDDbgValue::DbgValueKind getKind() const

Description

Returns the kind.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:90

unsigned int getOrder() const

Description

Returns the SDNodeOrder. This is the order of the preceding node in the input.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:121

unsigned int getResNo() const

Description

Returns the ResNo for a register ref

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:102

llvm::SDNode* getSDNode() const

Description

Returns the SDNode* for a register ref

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:99

unsigned int getVReg() const

Description

Returns the Virtual Register for a VReg

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:111

llvm::DIVariable* getVariable() const

Description

Returns the DIVariable pointer for the variable.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:93

bool isEmitted() const

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:132

bool isIndirect() const

Description

Returns whether this is an indirect value.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:114

bool isInvalidated() const

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:127

void print(llvm::raw_ostream& OS) const

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:139

Parameters

llvm::raw_ostream& OS

void setIsEmitted()

Description

setIsEmitted / isEmitted - Getter/Setter for flag indicating that this SDDbgValue has been emitted to an MBB.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:131

void setIsInvalidated()

Description

setIsInvalidated / isInvalidated - Setter / getter of the "Invalidated" property. A SDDbgValue is invalid if the SDNode that produces the value is deleted.

Declared at: llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h:126