Tracks swifterror values as virtual registers during code generation.
Synopsis
Declared in <llvm/CodeGen/SwiftErrorValueTracking.h>
class SwiftErrorValueTracking;
Description
Implements a limited mem2reg‐like analysis to promote uses of function arguments and allocas marked with swifterror from memory into virtual registers.
Member Functions
Name |
Description |
Create initial definitions of swifterror values in the entry block of the current function. |
|
Get the (unique) function argument that was marked swifterror. |
|
Get or create the swifterror value virtual register in VRegDefMap for this basic block. |
|
Get or create the swifterror value virtual register for a def of a swifterror by an instruction. |
|
Get or create the swifterror value virtual register for a use of a swifterror by an instruction. |
|
Preassign virtual registers to swifterror defs and uses in an IR range. |
|
Propagate assigned swifterror vregs through a function, synthesizing PHI nodes when needed to maintain consistency. |
|
Set the swifterror virtual register in the VRegDefMap for this basic block. |
|
Initialize data structures for specified new function. |
Created with MrDocs