LLVM 24.0.0git
llvm::RISCVExpandPseudoImplBase Class Reference

#include "Target/RISCV/RISCVExpandPseudoBase.h"

Public Member Functions

bool run (MachineFunction &MF)
 Expand a subset of pseudos in the current function.
virtual ~RISCVExpandPseudoImplBase ()=default

Protected Member Functions

virtual bool expandMI (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI) const
 This method should be implemented to expand the instruction at *MBBI.

Protected Attributes

const RISCVSubtargetSTI
 The Subtarget for the current function.
const RISCVInstrInfoTII
 The derived TargetInstrInfo for the current function.

Detailed Description

Definition at line 26 of file RISCVExpandPseudoBase.h.

Constructor & Destructor Documentation

◆ ~RISCVExpandPseudoImplBase()

virtual llvm::RISCVExpandPseudoImplBase::~RISCVExpandPseudoImplBase ( )
virtualdefault

Member Function Documentation

◆ expandMI()

virtual bool llvm::RISCVExpandPseudoImplBase::expandMI ( MachineBasicBlock & MBB,
MachineBasicBlock::iterator MBBI,
MachineBasicBlock::iterator & NextMBBI ) const
inlineprotectedvirtual

This method should be implemented to expand the instruction at *MBBI.

The iteration over the current basic block will continue at NextMBBI. This method should return true if it replaced the instruction at *MBBI.

Definition at line 48 of file RISCVExpandPseudoBase.h.

References MBB, MBBI, and llvm::reportFatalInternalError().

◆ run()

bool RISCVExpandPseudoImplBase::run ( MachineFunction & MF)

Expand a subset of pseudos in the current function.

Returns whether the function was modified.

This will assert if expansion increased the estimated size of the function.

Definition at line 28 of file RISCVExpandPseudoBase.cpp.

References assert(), getFuncSizeFromInsts(), llvm::MachineFunction::getSubtarget(), MBB, Modified, STI, and TII.

Member Data Documentation

◆ STI

const RISCVSubtarget* llvm::RISCVExpandPseudoImplBase::STI
protected

The Subtarget for the current function.

Definition at line 39 of file RISCVExpandPseudoBase.h.

Referenced by run().

◆ TII

const RISCVInstrInfo* llvm::RISCVExpandPseudoImplBase::TII
protected

The derived TargetInstrInfo for the current function.

Definition at line 42 of file RISCVExpandPseudoBase.h.

Referenced by run().


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