mini-llvm 0.1.0
Loading...
Searching...
No Matches
GlobalValueOperand.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 GlobalValueOperand(GlobalValue *globalValue) : globalValue_(globalValue) {}
12
14 return *globalValue_;
15 }
16
18 return globalValue_;
19 }
20
21 void set(GlobalValue *globalValue) {
22 globalValue_ = globalValue;
23 }
24
25private:
26 GlobalValue *globalValue_;
27};
28
29} // namespace mini_llvm::mir
GlobalValueOperand(GlobalValue *globalValue)
Definition GlobalValueOperand.h:11
void set(GlobalValue *globalValue)
Definition GlobalValueOperand.h:21
GlobalValue * operator->() const
Definition GlobalValueOperand.h:17
GlobalValue & operator*() const
Definition GlobalValueOperand.h:13
Definition GlobalValue.h:15
Definition BasicBlock.h:22