class GISelKnownBitsAnalysis

Declaration

class GISelKnownBitsAnalysis : public MachineFunctionPass { /* full declaration omitted */ };

Description

Eventually add other features such as caching/ser/deserializing to MIR etc. Those implementations can derive from GISelKnownBits and override computeKnownBitsImpl.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:113

Inherits from: MachineFunctionPass

Member Variables

private std::unique_ptr<GISelKnownBits> Info
public static char ID

Method Overview

Inherited from MachineFunctionPass:

Inherited from FunctionPass:

Inherited from Pass:

Methods

GISelKnownBitsAnalysis()

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:118

llvm::GISelKnownBits& get(
    llvm::MachineFunction& MF)

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:121

Parameters

llvm::MachineFunction& MF

void getAnalysisUsage(
    llvm::AnalysisUsage& AU) const

Description

getAnalysisUsage - Subclasses that override getAnalysisUsage must call this. For MachineFunctionPasses, calling AU.preservesCFG() indicates that the pass does not modify the MachineBasicBlock CFG.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:126

Parameters

llvm::AnalysisUsage& AU

void releaseMemory()

Description

releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused. Optionally implement this function to release pass memory when it is no longer used.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:128

bool runOnMachineFunction(
    llvm::MachineFunction& MF)

Description

runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:127

Parameters

llvm::MachineFunction& MF