Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
bitcode_writer.hpp File Reference
#include <sysio/vm/allocator.hpp>
#include <sysio/vm/opcodes.hpp>
#include <sysio/vm/types.hpp>
#include <sysio/vm/vector.hpp>
#include <cstddef>
#include <cstdint>
#include <type_traits>
Include dependency graph for bitcode_writer.hpp:

Go to the source code of this file.

Classes

class  sysio::vm::bitcode_writer
 
struct  sysio::vm::bitcode_writer::br_table_parser
 

Namespaces

namespace  sysio
 
namespace  sysio::vm
 

Macros

#define MEM_OP(op_name)
 
#define LOAD_OP   MEM_OP
 
#define STORE_OP   MEM_OP
 
#define OP(opname)
 
#define UNOP   OP
 
#define BINOP   OP
 

Macro Definition Documentation

◆ BINOP

#define BINOP   OP

Definition at line 146 of file bitcode_writer.hpp.

◆ LOAD_OP

#define LOAD_OP   MEM_OP

Definition at line 106 of file bitcode_writer.hpp.

◆ MEM_OP

#define MEM_OP ( op_name)
Value:
void emit_ ## op_name(uint32_t offset, uint32_t alignment) { fb[op_index++] = op_name ## _t{ offset, alignment }; }
unsigned int uint32_t
Definition stdint.h:126

Definition at line 104 of file bitcode_writer.hpp.

104#define MEM_OP(op_name) \
105 void emit_ ## op_name(uint32_t offset, uint32_t alignment) { fb[op_index++] = op_name ## _t{ offset, alignment }; }

◆ OP

#define OP ( opname)
Value:
void emit_ ## opname() { fb[op_index++] = opname ## _t{}; }

Definition at line 143 of file bitcode_writer.hpp.

143#define OP(opname) \
144 void emit_ ## opname() { fb[op_index++] = opname ## _t{}; }

◆ STORE_OP

#define STORE_OP   MEM_OP

Definition at line 107 of file bitcode_writer.hpp.

◆ UNOP

#define UNOP   OP

Definition at line 145 of file bitcode_writer.hpp.