GCC Middle and Back End API Reference
bb-reorder.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  target_bb_reorder

Macros

#define this_target_bb_reorder   (&default_target_bb_reorder)

Functions

int get_uncond_jump_length (void)
void insert_section_boundary_note (void)

Variables

struct target_bb_reorder default_target_bb_reorder

Macro Definition Documentation

#define this_target_bb_reorder   (&default_target_bb_reorder)

Function Documentation

int get_uncond_jump_length ( void  )

Return the length of unconditional jump instruction.

References BB_PARTITION, edge_def::dest, edge_def::flags, FOR_EACH_EDGE, basic_block_def::preds, edge_def::src, and basic_block_def::succs.

Referenced by reorder_basic_blocks().

void insert_section_boundary_note ( void  )

Determine which partition the first basic block in the function belongs to, then find the first basic block in the current function that belongs to a different section, and insert a NOTE_INSN_SWITCH_TEXT_SECTIONS note immediately before it in the instruction stream. When writing out the assembly code, encountering this note will make the compiler switch between the hot and cold text sections.

Referenced by compute_bb_for_insn().


Variable Documentation

struct target_bb_reorder default_target_bb_reorder