2015-10-10 06:59:40 +00:00
|
|
|
#ifndef HECLBACKEND_HPP
|
|
|
|
#define HECLBACKEND_HPP
|
|
|
|
|
2015-10-14 02:16:21 +00:00
|
|
|
#include "HECL/Frontend.hpp"
|
|
|
|
|
2015-10-10 06:59:40 +00:00
|
|
|
namespace HECL
|
|
|
|
{
|
|
|
|
namespace Backend
|
|
|
|
{
|
|
|
|
|
2015-10-14 02:16:21 +00:00
|
|
|
using IR = Frontend::IR;
|
|
|
|
using Diagnostics = Frontend::Diagnostics;
|
|
|
|
using SourceLocation = Frontend::SourceLocation;
|
|
|
|
using ArithmeticOp = IR::Instruction::ArithmeticOpType;
|
|
|
|
|
2015-10-10 06:59:40 +00:00
|
|
|
class IBackend
|
|
|
|
{
|
|
|
|
public:
|
2015-10-14 02:16:21 +00:00
|
|
|
virtual void reset(const IR& ir, Diagnostics& diag)=0;
|
2015-10-10 06:59:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // HECLBACKEND_HPP
|