LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::SDLoc Class Reference

#include <SelectionDAGNodes.h>

Public Member Functions

 SDLoc ()
 
 SDLoc (const SDNode *N)
 
 SDLoc (const SDValue V)
 
 SDLoc (const Instruction *I, int Order)
 
unsigned getIROrder ()
 
DebugLoc getDebugLoc ()
 

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

Definition at line 799 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

llvm::SDLoc::SDLoc ( )
inline

Definition at line 807 of file SelectionDAGNodes.h.

llvm::SDLoc::SDLoc ( const SDNode N)
inline

Definition at line 808 of file SelectionDAGNodes.h.

llvm::SDLoc::SDLoc ( const SDValue  V)
inline

Definition at line 811 of file SelectionDAGNodes.h.

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

Definition at line 814 of file SelectionDAGNodes.h.

Member Function Documentation

DebugLoc llvm::SDLoc::getDebugLoc ( )
inline
unsigned llvm::SDLoc::getIROrder ( )
inline

The documentation for this class was generated from the following file: