class SDLoc

Declaration

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

Description

Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation functions. When an SDNode is created from the DAGBuilder, the DebugLoc is extracted from the original Instruction, and IROrder is the ordinal position of the instruction. When an SDNode is created after the DAG is being built, both DebugLoc and the IROrder are propagated from the original SDNode. So SDLoc class provides two constructors besides the default one, one to be used by the DAGBuilder, the other to be used by others.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1091

Member Variables

private llvm::DebugLoc DL
private int IROrder = 0

Method Overview

  • public SDLoc()
  • public SDLoc(const llvm::SDNode * N)
  • public SDLoc(const llvm::SDValue V)
  • public SDLoc(const llvm::Instruction * I, int Order)
  • public const llvm::DebugLoc & getDebugLoc() const
  • public unsigned int getIROrder() const

Methods

SDLoc()

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1097

SDLoc(const llvm::SDNode* N)

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1098

Parameters

const llvm::SDNode* N

SDLoc(const llvm::SDValue V)

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1099

Parameters

const llvm::SDValue V

SDLoc(const llvm::Instruction* I, int Order)

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1100

Parameters

const llvm::Instruction* I
int Order

const llvm::DebugLoc& getDebugLoc() const

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1107

unsigned int getIROrder() const

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1106