22 lines
470 B
C++
22 lines
470 B
C++
#include <pslang/jit/jit.hpp>
|
|
#include <pslang/jit/arch/aarch64/compiler.hpp>
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace pslang::jit
|
|
{
|
|
|
|
compiled_module compile(ast::statement_list_ptr const & statements, jit::abi abi)
|
|
{
|
|
switch (abi)
|
|
{
|
|
case abi::itanium:
|
|
throw std::runtime_error("Itanium ABI JIT not implemented");
|
|
case abi::msvc:
|
|
throw std::runtime_error("MSVC ABI JIT not implemented");
|
|
case abi::armv8:
|
|
return aarch64::compile(statements);
|
|
}
|
|
}
|
|
|
|
}
|