2022-10-14 20:48:41 +01:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace Luau
|
|
|
|
{
|
|
|
|
namespace CodeGen
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Label;
|
2022-10-28 11:37:29 +01:00
|
|
|
struct ModuleHelpers;
|
2022-10-14 20:48:41 +01:00
|
|
|
|
2023-03-03 20:21:14 +00:00
|
|
|
namespace X64
|
|
|
|
{
|
|
|
|
|
|
|
|
class AssemblyBuilderX64;
|
2023-03-31 19:42:49 +01:00
|
|
|
struct IrRegAllocX64;
|
2023-03-03 20:21:14 +00:00
|
|
|
|
2023-03-24 18:03:04 +00:00
|
|
|
void emitInstCall(AssemblyBuilderX64& build, ModuleHelpers& helpers, int ra, int nparams, int nresults);
|
2023-06-16 18:35:18 +01:00
|
|
|
void emitInstReturn(AssemblyBuilderX64& build, ModuleHelpers& helpers, int ra, int actualResults, bool functionVariadic);
|
2023-08-25 18:23:55 +01:00
|
|
|
void emitInstSetList(IrRegAllocX64& regs, AssemblyBuilderX64& build, int ra, int rb, int count, uint32_t index, int knownSize);
|
2023-04-14 19:06:22 +01:00
|
|
|
void emitInstForGLoop(AssemblyBuilderX64& build, int ra, int aux, Label& loopRepeat);
|
2022-10-14 20:48:41 +01:00
|
|
|
|
2023-03-03 20:21:14 +00:00
|
|
|
} // namespace X64
|
2022-10-14 20:48:41 +01:00
|
|
|
} // namespace CodeGen
|
|
|
|
} // namespace Luau
|