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
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

View file

@ -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

View file

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

View file

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

View file

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

View file

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

View file

@ -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;