mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
Terminator.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
#include <unordered_set>
6
7
#include "
mini-llvm/ir/BasicBlock.h
"
8
#include "
mini-llvm/ir/Instruction.h
"
9
#include "
mini-llvm/utils/Compiler.h
"
10
11
namespace
mini_llvm::ir
{
12
13
class
MINI_LLVM_EXPORT
Terminator
:
public
Instruction
{
14
public
:
15
virtual
std::unordered_set<BasicBlock *>
successors
()
const
= 0;
16
};
17
18
}
// namespace mini_llvm::ir
Compiler.h
MINI_LLVM_EXPORT
#define MINI_LLVM_EXPORT
Definition
Compiler.h:17
mini_llvm::ir::Instruction
Definition
Instruction.h:22
mini_llvm::ir::Terminator
Definition
Terminator.h:13
mini_llvm::ir::Terminator::successors
virtual std::unordered_set< BasicBlock * > successors() const =0
BasicBlock.h
Instruction.h
mini_llvm::ir
Definition
Argument.h:13
include
mini-llvm
ir
Instruction
Terminator.h
Generated by
1.17.0