mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
RISCVInstruction.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
#include <memory>
6
#include <string>
7
#include <utility>
8
#include <vector>
9
10
#include "
mini-llvm/mc/Instruction.h
"
11
#include "
mini-llvm/mc/Operand.h
"
12
#include "
mini-llvm/utils/Compiler.h
"
13
14
namespace
mini_llvm::mc
{
15
16
class
MINI_LLVM_EXPORT
RISCVInstruction
final :
public
Instruction
{
17
public
:
18
explicit
RISCVInstruction
(
int
opcode
, std::vector<std::unique_ptr<Operand>>
operands
= {})
19
:
Instruction
(opcode, std::move(
operands
)) {}
20
21
std::string
format
()
const override
;
22
};
23
24
}
// namespace mini_llvm::mc
Compiler.h
MINI_LLVM_EXPORT
#define MINI_LLVM_EXPORT
Definition
Compiler.h:17
Operand.h
mini_llvm::mc::Instruction
Definition
Instruction.h:18
mini_llvm::mc::Instruction::Instruction
Instruction(int opcode, std::vector< std::unique_ptr< Operand > > operands={})
Definition
Instruction.h:68
mini_llvm::mc::Instruction::opcode
int opcode() const
Definition
Instruction.h:23
mini_llvm::mc::RISCVInstruction::RISCVInstruction
RISCVInstruction(int opcode, std::vector< std::unique_ptr< Operand > > operands={})
Definition
RISCVInstruction.h:18
mini_llvm::mc::RISCVInstruction::format
std::string format() const override
Instruction.h
mini_llvm::mc
Definition
Directive.h:8
mini_llvm::mc::operands
auto operands(Instruction &I)
Definition
Instruction.h:76
include
mini-llvm
targets
riscv
mc
RISCVInstruction.h
Generated by
1.17.0