mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-26 02:57:50 +00:00
Rename opcodes -> insts
This commit is contained in:
parent
954774f9e8
commit
edfc77bbbe
7 changed files with 16 additions and 17 deletions
|
@ -9,11 +9,11 @@ add_library(sirit
|
|||
operand.h
|
||||
literal.cpp
|
||||
common_types.h
|
||||
opcodes.h
|
||||
opcodes/type.cpp
|
||||
opcodes/constant.cpp
|
||||
opcodes/function.cpp
|
||||
opcodes/flow.cpp
|
||||
insts.h
|
||||
insts/type.cpp
|
||||
insts/constant.cpp
|
||||
insts/function.cpp
|
||||
insts/flow.cpp
|
||||
)
|
||||
target_include_directories(sirit
|
||||
PUBLIC ../include
|
||||
|
|
|
@ -11,11 +11,4 @@
|
|||
|
||||
namespace Sirit {
|
||||
|
||||
template<typename T>
|
||||
inline void WriteEnum(Stream& stream, spv::Op opcode, T value) {
|
||||
Op op{opcode};
|
||||
op.Add(static_cast<u32>(value));
|
||||
op.Write(stream);
|
||||
}
|
||||
|
||||
} // namespace Sirit
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <cassert>
|
||||
#include "sirit/sirit.h"
|
||||
#include "opcodes.h"
|
||||
#include "insts.h"
|
||||
|
||||
namespace Sirit {
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "sirit/sirit.h"
|
||||
#include "opcodes.h"
|
||||
#include "insts.h"
|
||||
|
||||
namespace Sirit {
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "sirit/sirit.h"
|
||||
#include "opcodes.h"
|
||||
#include "insts.h"
|
||||
|
||||
namespace Sirit {
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <cassert>
|
||||
#include "sirit/sirit.h"
|
||||
#include "opcodes.h"
|
||||
#include "insts.h"
|
||||
|
||||
namespace Sirit {
|
||||
|
|
@ -10,10 +10,16 @@
|
|||
#include "common_types.h"
|
||||
#include "op.h"
|
||||
#include "stream.h"
|
||||
#include "opcodes.h"
|
||||
|
||||
namespace Sirit {
|
||||
|
||||
template<typename T>
|
||||
inline void WriteEnum(Stream& stream, spv::Op opcode, T value) {
|
||||
Op op{opcode};
|
||||
op.Add(static_cast<u32>(value));
|
||||
op.Write(stream);
|
||||
}
|
||||
|
||||
Module::Module() {}
|
||||
|
||||
Module::~Module() = default;
|
||||
|
|
Loading…
Reference in a new issue