mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
663b5c7899
* xmm call and return working, needs some careful double checking and tests * clean up and test
17 lines
586 B
C++
17 lines
586 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <optional>
|
|
|
|
#include "common/type_system/TypeSystem.h"
|
|
#include "goalc/emitter/Register.h"
|
|
|
|
struct CallingConvention {
|
|
std::vector<emitter::Register> arg_regs;
|
|
std::optional<emitter::Register> return_reg;
|
|
};
|
|
|
|
std::vector<emitter::Register> get_arg_registers(const TypeSystem& type_system,
|
|
const std::vector<TypeSpec>& arg_types);
|
|
CallingConvention get_function_calling_convention(const TypeSpec& function_type,
|
|
const TypeSystem& type_system); |