LLVM: llvm::SDLoc Class Reference (original) (raw)

Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation functions. More...

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 1236 of file SelectionDAGNodes.h.