mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-14 06:00:39 +00:00
28 lines
563 B
C
28 lines
563 B
C
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
||
|
#pragma once
|
||
|
|
||
|
namespace Luau
|
||
|
{
|
||
|
namespace CodeGen
|
||
|
{
|
||
|
|
||
|
struct IrBuilder;
|
||
|
struct IrOp;
|
||
|
|
||
|
enum class BuiltinImplType
|
||
|
{
|
||
|
None,
|
||
|
UsesFallback, // Uses fallback for unsupported cases
|
||
|
};
|
||
|
|
||
|
struct BuiltinImplResult
|
||
|
{
|
||
|
BuiltinImplType type;
|
||
|
int actualResultCount;
|
||
|
};
|
||
|
|
||
|
BuiltinImplResult translateBuiltin(IrBuilder& build, int bfid, int ra, int arg, IrOp args, int nparams, int nresults, IrOp fallback);
|
||
|
|
||
|
} // namespace CodeGen
|
||
|
} // namespace Luau
|