LLVM API Documentation
This pass calculates the liveness information for each basic block in a function and attaches the register live-out information to a patchpoint intrinsic if present. More...
#include <StackMapLivenessAnalysis.h>
Public Member Functions | |
StackMapLiveness () | |
Default construct and initialize the pass. | |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
Tell the pass manager which passes we depend on and what information we preserve. | |
bool | runOnMachineFunction (MachineFunction &MF) override |
Calculate the liveness information for the given machine function. | |
Static Public Attributes | |
static char | ID = 0 |
This pass calculates the liveness information for each basic block in a function and attaches the register live-out information to a patchpoint intrinsic if present.
This pass can be disabled via the -enable-patchpoint-liveness=false flag. The pass skips functions that don't have any patchpoint intrinsics. The information provided by this pass is optional and not required by the aformentioned intrinsic to function.
Definition at line 33 of file StackMapLivenessAnalysis.h.
Default construct and initialize the pass.
void StackMapLiveness::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [override, virtual] |
Tell the pass manager which passes we depend on and what information we preserve.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 54 of file StackMapLivenessAnalysis.cpp.
References llvm::AnalysisUsage::addRequired(), llvm::AnalysisUsage::setPreservesAll(), and llvm::AnalysisUsage::setPreservesCFG().
bool StackMapLiveness::runOnMachineFunction | ( | MachineFunction & | MF | ) | [override, virtual] |
Calculate the liveness information for the given machine function.
Implements llvm::MachineFunctionPass.
Definition at line 63 of file StackMapLivenessAnalysis.cpp.
References llvm::dbgs(), DEBUG, llvm::EnablePatchPointLiveness, and llvm::MachineFunction::getName().
char StackMapLiveness::ID = 0 [static] |
Definition at line 38 of file StackMapLivenessAnalysis.h.