21 lines
431 B
C++
21 lines
431 B
C++
#include <pslang/jit/resolver.hpp>
|
|
#include <pslang/jit/arch/linux_x86_64/resolver.hpp>
|
|
#include <pslang/jit/arch/macos_aarch64/resolver.hpp>
|
|
|
|
namespace pslang::jit
|
|
{
|
|
|
|
std::unique_ptr<resolver> make_resolver(isa isa)
|
|
{
|
|
switch (isa)
|
|
{
|
|
case isa::x86_64:
|
|
return linux_x86_64::make_resolver();
|
|
case isa::aarch64:
|
|
return macos_aarch64::make_resolver();
|
|
}
|
|
|
|
throw std::runtime_error("Unknown ISA for resolver");
|
|
}
|
|
|
|
}
|