LLVM  15.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"

Collaboration diagram for llvm::FlowBlock:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

uint64_t Index
 
uint64_t Weight {0}
 
bool UnknownWeight {false}
 
uint64_t Flow {0}
 
bool HasSelfEdge {false}
 
std::vector< FlowJump * > SuccJumps
 
std::vector< FlowJump * > PredJumps
 

Detailed Description

A wrapper of a binary basic block.

Definition at line 48 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 58 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 61 of file SampleProfileInference.h.

References SuccJumps.

Member Data Documentation

◆ Flow

uint64_t llvm::FlowBlock::Flow {0}

Definition at line 52 of file SampleProfileInference.h.

◆ HasSelfEdge

bool llvm::FlowBlock::HasSelfEdge {false}

Definition at line 53 of file SampleProfileInference.h.

◆ Index

uint64_t llvm::FlowBlock::Index

Definition at line 49 of file SampleProfileInference.h.

◆ PredJumps

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

Definition at line 55 of file SampleProfileInference.h.

Referenced by isEntry().

◆ SuccJumps

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

Definition at line 54 of file SampleProfileInference.h.

Referenced by isExit().

◆ UnknownWeight

bool llvm::FlowBlock::UnknownWeight {false}

Definition at line 51 of file SampleProfileInference.h.

◆ Weight

uint64_t llvm::FlowBlock::Weight {0}

Definition at line 50 of file SampleProfileInference.h.


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