mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
GlobalValueOperand.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
#include "
mini-llvm/mir/GlobalValue.h
"
6
7
namespace
mini_llvm::mir
{
8
9
class
GlobalValueOperand
{
10
public
:
11
explicit
GlobalValueOperand
(
GlobalValue
*globalValue) : globalValue_(globalValue) {}
12
13
GlobalValue
&
operator*
()
const
{
14
return
*globalValue_;
15
}
16
17
GlobalValue
*
operator->
()
const
{
18
return
globalValue_;
19
}
20
21
void
set
(
GlobalValue
*globalValue) {
22
globalValue_ = globalValue;
23
}
24
25
private
:
26
GlobalValue
*globalValue_;
27
};
28
29
}
// namespace mini_llvm::mir
mini_llvm::mir::GlobalValueOperand::GlobalValueOperand
GlobalValueOperand(GlobalValue *globalValue)
Definition
GlobalValueOperand.h:11
mini_llvm::mir::GlobalValueOperand::set
void set(GlobalValue *globalValue)
Definition
GlobalValueOperand.h:21
mini_llvm::mir::GlobalValueOperand::operator->
GlobalValue * operator->() const
Definition
GlobalValueOperand.h:17
mini_llvm::mir::GlobalValueOperand::operator*
GlobalValue & operator*() const
Definition
GlobalValueOperand.h:13
mini_llvm::mir::GlobalValue
Definition
GlobalValue.h:15
GlobalValue.h
mini_llvm::mir
Definition
BasicBlock.h:22
include
mini-llvm
mir
GlobalValueOperand.h
Generated by
1.17.0