Nearly CC
An educational compiler skeleton
Classes | Enumerations
instruction_seq.h File Reference

InstructionSequence and friends. More...

#include <vector>
#include <string>
#include <map>
#include "instruction_seq_iter.h"
Include dependency graph for instruction_seq.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InstructionSequence
 InstructionSequence class, which represents a linear sequence of Instruction objects. More...
 

Enumerations

enum  BasicBlockKind { BASICBLOCK_ENTRY , BASICBLOCK_EXIT , BASICBLOCK_INTERIOR }
 Kinds of basic blocks. More...
 

Detailed Description

InstructionSequence and friends.

This is the "linear" IR representing a sequence of Instruction objects.

Enumeration Type Documentation

◆ BasicBlockKind

Kinds of basic blocks.

An InstructionSequence can be used to represent a basic block in a ControlFlowGraph.

Enumerator
BASICBLOCK_ENTRY 

special "entry" block

BASICBLOCK_EXIT 

special "exit" block

BASICBLOCK_INTERIOR 

normal basic block in the "interior" of the CFG