Nearly CC
An educational compiler skeleton
Public Member Functions | List of all members
HighLevelInstructionProperties Class Reference

HighLevelInstructionProperties class: this is used by ControlFlowGraphBuilder to make sense of control flow involving high-level instructions. More...

#include "highlevel.h"

Public Member Functions

bool is_function_call (Instruction *ins) const
 Determine whether an Instruction is a function call. More...
 
bool falls_through (Instruction *ins) const
 Determine whether it is possible for an Instruction to fall through to the next sequential instruction in program order. More...
 

Detailed Description

HighLevelInstructionProperties class: this is used by ControlFlowGraphBuilder to make sense of control flow involving high-level instructions.

Member Function Documentation

◆ falls_through()

bool HighLevelInstructionProperties::falls_through ( Instruction ins) const
inline

Determine whether it is possible for an Instruction to fall through to the next sequential instruction in program order.

Parameters
insan Instruction
Returns
true if the instuction can fall through to the next sequential instruction in program order, false otherwise

◆ is_function_call()

bool HighLevelInstructionProperties::is_function_call ( Instruction ins) const
inline

Determine whether an Instruction is a function call.

Parameters
insan Instruction
Returns
true if the instuction is a function call, false otherwise

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