LLVM API Documentation

Public Member Functions | Static Public Attributes
llvm::StackMapLiveness Class Reference

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>

Inheritance diagram for llvm::StackMapLiveness:
Inheritance graph
[legend]
Collaboration diagram for llvm::StackMapLiveness:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Default construct and initialize the pass.


Member Function Documentation

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().

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().


Member Data Documentation

char StackMapLiveness::ID = 0 [static]

Definition at line 38 of file StackMapLivenessAnalysis.h.


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