Changed current relation from BasicBlock to BasicBlockImpl, and Function
[jitcs.git] / src / x86 / jitcs_int_x86_xx_dumper.lh
blob8f62710717e9deb2e90a6dc191d86443a391f1cd
1 #/bin/emblua LUAPREFIX=/*|
2 /*| --VARDELIM=%
3 /*| --CMTDELIM=//
4 /*| --XDUMPSCRIPT=true
5 /*| --*/
6 /*| local N = $$$
7 //===-- x86/x86_%(N)_regs.h C++ -----------------------------------------*-===//
8 //
9 // Register definitions for %(N)bit x86 code.
11 //===----------------------------------------------------------------------===//
13 #ifndef _JITCS_INT_X86_%(N)_DUMPER_H_
14 #define _JITCS_INT_X86_%(N)_DUMPER_H_
16 #include "jitcs_dumper.h"
17 #include "jitcs_ids.h"
19 namespace jitcs {
20 namespace x86_%(N) {
21 class X86_%(N)MachineDumper : public IMachineDumper {
22 public:
23   using IMachineDumper::write;
24   /*[[override]]*/ virtual void write(IDumper&, Ref<const Instruction>) const;
25   /*[[override]]*/ virtual void write(IDumper&, Ref<const VirtualRegister>) const;
26   /*[[override]]*/ virtual void write(IDumper&, InsId) const;
27 private:
28   void _write(IDumper&, InsId) const;
29   void _write(IDumper&, RegId) const;
30   void _write(IDumper&, RegClassId) const;
32 } // end of namespace jitcs::x86_%(N)
33 } // end of namespace jitcs
34 #endif
35 // _JITCS_INT_X86_%(N)_REGS_H_