LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::BranchProbabilityAnalysis Class Reference

Analysis pass which computes BranchProbabilityInfo. More...

#include "llvm/Analysis/BranchProbabilityInfo.h"

Inheritance diagram for llvm::BranchProbabilityAnalysis:
Inheritance graph
[legend]

Public Types

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

Public Member Functions

BranchProbabilityInfo run (Function &F, FunctionAnalysisManager &AM)
 Run the analysis pass over a function and produce BPI.
 
- Public Member Functions inherited from llvm::PassInfoMixin< DerivedT >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
 

Additional Inherited Members

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

Detailed Description

Analysis pass which computes BranchProbabilityInfo.

Definition at line 424 of file BranchProbabilityInfo.h.

Member Typedef Documentation

◆ Result

Provide the result type for this analysis pass.

Definition at line 432 of file BranchProbabilityInfo.h.

Member Function Documentation

◆ run()

BranchProbabilityInfo BranchProbabilityAnalysis::run ( Function F,
FunctionAnalysisManager AM 
)

Run the analysis pass over a function and produce BPI.

Definition at line 1315 of file BranchProbabilityInfo.cpp.

References llvm::BranchProbabilityInfo::calculate(), F, and llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult().


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