mini-llvm 0.1.0
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
13
14namespace mini_llvm::mc {
15
17public:
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
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
Definition Instruction.h:18
Instruction(int opcode, std::vector< std::unique_ptr< Operand > > operands={})
Definition Instruction.h:68
int opcode() const
Definition Instruction.h:23
RISCVInstruction(int opcode, std::vector< std::unique_ptr< Operand > > operands={})
Definition RISCVInstruction.h:18
std::string format() const override
Definition Directive.h:8
auto operands(Instruction &I)
Definition Instruction.h:76