class Legalizer

Declaration

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

Description

MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of passes that operate on the MachineFunction representation. Instead of overriding runOnFunction, subclasses override runOnMachineFunction.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:36

Inherits from: MachineFunctionPass

Member Variables

public static char ID

Method Overview

Inherited from MachineFunctionPass:

Inherited from FunctionPass:

Inherited from Pass:

Methods

Legalizer()

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:51

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/Legalizer.h:55

Parameters

llvm::AnalysisUsage& AU

llvm::MachineFunctionProperties
getClearedProperties() const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:67

llvm::StringRef getPassName() const

Description

getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:53

llvm::MachineFunctionProperties
getRequiredProperties() const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:57

llvm::MachineFunctionProperties getSetProperties()
    const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:62

void init(llvm::MachineFunction& MF)

Description

Initialize the field members using \p MF.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:47

Parameters

llvm::MachineFunction& MF

static llvm::Legalizer::MFResult
legalizeMachineFunction(
    llvm::MachineFunction& MF,
    const llvm::LegalizerInfo& LI,
    ArrayRef<llvm::GISelChangeObserver*>
        AuxObservers,
    llvm::LostDebugLocObserver& LocObserver,
    llvm::MachineIRBuilder& MIRBuilder)

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h:75

Parameters

llvm::MachineFunction& MF
const llvm::LegalizerInfo& LI
ArrayRef<llvm::GISelChangeObserver*> AuxObservers
llvm::LostDebugLocObserver& LocObserver
llvm::MachineIRBuilder& MIRBuilder

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/Legalizer.h:72

Parameters

llvm::MachineFunction& MF