Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/CodeGen/src/IrTranslateBuiltins.h
2725 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
namespace Luau
5
{
6
namespace CodeGen
7
{
8
9
struct IrBuilder;
10
struct IrOp;
11
12
enum class BuiltinImplType
13
{
14
None,
15
UsesFallback, // Uses fallback for unsupported cases
16
Full, // Is either implemented in full, or exits to VM
17
};
18
19
struct BuiltinImplResult
20
{
21
BuiltinImplType type;
22
int actualResultCount;
23
};
24
25
BuiltinImplResult translateBuiltin(
26
IrBuilder& build,
27
int bfid,
28
int ra,
29
int arg,
30
IrOp args,
31
IrOp arg3,
32
int nparams,
33
int nresults,
34
IrOp fallback,
35
int pcpos
36
);
37
38
} // namespace CodeGen
39
} // namespace Luau
40
41