LLVM  8.0.1
Public Types | Public Member Functions | List of all members
llvm::BlockFrequencyAnalysis Class Reference

Analysis pass which computes BlockFrequencyInfo. More...

#include "llvm/Analysis/BlockFrequencyInfo.h"

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

Public Types

using Result = BlockFrequencyInfo
 Provide the result type for this analysis pass. More...
 

Public Member Functions

Result run (Function &F, FunctionAnalysisManager &AM)
 Run the analysis pass over a function and produce BFI. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::AnalysisInfoMixin< BlockFrequencyAnalysis >
static AnalysisKeyID ()
 Returns an opaque, unique ID for this analysis type. More...
 
- Static Public Member Functions inherited from llvm::PassInfoMixin< BlockFrequencyAnalysis >
static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

Analysis pass which computes BlockFrequencyInfo.

Definition at line 109 of file BlockFrequencyInfo.h.

Member Typedef Documentation

◆ Result

Provide the result type for this analysis pass.

Definition at line 117 of file BlockFrequencyInfo.h.

Member Function Documentation

◆ run()

BlockFrequencyInfo BlockFrequencyAnalysis::run ( Function F,
FunctionAnalysisManager AM 
)

Run the analysis pass over a function and produce BFI.

Definition at line 327 of file BlockFrequencyInfo.cpp.

References llvm::AMDGPUISD::BFI, llvm::BlockFrequencyInfo::calculate(), and llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult().


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