Rename opcodes -> insts

This commit is contained in:
ReinUsesLisp 2018-08-28 04:05:47 -03:00
parent 954774f9e8
commit edfc77bbbe
7 changed files with 16 additions and 17 deletions

View File

@ -9,11 +9,11 @@ add_library(sirit
operand.h operand.h
literal.cpp literal.cpp
common_types.h common_types.h
opcodes.h insts.h
opcodes/type.cpp insts/type.cpp
opcodes/constant.cpp insts/constant.cpp
opcodes/function.cpp insts/function.cpp
opcodes/flow.cpp insts/flow.cpp
) )
target_include_directories(sirit target_include_directories(sirit
PUBLIC ../include PUBLIC ../include

View File

@ -11,11 +11,4 @@
namespace Sirit { 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 } // namespace Sirit

View File

@ -6,7 +6,7 @@
#include <cassert> #include <cassert>
#include "sirit/sirit.h" #include "sirit/sirit.h"
#include "opcodes.h" #include "insts.h"
namespace Sirit { namespace Sirit {

View File

@ -5,7 +5,7 @@
*/ */
#include "sirit/sirit.h" #include "sirit/sirit.h"
#include "opcodes.h" #include "insts.h"
namespace Sirit { namespace Sirit {

View File

@ -5,7 +5,7 @@
*/ */
#include "sirit/sirit.h" #include "sirit/sirit.h"
#include "opcodes.h" #include "insts.h"
namespace Sirit { namespace Sirit {

View File

@ -6,7 +6,7 @@
#include <cassert> #include <cassert>
#include "sirit/sirit.h" #include "sirit/sirit.h"
#include "opcodes.h" #include "insts.h"
namespace Sirit { namespace Sirit {

View File

@ -10,10 +10,16 @@
#include "common_types.h" #include "common_types.h"
#include "op.h" #include "op.h"
#include "stream.h" #include "stream.h"
#include "opcodes.h"
namespace Sirit { 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() {}
Module::~Module() = default; Module::~Module() = default;