LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::FlowBlock Struct Reference

A wrapper of a binary basic block. More...

#include "llvm/Transforms/Utils/SampleProfileInference.h"

Public Member Functions

bool isEntry () const
 Check if it is the entry block in the function.
 
bool isExit () const
 Check if it is an exit block in the function.
 

Public Attributes

uint64_t Index
 
uint64_t Weight {0}
 
bool HasUnknownWeight {true}
 
bool IsUnlikely {false}
 
uint64_t Flow {0}
 
std::vector< FlowJump * > SuccJumps
 
std::vector< FlowJump * > PredJumps
 

Detailed Description

A wrapper of a binary basic block.

Definition at line 26 of file SampleProfileInference.h.

Member Function Documentation

◆ isEntry()

bool llvm::FlowBlock::isEntry ( ) const
inline

Check if it is the entry block in the function.

Definition at line 36 of file SampleProfileInference.h.

References PredJumps.

◆ isExit()

bool llvm::FlowBlock::isExit ( ) const
inline

Check if it is an exit block in the function.

Definition at line 39 of file SampleProfileInference.h.

References SuccJumps.

Member Data Documentation

◆ Flow

uint64_t llvm::FlowBlock::Flow {0}

Definition at line 31 of file SampleProfileInference.h.

◆ HasUnknownWeight

bool llvm::FlowBlock::HasUnknownWeight {true}

Definition at line 29 of file SampleProfileInference.h.

◆ Index

uint64_t llvm::FlowBlock::Index

Definition at line 27 of file SampleProfileInference.h.

◆ IsUnlikely

bool llvm::FlowBlock::IsUnlikely {false}

Definition at line 30 of file SampleProfileInference.h.

◆ PredJumps

std::vector<FlowJump *> llvm::FlowBlock::PredJumps

Definition at line 33 of file SampleProfileInference.h.

Referenced by isEntry().

◆ SuccJumps

std::vector<FlowJump *> llvm::FlowBlock::SuccJumps

Definition at line 32 of file SampleProfileInference.h.

Referenced by isExit().

◆ Weight

uint64_t llvm::FlowBlock::Weight {0}

Definition at line 28 of file SampleProfileInference.h.


The documentation for this struct was generated from the following file: