mini-llvm 0.1.0
Loading...
Searching...
No Matches
FunctionOperand.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
6
7namespace mini_llvm::mir {
8
10public:
11 explicit FunctionOperand(Function *function) : function_(function) {}
12
14 return *function_;
15 }
16
18 return function_;
19 }
20
21 void set(Function *function) {
22 function_ = function;
23 }
24
25private:
26 Function *function_;
27};
28
29} // namespace mini_llvm::mir
Function * operator->() const
Definition FunctionOperand.h:17
Function & operator*() const
Definition FunctionOperand.h:13
FunctionOperand(Function *function)
Definition FunctionOperand.h:11
void set(Function *function)
Definition FunctionOperand.h:21
Definition Function.h:21
Definition BasicBlock.h:22