From 5a9df26edf9c4ce1188e091db27a4cda85ebd12a Mon Sep 17 00:00:00 2001 From: jpd002 Date: Wed, 5 May 2010 04:38:51 +0000 Subject: [PATCH] CodeGen: Added x64 code generator skeleton. git-svn-id: http://svn.purei.org/purei/trunk@641 b36208d7-6611-0410-8bec-b1987f11c4a2 --- .../CodeGen/Source/Jitter_CodeGen_x86_64.cpp | 18 ++++++++++++++++ tools/CodeGen/Source/Jitter_CodeGen_x86_64.h | 21 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 tools/CodeGen/Source/Jitter_CodeGen_x86_64.cpp create mode 100644 tools/CodeGen/Source/Jitter_CodeGen_x86_64.h diff --git a/tools/CodeGen/Source/Jitter_CodeGen_x86_64.cpp b/tools/CodeGen/Source/Jitter_CodeGen_x86_64.cpp new file mode 100644 index 00000000..3b72d5fa --- /dev/null +++ b/tools/CodeGen/Source/Jitter_CodeGen_x86_64.cpp @@ -0,0 +1,18 @@ +#include "Jitter_CodeGen_x86_64.h" + +using namespace Jitter; + +CCodeGen_x86_64::CCodeGen_x86_64() +{ + +} + +CCodeGen_x86_64::~CCodeGen_x86_64() +{ + +} + +unsigned int CCodeGen_x86_64::GetAvailableRegisterCount() const +{ + return 7; +} diff --git a/tools/CodeGen/Source/Jitter_CodeGen_x86_64.h b/tools/CodeGen/Source/Jitter_CodeGen_x86_64.h new file mode 100644 index 00000000..14817685 --- /dev/null +++ b/tools/CodeGen/Source/Jitter_CodeGen_x86_64.h @@ -0,0 +1,21 @@ +#ifndef _JITTER_CODEGEN_X86_64_H_ +#define _JITTER_CODEGEN_X86_64_H_ + +#include "Jitter_CodeGen_x86.h" + +namespace Jitter +{ + class CCodeGen_x86_64 : public CCodeGen_x86 + { + public: + CCodeGen_x86_64(); + virtual ~CCodeGen_x86_64(); + + unsigned int GetAvailableRegisterCount() const; + + private: + + }; +} + +#endif