class MIRProfileLoader

Declaration

class MIRProfileLoader : public SampleProfileLoaderBaseImpl { /* full declaration omitted */ };

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:120

Inherits from: SampleProfileLoaderBaseImpl

Member Variables

protected llvm::MachineBlockFrequencyInfo* BFI
Hold the information of the basic block frequency.
protected llvm::sampleprof::FSDiscriminatorPass P
PassNum is the sequence number this pass is called, start from 1.
protected unsigned int LowBit
protected unsigned int HighBit
protected bool ProfileIsValid = true

Method Overview

  • public MIRProfileLoader(llvm::StringRef Name, llvm::StringRef RemapName)
  • public bool doInitialization(llvm::Module & M)
  • public bool isValid() const
  • public bool runOnFunction(llvm::MachineFunction & F)
  • public void setBranchProbs(llvm::MachineFunction & F)
  • public void setFSPass(llvm::sampleprof::FSDiscriminatorPass Pass)
  • public void setInitVals(llvm::MachineDominatorTree * MDT, llvm::MachinePostDominatorTree * MPDT, llvm::MachineLoopInfo * MLI, llvm::MachineBlockFrequencyInfo * MBFI, llvm::MachineOptimizationRemarkEmitter * MORE)

Methods

MIRProfileLoader(llvm::StringRef Name,
                 llvm::StringRef RemapName)

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:139

Parameters

llvm::StringRef Name
llvm::StringRef RemapName

bool doInitialization(llvm::Module& M)

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:145

Parameters

llvm::Module& M

bool isValid() const

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:146

bool runOnFunction(llvm::MachineFunction& F)

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:144

Parameters

llvm::MachineFunction& F

void setBranchProbs(llvm::MachineFunction& F)

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:143

Parameters

llvm::MachineFunction& F

void setFSPass(
    llvm::sampleprof::FSDiscriminatorPass Pass)

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:132

Parameters

llvm::sampleprof::FSDiscriminatorPass Pass

void setInitVals(
    llvm::MachineDominatorTree* MDT,
    llvm::MachinePostDominatorTree* MPDT,
    llvm::MachineLoopInfo* MLI,
    llvm::MachineBlockFrequencyInfo* MBFI,
    llvm::MachineOptimizationRemarkEmitter* MORE)

Declared at: llvm/lib/CodeGen/MIRSampleProfile.cpp:123

Parameters

llvm::MachineDominatorTree* MDT
llvm::MachinePostDominatorTree* MPDT
llvm::MachineLoopInfo* MLI
llvm::MachineBlockFrequencyInfo* MBFI
llvm::MachineOptimizationRemarkEmitter* MORE