18 lines
401 B
C++
18 lines
401 B
C++
|
|
// TODO: store all of values, allocated registers, stack offsets in single allocator
|
|
// to be able to find out which kind a specific temp register represent
|
|
|
|
#pragma once
|
|
#include <cstddef>
|
|
#include <cstdarg>
|
|
#include "prelude/string.hpp"
|
|
#include "ir/ir.hpp"
|
|
|
|
class CodeGenerator
|
|
{
|
|
public:
|
|
virtual ~CodeGenerator() {};
|
|
|
|
virtual void Generate(const char* filename, View<IR::Op*> ops) = 0;
|
|
};
|