2022-05-27 06:08:16 +08:00
|
|
|
# Luau.Common Sources
|
|
|
|
# Note: Until 3.19, INTERFACE targets couldn't have SOURCES property set
|
|
|
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.19")
|
|
|
|
target_sources(Luau.Common PRIVATE
|
|
|
|
Common/include/Luau/Common.h
|
|
|
|
Common/include/Luau/Bytecode.h
|
2023-08-19 02:15:41 +08:00
|
|
|
Common/include/Luau/BytecodeUtils.h
|
2023-01-21 04:27:03 +08:00
|
|
|
Common/include/Luau/DenseHash.h
|
2022-07-22 05:16:54 +08:00
|
|
|
Common/include/Luau/ExperimentalFlags.h
|
Equality graphs (#1285)
Working towards a full e-graph implementation as described by the [egg
paper](https://arxiv.org/pdf/2004.03082).
The type system has a couple of places where e-graphs would've been
useful and solved some classes of problems trivially. For example:
1. Normalization and simplification cannot handle cyclic types due to
the nature of their implementation.
2. Normalization can't tell when two tables or functions are equivalent,
but simplification theoretically can albeit not implemented.
3. Normalization requires deep normalization for inhabitance check,
whereas simplification would've returned the `never` type itself
indicating uninhabited.
4. Simplification requires constraint ordering to have perfect timing to
simplify.
5. Adding a rewrite rule requires implementing it twice, once in
simplification and once again in normalization with completely different
code design making it hard to verify that their behavior is materially
equivalent.
6. In cases where we must cache for performance, two different types
that are isomorphic have different cache entries resulting in cache
misses.
7. Type family reduction can handle cyclic type families, but only if
the cycle is not obscured by a different type family instance. (`t1
where t1 = union<number, add<t1, number>>` is irreducible)
I think we're getting the point!
---
Currently the implementation is missing a few features that makes
e-graphs actually useful. Those will be coming in a future PR.
1. Pattern matching,
6. Applying rewrites,
7. Rewrite until saturation, and
8. Extracting the best e-node according to some cost function.
2024-07-17 01:35:20 +08:00
|
|
|
Common/include/Luau/Variant.h
|
2024-01-13 06:25:27 +08:00
|
|
|
Common/include/Luau/VecDeque.h
|
2022-05-27 06:08:16 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
# Luau.Ast Sources
|
|
|
|
target_sources(Luau.Ast PRIVATE
|
|
|
|
Ast/include/Luau/Ast.h
|
|
|
|
Ast/include/Luau/Confusables.h
|
|
|
|
Ast/include/Luau/Lexer.h
|
|
|
|
Ast/include/Luau/Location.h
|
|
|
|
Ast/include/Luau/ParseOptions.h
|
|
|
|
Ast/include/Luau/Parser.h
|
2022-02-18 09:18:01 +08:00
|
|
|
Ast/include/Luau/ParseResult.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Ast/include/Luau/StringUtils.h
|
2021-11-05 10:34:35 +08:00
|
|
|
Ast/include/Luau/TimeTrace.h
|
2021-10-30 04:25:12 +08:00
|
|
|
|
|
|
|
Ast/src/Ast.cpp
|
|
|
|
Ast/src/Confusables.cpp
|
|
|
|
Ast/src/Lexer.cpp
|
|
|
|
Ast/src/Location.cpp
|
|
|
|
Ast/src/Parser.cpp
|
|
|
|
Ast/src/StringUtils.cpp
|
2021-11-05 10:34:35 +08:00
|
|
|
Ast/src/TimeTrace.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Luau.Compiler Sources
|
|
|
|
target_sources(Luau.Compiler PRIVATE
|
|
|
|
Compiler/include/Luau/BytecodeBuilder.h
|
|
|
|
Compiler/include/Luau/Compiler.h
|
2021-11-20 00:10:07 +08:00
|
|
|
Compiler/include/luacode.h
|
2021-10-30 04:25:12 +08:00
|
|
|
|
|
|
|
Compiler/src/BytecodeBuilder.cpp
|
|
|
|
Compiler/src/Compiler.cpp
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/Builtins.cpp
|
2022-07-15 06:52:26 +08:00
|
|
|
Compiler/src/BuiltinFolding.cpp
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/ConstantFolding.cpp
|
2022-04-15 07:57:43 +08:00
|
|
|
Compiler/src/CostModel.cpp
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/TableShape.cpp
|
2023-06-17 01:35:18 +08:00
|
|
|
Compiler/src/Types.cpp
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/ValueTracking.cpp
|
2021-11-20 00:10:07 +08:00
|
|
|
Compiler/src/lcode.cpp
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/Builtins.h
|
2022-07-15 06:52:26 +08:00
|
|
|
Compiler/src/BuiltinFolding.h
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/ConstantFolding.h
|
2022-04-15 07:57:43 +08:00
|
|
|
Compiler/src/CostModel.h
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/TableShape.h
|
2023-06-17 01:35:18 +08:00
|
|
|
Compiler/src/Types.h
|
2022-01-15 00:20:09 +08:00
|
|
|
Compiler/src/ValueTracking.h
|
2021-10-30 04:25:12 +08:00
|
|
|
)
|
|
|
|
|
2023-08-19 02:15:41 +08:00
|
|
|
# Luau.Config Sources
|
|
|
|
target_sources(Luau.Config PRIVATE
|
|
|
|
Config/include/Luau/Config.h
|
|
|
|
Config/include/Luau/LinterConfig.h
|
|
|
|
|
|
|
|
Config/src/Config.cpp
|
|
|
|
Config/src/LinterConfig.cpp
|
|
|
|
)
|
|
|
|
|
2022-05-27 06:08:16 +08:00
|
|
|
# Luau.CodeGen Sources
|
|
|
|
target_sources(Luau.CodeGen PRIVATE
|
2022-11-05 01:33:22 +08:00
|
|
|
CodeGen/include/Luau/AddressA64.h
|
|
|
|
CodeGen/include/Luau/AssemblyBuilderA64.h
|
2022-05-27 06:08:16 +08:00
|
|
|
CodeGen/include/Luau/AssemblyBuilderX64.h
|
2022-09-09 06:14:25 +08:00
|
|
|
CodeGen/include/Luau/CodeAllocator.h
|
2022-09-16 06:38:17 +08:00
|
|
|
CodeGen/include/Luau/CodeBlockUnwind.h
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/include/Luau/CodeGen.h
|
2024-02-16 10:04:39 +08:00
|
|
|
CodeGen/include/Luau/CodeGenCommon.h
|
2022-11-05 01:33:22 +08:00
|
|
|
CodeGen/include/Luau/ConditionA64.h
|
|
|
|
CodeGen/include/Luau/ConditionX64.h
|
Sync to upstream/release/562 (#828)
* Fixed rare use-after-free in analysis during table unification
A lot of work these past months went into two new Luau components:
* A near full rewrite of the typechecker using a new deferred constraint
resolution system
* Native code generation for AoT/JiT compilation of VM bytecode into x64
(avx)/arm64 instructions
Both of these components are far from finished and we don't provide
documentation on building and using them at this point.
However, curious community members expressed interest in learning about
changes that go into these components each week, so we are now listing
them here in the 'sync' pull request descriptions.
---
New typechecker can be enabled by setting
DebugLuauDeferredConstraintResolution flag to 'true'.
It is considered unstable right now, so try it at your own risk.
Even though it already provides better type inference than the current
one in some cases, our main goal right now is to reach feature parity
with current typechecker.
Features which improve over the capabilities of the current typechecker
are marked as '(NEW)'.
Changes to new typechecker:
* Regular for loop index and parameters are now typechecked
* Invalid type annotations on local variables are ignored to improve
autocomplete
* Fixed missing autocomplete type suggestions for function arguments
* Type reduction is now performed to produce simpler types to be
presented to the user (error messages, custom LSPs)
* Internally, complex types like '((number | string) & ~(false?)) |
string' can be produced, which is just 'string | number' when simplified
* Fixed spots where support for unknown and never types was missing
* (NEW) Length operator '#' is now valid to use on top table type, this
type comes up when doing typeof(x) == "table" guards and isn't available
in current typechecker
---
Changes to native code generation:
* Additional math library fast calls are now lowered to x64: math.ldexp,
math.round, math.frexp, math.modf, math.sign and math.clamp
2023-02-04 03:26:13 +08:00
|
|
|
CodeGen/include/Luau/IrAnalysis.h
|
|
|
|
CodeGen/include/Luau/IrBuilder.h
|
2023-04-01 02:42:49 +08:00
|
|
|
CodeGen/include/Luau/IrCallWrapperX64.h
|
Sync to upstream/release/562 (#828)
* Fixed rare use-after-free in analysis during table unification
A lot of work these past months went into two new Luau components:
* A near full rewrite of the typechecker using a new deferred constraint
resolution system
* Native code generation for AoT/JiT compilation of VM bytecode into x64
(avx)/arm64 instructions
Both of these components are far from finished and we don't provide
documentation on building and using them at this point.
However, curious community members expressed interest in learning about
changes that go into these components each week, so we are now listing
them here in the 'sync' pull request descriptions.
---
New typechecker can be enabled by setting
DebugLuauDeferredConstraintResolution flag to 'true'.
It is considered unstable right now, so try it at your own risk.
Even though it already provides better type inference than the current
one in some cases, our main goal right now is to reach feature parity
with current typechecker.
Features which improve over the capabilities of the current typechecker
are marked as '(NEW)'.
Changes to new typechecker:
* Regular for loop index and parameters are now typechecked
* Invalid type annotations on local variables are ignored to improve
autocomplete
* Fixed missing autocomplete type suggestions for function arguments
* Type reduction is now performed to produce simpler types to be
presented to the user (error messages, custom LSPs)
* Internally, complex types like '((number | string) & ~(false?)) |
string' can be produced, which is just 'string | number' when simplified
* Fixed spots where support for unknown and never types was missing
* (NEW) Length operator '#' is now valid to use on top table type, this
type comes up when doing typeof(x) == "table" guards and isn't available
in current typechecker
---
Changes to native code generation:
* Additional math library fast calls are now lowered to x64: math.ldexp,
math.round, math.frexp, math.modf, math.sign and math.clamp
2023-02-04 03:26:13 +08:00
|
|
|
CodeGen/include/Luau/IrDump.h
|
|
|
|
CodeGen/include/Luau/IrData.h
|
2023-04-01 02:42:49 +08:00
|
|
|
CodeGen/include/Luau/IrRegAllocX64.h
|
Sync to upstream/release/562 (#828)
* Fixed rare use-after-free in analysis during table unification
A lot of work these past months went into two new Luau components:
* A near full rewrite of the typechecker using a new deferred constraint
resolution system
* Native code generation for AoT/JiT compilation of VM bytecode into x64
(avx)/arm64 instructions
Both of these components are far from finished and we don't provide
documentation on building and using them at this point.
However, curious community members expressed interest in learning about
changes that go into these components each week, so we are now listing
them here in the 'sync' pull request descriptions.
---
New typechecker can be enabled by setting
DebugLuauDeferredConstraintResolution flag to 'true'.
It is considered unstable right now, so try it at your own risk.
Even though it already provides better type inference than the current
one in some cases, our main goal right now is to reach feature parity
with current typechecker.
Features which improve over the capabilities of the current typechecker
are marked as '(NEW)'.
Changes to new typechecker:
* Regular for loop index and parameters are now typechecked
* Invalid type annotations on local variables are ignored to improve
autocomplete
* Fixed missing autocomplete type suggestions for function arguments
* Type reduction is now performed to produce simpler types to be
presented to the user (error messages, custom LSPs)
* Internally, complex types like '((number | string) & ~(false?)) |
string' can be produced, which is just 'string | number' when simplified
* Fixed spots where support for unknown and never types was missing
* (NEW) Length operator '#' is now valid to use on top table type, this
type comes up when doing typeof(x) == "table" guards and isn't available
in current typechecker
---
Changes to native code generation:
* Additional math library fast calls are now lowered to x64: math.ldexp,
math.round, math.frexp, math.modf, math.sign and math.clamp
2023-02-04 03:26:13 +08:00
|
|
|
CodeGen/include/Luau/IrUtils.h
|
2023-09-23 03:12:15 +08:00
|
|
|
CodeGen/include/Luau/IrVisitUseDef.h
|
2022-05-27 06:08:16 +08:00
|
|
|
CodeGen/include/Luau/Label.h
|
2024-03-23 01:47:10 +08:00
|
|
|
CodeGen/include/Luau/NativeProtoExecData.h
|
2022-05-27 06:08:16 +08:00
|
|
|
CodeGen/include/Luau/OperandX64.h
|
2023-02-25 05:49:38 +08:00
|
|
|
CodeGen/include/Luau/OptimizeConstProp.h
|
2024-03-09 08:47:53 +08:00
|
|
|
CodeGen/include/Luau/OptimizeDeadStore.h
|
2023-02-11 03:40:38 +08:00
|
|
|
CodeGen/include/Luau/OptimizeFinalX64.h
|
2022-11-05 01:33:22 +08:00
|
|
|
CodeGen/include/Luau/RegisterA64.h
|
2022-05-27 06:08:16 +08:00
|
|
|
CodeGen/include/Luau/RegisterX64.h
|
2024-03-23 01:47:10 +08:00
|
|
|
CodeGen/include/Luau/SharedCodeAllocator.h
|
2022-09-16 06:38:17 +08:00
|
|
|
CodeGen/include/Luau/UnwindBuilder.h
|
|
|
|
CodeGen/include/Luau/UnwindBuilderDwarf2.h
|
|
|
|
CodeGen/include/Luau/UnwindBuilderWin.h
|
2023-12-02 15:46:57 +08:00
|
|
|
CodeGen/include/Luau/BytecodeAnalysis.h
|
2023-11-18 02:46:18 +08:00
|
|
|
CodeGen/include/Luau/BytecodeSummary.h
|
2023-05-18 19:03:29 +08:00
|
|
|
CodeGen/include/luacodegen.h
|
2022-05-27 06:08:16 +08:00
|
|
|
|
2022-11-05 01:33:22 +08:00
|
|
|
CodeGen/src/AssemblyBuilderA64.cpp
|
2022-05-27 06:08:16 +08:00
|
|
|
CodeGen/src/AssemblyBuilderX64.cpp
|
2022-09-09 06:14:25 +08:00
|
|
|
CodeGen/src/CodeAllocator.cpp
|
2022-09-16 06:38:17 +08:00
|
|
|
CodeGen/src/CodeBlockUnwind.cpp
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/src/CodeGen.cpp
|
2023-06-24 14:19:39 +08:00
|
|
|
CodeGen/src/CodeGenAssembly.cpp
|
2024-03-31 07:14:44 +08:00
|
|
|
CodeGen/src/CodeGenContext.cpp
|
2022-10-28 18:37:29 +08:00
|
|
|
CodeGen/src/CodeGenUtils.cpp
|
2023-03-25 02:03:04 +08:00
|
|
|
CodeGen/src/CodeGenA64.cpp
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/src/CodeGenX64.cpp
|
|
|
|
CodeGen/src/EmitBuiltinsX64.cpp
|
|
|
|
CodeGen/src/EmitCommonX64.cpp
|
|
|
|
CodeGen/src/EmitInstructionX64.cpp
|
2023-01-28 06:28:31 +08:00
|
|
|
CodeGen/src/IrAnalysis.cpp
|
2023-01-21 04:27:03 +08:00
|
|
|
CodeGen/src/IrBuilder.cpp
|
2023-04-01 02:42:49 +08:00
|
|
|
CodeGen/src/IrCallWrapperX64.cpp
|
2023-01-14 06:10:01 +08:00
|
|
|
CodeGen/src/IrDump.cpp
|
2023-03-25 02:03:04 +08:00
|
|
|
CodeGen/src/IrLoweringA64.cpp
|
2023-01-28 06:28:31 +08:00
|
|
|
CodeGen/src/IrLoweringX64.cpp
|
2023-04-01 02:42:49 +08:00
|
|
|
CodeGen/src/IrRegAllocA64.cpp
|
2023-02-25 05:49:38 +08:00
|
|
|
CodeGen/src/IrRegAllocX64.cpp
|
|
|
|
CodeGen/src/IrTranslateBuiltins.cpp
|
2023-01-21 04:27:03 +08:00
|
|
|
CodeGen/src/IrTranslation.cpp
|
2023-02-11 03:40:38 +08:00
|
|
|
CodeGen/src/IrUtils.cpp
|
2023-04-22 06:14:26 +08:00
|
|
|
CodeGen/src/IrValueLocationTracking.cpp
|
2023-05-18 19:03:29 +08:00
|
|
|
CodeGen/src/lcodegen.cpp
|
2024-03-23 01:47:10 +08:00
|
|
|
CodeGen/src/NativeProtoExecData.cpp
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/src/NativeState.cpp
|
2023-02-25 05:49:38 +08:00
|
|
|
CodeGen/src/OptimizeConstProp.cpp
|
2024-03-09 08:47:53 +08:00
|
|
|
CodeGen/src/OptimizeDeadStore.cpp
|
2023-02-11 03:40:38 +08:00
|
|
|
CodeGen/src/OptimizeFinalX64.cpp
|
2022-09-16 06:38:17 +08:00
|
|
|
CodeGen/src/UnwindBuilderDwarf2.cpp
|
|
|
|
CodeGen/src/UnwindBuilderWin.cpp
|
2023-12-02 15:46:57 +08:00
|
|
|
CodeGen/src/BytecodeAnalysis.cpp
|
2023-11-18 02:46:18 +08:00
|
|
|
CodeGen/src/BytecodeSummary.cpp
|
2024-03-23 01:47:10 +08:00
|
|
|
CodeGen/src/SharedCodeAllocator.cpp
|
2022-09-24 03:17:25 +08:00
|
|
|
|
2023-04-15 02:06:22 +08:00
|
|
|
CodeGen/src/BitUtils.h
|
2022-09-24 03:17:25 +08:00
|
|
|
CodeGen/src/ByteUtils.h
|
2024-03-31 07:14:44 +08:00
|
|
|
CodeGen/src/CodeGenContext.h
|
2023-06-24 14:19:39 +08:00
|
|
|
CodeGen/src/CodeGenLower.h
|
2022-10-28 18:37:29 +08:00
|
|
|
CodeGen/src/CodeGenUtils.h
|
2023-03-25 02:03:04 +08:00
|
|
|
CodeGen/src/CodeGenA64.h
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/src/CodeGenX64.h
|
|
|
|
CodeGen/src/EmitBuiltinsX64.h
|
2023-03-04 04:21:14 +08:00
|
|
|
CodeGen/src/EmitCommon.h
|
2023-03-25 02:03:04 +08:00
|
|
|
CodeGen/src/EmitCommonA64.h
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/src/EmitCommonX64.h
|
|
|
|
CodeGen/src/EmitInstructionX64.h
|
2023-03-25 02:03:04 +08:00
|
|
|
CodeGen/src/IrLoweringA64.h
|
2023-01-28 06:28:31 +08:00
|
|
|
CodeGen/src/IrLoweringX64.h
|
2023-04-01 02:42:49 +08:00
|
|
|
CodeGen/src/IrRegAllocA64.h
|
2023-02-25 05:49:38 +08:00
|
|
|
CodeGen/src/IrTranslateBuiltins.h
|
2023-01-21 04:27:03 +08:00
|
|
|
CodeGen/src/IrTranslation.h
|
2023-04-22 06:14:26 +08:00
|
|
|
CodeGen/src/IrValueLocationTracking.h
|
2022-10-15 03:48:41 +08:00
|
|
|
CodeGen/src/NativeState.h
|
2022-05-27 06:08:16 +08:00
|
|
|
)
|
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
# Luau.Analysis Sources
|
|
|
|
target_sources(Luau.Analysis PRIVATE
|
2022-08-19 05:32:08 +08:00
|
|
|
Analysis/include/Luau/Anyification.h
|
2024-07-27 01:47:49 +08:00
|
|
|
Analysis/include/Luau/AnyTypeSummary.h
|
2022-08-05 06:35:33 +08:00
|
|
|
Analysis/include/Luau/ApplyTypeFunction.h
|
|
|
|
Analysis/include/Luau/AstJsonEncoder.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/AstQuery.h
|
|
|
|
Analysis/include/Luau/Autocomplete.h
|
|
|
|
Analysis/include/Luau/BuiltinDefinitions.h
|
2023-07-15 02:08:53 +08:00
|
|
|
Analysis/include/Luau/Cancellation.h
|
2022-04-08 05:29:01 +08:00
|
|
|
Analysis/include/Luau/Clone.h
|
2022-06-17 09:05:14 +08:00
|
|
|
Analysis/include/Luau/Constraint.h
|
2023-11-04 07:45:04 +08:00
|
|
|
Analysis/include/Luau/ConstraintGenerator.h
|
2022-06-04 06:15:45 +08:00
|
|
|
Analysis/include/Luau/ConstraintSolver.h
|
2023-03-18 03:20:37 +08:00
|
|
|
Analysis/include/Luau/ControlFlow.h
|
2022-12-03 02:09:59 +08:00
|
|
|
Analysis/include/Luau/DataFlowGraph.h
|
2022-09-09 06:14:25 +08:00
|
|
|
Analysis/include/Luau/DcrLogger.h
|
2022-10-22 01:54:01 +08:00
|
|
|
Analysis/include/Luau/Def.h
|
2023-07-08 04:10:48 +08:00
|
|
|
Analysis/include/Luau/Differ.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/Documentation.h
|
|
|
|
Analysis/include/Luau/Error.h
|
|
|
|
Analysis/include/Luau/FileResolver.h
|
|
|
|
Analysis/include/Luau/Frontend.h
|
2024-05-17 07:02:03 +08:00
|
|
|
Analysis/include/Luau/Generalization.h
|
2023-09-08 08:13:49 +08:00
|
|
|
Analysis/include/Luau/GlobalTypes.h
|
2023-06-10 01:08:00 +08:00
|
|
|
Analysis/include/Luau/InsertionOrderedMap.h
|
2022-05-27 06:08:16 +08:00
|
|
|
Analysis/include/Luau/Instantiation.h
|
2024-02-24 04:08:34 +08:00
|
|
|
Analysis/include/Luau/Instantiation2.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/IostreamHelpers.h
|
2022-08-05 06:35:33 +08:00
|
|
|
Analysis/include/Luau/JsonEmitter.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/Linter.h
|
2022-01-07 07:26:14 +08:00
|
|
|
Analysis/include/Luau/LValue.h
|
2022-10-22 01:54:01 +08:00
|
|
|
Analysis/include/Luau/Metamethods.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/Module.h
|
|
|
|
Analysis/include/Luau/ModuleResolver.h
|
2023-09-30 09:13:05 +08:00
|
|
|
Analysis/include/Luau/NonStrictTypeChecker.h
|
2022-04-15 07:57:43 +08:00
|
|
|
Analysis/include/Luau/Normalize.h
|
2024-02-03 05:32:42 +08:00
|
|
|
Analysis/include/Luau/OverloadResolution.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/Predicate.h
|
2021-11-05 23:47:21 +08:00
|
|
|
Analysis/include/Luau/Quantify.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/RecursionCounter.h
|
2023-06-10 01:08:00 +08:00
|
|
|
Analysis/include/Luau/Refinement.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/RequireTracer.h
|
2021-11-05 10:34:35 +08:00
|
|
|
Analysis/include/Luau/Scope.h
|
2023-11-11 05:10:07 +08:00
|
|
|
Analysis/include/Luau/Set.h
|
2023-05-20 03:37:30 +08:00
|
|
|
Analysis/include/Luau/Simplify.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/Substitution.h
|
2023-08-19 02:15:41 +08:00
|
|
|
Analysis/include/Luau/Subtyping.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/Symbol.h
|
2024-03-23 01:47:10 +08:00
|
|
|
Analysis/include/Luau/TableLiteralInference.h
|
2021-12-03 14:41:04 +08:00
|
|
|
Analysis/include/Luau/ToDot.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/TopoSortStatements.h
|
|
|
|
Analysis/include/Luau/ToString.h
|
|
|
|
Analysis/include/Luau/Transpiler.h
|
|
|
|
Analysis/include/Luau/TxnLog.h
|
2023-06-10 01:08:00 +08:00
|
|
|
Analysis/include/Luau/Type.h
|
2022-05-20 08:02:24 +08:00
|
|
|
Analysis/include/Luau/TypeArena.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/TypeAttach.h
|
2022-06-17 09:05:14 +08:00
|
|
|
Analysis/include/Luau/TypeChecker2.h
|
2023-07-28 23:13:53 +08:00
|
|
|
Analysis/include/Luau/TypeCheckLimits.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/TypedAllocator.h
|
2024-07-13 01:03:36 +08:00
|
|
|
Analysis/include/Luau/TypeFunction.h
|
|
|
|
Analysis/include/Luau/TypeFunctionReductionGuesser.h
|
2023-10-21 09:10:30 +08:00
|
|
|
Analysis/include/Luau/TypeFwd.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/TypeInfer.h
|
2023-10-21 09:10:30 +08:00
|
|
|
Analysis/include/Luau/TypeOrPack.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/TypePack.h
|
2023-10-21 09:10:30 +08:00
|
|
|
Analysis/include/Luau/TypePairHash.h
|
|
|
|
Analysis/include/Luau/TypePath.h
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/include/Luau/TypeUtils.h
|
|
|
|
Analysis/include/Luau/Unifiable.h
|
|
|
|
Analysis/include/Luau/Unifier.h
|
2023-08-05 03:18:54 +08:00
|
|
|
Analysis/include/Luau/Unifier2.h
|
2021-11-05 23:47:21 +08:00
|
|
|
Analysis/include/Luau/UnifierSharedState.h
|
2023-01-05 04:53:17 +08:00
|
|
|
Analysis/include/Luau/VisitType.h
|
2021-10-30 04:25:12 +08:00
|
|
|
|
2022-08-19 05:32:08 +08:00
|
|
|
Analysis/src/Anyification.cpp
|
2024-07-27 01:47:49 +08:00
|
|
|
Analysis/src/AnyTypeSummary.cpp
|
2022-08-05 06:35:33 +08:00
|
|
|
Analysis/src/ApplyTypeFunction.cpp
|
|
|
|
Analysis/src/AstJsonEncoder.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/AstQuery.cpp
|
|
|
|
Analysis/src/Autocomplete.cpp
|
|
|
|
Analysis/src/BuiltinDefinitions.cpp
|
2022-04-08 05:29:01 +08:00
|
|
|
Analysis/src/Clone.cpp
|
2022-06-17 09:05:14 +08:00
|
|
|
Analysis/src/Constraint.cpp
|
2023-11-04 07:45:04 +08:00
|
|
|
Analysis/src/ConstraintGenerator.cpp
|
2022-06-04 06:15:45 +08:00
|
|
|
Analysis/src/ConstraintSolver.cpp
|
2022-12-03 02:09:59 +08:00
|
|
|
Analysis/src/DataFlowGraph.cpp
|
2022-09-09 06:14:25 +08:00
|
|
|
Analysis/src/DcrLogger.cpp
|
2022-10-22 01:54:01 +08:00
|
|
|
Analysis/src/Def.cpp
|
2023-07-08 04:10:48 +08:00
|
|
|
Analysis/src/Differ.cpp
|
2022-08-19 05:32:08 +08:00
|
|
|
Analysis/src/EmbeddedBuiltinDefinitions.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/Error.cpp
|
|
|
|
Analysis/src/Frontend.cpp
|
2024-05-17 07:02:03 +08:00
|
|
|
Analysis/src/Generalization.cpp
|
2023-09-08 08:13:49 +08:00
|
|
|
Analysis/src/GlobalTypes.cpp
|
2022-05-27 06:08:16 +08:00
|
|
|
Analysis/src/Instantiation.cpp
|
2024-02-24 04:08:34 +08:00
|
|
|
Analysis/src/Instantiation2.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/IostreamHelpers.cpp
|
2022-08-05 06:35:33 +08:00
|
|
|
Analysis/src/JsonEmitter.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/Linter.cpp
|
2022-01-07 07:26:14 +08:00
|
|
|
Analysis/src/LValue.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/Module.cpp
|
2023-10-07 03:02:32 +08:00
|
|
|
Analysis/src/NonStrictTypeChecker.cpp
|
2022-04-15 07:57:43 +08:00
|
|
|
Analysis/src/Normalize.cpp
|
2024-02-03 05:32:42 +08:00
|
|
|
Analysis/src/OverloadResolution.cpp
|
2021-11-05 23:47:21 +08:00
|
|
|
Analysis/src/Quantify.cpp
|
2023-06-10 01:08:00 +08:00
|
|
|
Analysis/src/Refinement.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/RequireTracer.cpp
|
2021-11-05 10:34:35 +08:00
|
|
|
Analysis/src/Scope.cpp
|
2023-05-20 03:37:30 +08:00
|
|
|
Analysis/src/Simplify.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/Substitution.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
Analysis/src/Subtyping.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/Symbol.cpp
|
2024-03-23 01:47:10 +08:00
|
|
|
Analysis/src/TableLiteralInference.cpp
|
2021-12-03 14:41:04 +08:00
|
|
|
Analysis/src/ToDot.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/TopoSortStatements.cpp
|
|
|
|
Analysis/src/ToString.cpp
|
|
|
|
Analysis/src/Transpiler.cpp
|
|
|
|
Analysis/src/TxnLog.cpp
|
2023-06-10 01:08:00 +08:00
|
|
|
Analysis/src/Type.cpp
|
2022-05-20 08:02:24 +08:00
|
|
|
Analysis/src/TypeArena.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/TypeAttach.cpp
|
2022-06-17 09:05:14 +08:00
|
|
|
Analysis/src/TypeChecker2.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/TypedAllocator.cpp
|
2024-07-13 01:03:36 +08:00
|
|
|
Analysis/src/TypeFunction.cpp
|
|
|
|
Analysis/src/TypeFunctionReductionGuesser.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/TypeInfer.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
Analysis/src/TypeOrPack.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/TypePack.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
Analysis/src/TypePath.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
Analysis/src/TypeUtils.cpp
|
|
|
|
Analysis/src/Unifiable.cpp
|
|
|
|
Analysis/src/Unifier.cpp
|
2023-08-05 03:18:54 +08:00
|
|
|
Analysis/src/Unifier2.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
)
|
|
|
|
|
2024-07-17 01:51:51 +08:00
|
|
|
# Luau.EqSat Sources
|
Equality graphs (#1285)
Working towards a full e-graph implementation as described by the [egg
paper](https://arxiv.org/pdf/2004.03082).
The type system has a couple of places where e-graphs would've been
useful and solved some classes of problems trivially. For example:
1. Normalization and simplification cannot handle cyclic types due to
the nature of their implementation.
2. Normalization can't tell when two tables or functions are equivalent,
but simplification theoretically can albeit not implemented.
3. Normalization requires deep normalization for inhabitance check,
whereas simplification would've returned the `never` type itself
indicating uninhabited.
4. Simplification requires constraint ordering to have perfect timing to
simplify.
5. Adding a rewrite rule requires implementing it twice, once in
simplification and once again in normalization with completely different
code design making it hard to verify that their behavior is materially
equivalent.
6. In cases where we must cache for performance, two different types
that are isomorphic have different cache entries resulting in cache
misses.
7. Type family reduction can handle cyclic type families, but only if
the cycle is not obscured by a different type family instance. (`t1
where t1 = union<number, add<t1, number>>` is irreducible)
I think we're getting the point!
---
Currently the implementation is missing a few features that makes
e-graphs actually useful. Those will be coming in a future PR.
1. Pattern matching,
6. Applying rewrites,
7. Rewrite until saturation, and
8. Extracting the best e-node according to some cost function.
2024-07-17 01:35:20 +08:00
|
|
|
target_sources(Luau.EqSat PRIVATE
|
|
|
|
EqSat/include/Luau/EGraph.h
|
|
|
|
EqSat/include/Luau/Id.h
|
|
|
|
EqSat/include/Luau/Language.h
|
|
|
|
EqSat/include/Luau/LanguageHash.h
|
|
|
|
EqSat/include/Luau/Slice.h
|
|
|
|
EqSat/include/Luau/UnionFind.h
|
|
|
|
|
|
|
|
EqSat/src/Id.cpp
|
|
|
|
EqSat/src/UnionFind.cpp
|
|
|
|
)
|
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
# Luau.VM Sources
|
|
|
|
target_sources(Luau.VM PRIVATE
|
|
|
|
VM/include/lua.h
|
|
|
|
VM/include/luaconf.h
|
|
|
|
VM/include/lualib.h
|
|
|
|
|
|
|
|
VM/src/lapi.cpp
|
|
|
|
VM/src/laux.cpp
|
|
|
|
VM/src/lbaselib.cpp
|
|
|
|
VM/src/lbitlib.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
VM/src/lbuffer.cpp
|
2023-10-28 05:18:41 +08:00
|
|
|
VM/src/lbuflib.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/lbuiltins.cpp
|
|
|
|
VM/src/lcorolib.cpp
|
|
|
|
VM/src/ldblib.cpp
|
|
|
|
VM/src/ldebug.cpp
|
|
|
|
VM/src/ldo.cpp
|
|
|
|
VM/src/lfunc.cpp
|
|
|
|
VM/src/lgc.cpp
|
2021-12-03 14:41:04 +08:00
|
|
|
VM/src/lgcdebug.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/linit.cpp
|
|
|
|
VM/src/lmathlib.cpp
|
|
|
|
VM/src/lmem.cpp
|
2022-01-07 09:46:53 +08:00
|
|
|
VM/src/lnumprint.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/lobject.cpp
|
|
|
|
VM/src/loslib.cpp
|
|
|
|
VM/src/lperf.cpp
|
|
|
|
VM/src/lstate.cpp
|
|
|
|
VM/src/lstring.cpp
|
|
|
|
VM/src/lstrlib.cpp
|
|
|
|
VM/src/ltable.cpp
|
|
|
|
VM/src/ltablib.cpp
|
|
|
|
VM/src/ltm.cpp
|
2021-12-11 06:05:05 +08:00
|
|
|
VM/src/ludata.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/lutf8lib.cpp
|
|
|
|
VM/src/lvmexecute.cpp
|
|
|
|
VM/src/lvmload.cpp
|
|
|
|
VM/src/lvmutils.cpp
|
2022-10-15 03:48:41 +08:00
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/lapi.h
|
2023-10-21 09:10:30 +08:00
|
|
|
VM/src/lbuffer.h
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/lbuiltins.h
|
|
|
|
VM/src/lbytecode.h
|
|
|
|
VM/src/lcommon.h
|
|
|
|
VM/src/ldebug.h
|
|
|
|
VM/src/ldo.h
|
|
|
|
VM/src/lfunc.h
|
|
|
|
VM/src/lgc.h
|
|
|
|
VM/src/lmem.h
|
|
|
|
VM/src/lnumutils.h
|
|
|
|
VM/src/lobject.h
|
|
|
|
VM/src/lstate.h
|
|
|
|
VM/src/lstring.h
|
|
|
|
VM/src/ltable.h
|
|
|
|
VM/src/ltm.h
|
2021-12-11 06:05:05 +08:00
|
|
|
VM/src/ludata.h
|
2021-10-30 04:25:12 +08:00
|
|
|
VM/src/lvm.h
|
|
|
|
)
|
|
|
|
|
2022-02-05 00:45:57 +08:00
|
|
|
target_sources(isocline PRIVATE
|
|
|
|
extern/isocline/include/isocline.h
|
|
|
|
extern/isocline/src/isocline.c
|
|
|
|
)
|
|
|
|
|
2024-03-31 20:59:46 +08:00
|
|
|
# Common sources shared between all CLI apps
|
|
|
|
target_sources(Luau.CLI.lib PRIVATE
|
|
|
|
CLI/FileUtils.cpp
|
|
|
|
CLI/Flags.cpp
|
|
|
|
CLI/Flags.h
|
|
|
|
CLI/FileUtils.h
|
|
|
|
)
|
2024-03-23 01:47:10 +08:00
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
if(TARGET Luau.Repl.CLI)
|
|
|
|
# Luau.Repl.CLI Sources
|
|
|
|
target_sources(Luau.Repl.CLI PRIVATE
|
2021-12-11 06:05:05 +08:00
|
|
|
CLI/Coverage.h
|
|
|
|
CLI/Coverage.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
CLI/Profiler.h
|
|
|
|
CLI/Profiler.cpp
|
2022-01-28 07:46:05 +08:00
|
|
|
CLI/Repl.cpp
|
2023-12-02 15:46:57 +08:00
|
|
|
CLI/ReplEntry.cpp
|
|
|
|
CLI/Require.cpp)
|
2021-10-30 04:25:12 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(TARGET Luau.Analyze.CLI)
|
|
|
|
# Luau.Analyze.CLI Sources
|
|
|
|
target_sources(Luau.Analyze.CLI PRIVATE
|
|
|
|
CLI/Analyze.cpp)
|
|
|
|
endif()
|
|
|
|
|
2022-02-12 03:02:09 +08:00
|
|
|
if(TARGET Luau.Ast.CLI)
|
2023-06-10 01:08:00 +08:00
|
|
|
# Luau.Ast.CLI Sources
|
2022-02-08 04:08:43 +08:00
|
|
|
target_sources(Luau.Ast.CLI PRIVATE
|
2022-02-12 03:02:09 +08:00
|
|
|
CLI/Ast.cpp
|
|
|
|
)
|
2022-02-08 04:08:43 +08:00
|
|
|
endif()
|
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
if(TARGET Luau.UnitTest)
|
|
|
|
# Luau.UnitTest Sources
|
|
|
|
target_sources(Luau.UnitTest PRIVATE
|
2024-07-27 01:47:49 +08:00
|
|
|
tests/AnyTypeSummary.test.cpp
|
2023-04-01 02:42:49 +08:00
|
|
|
tests/AssemblyBuilderA64.test.cpp
|
2022-07-08 09:22:39 +08:00
|
|
|
tests/AssemblyBuilderX64.test.cpp
|
2022-08-05 06:35:33 +08:00
|
|
|
tests/AstJsonEncoder.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/AstQuery.test.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/AstQueryDsl.cpp
|
|
|
|
tests/AstQueryDsl.h
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/AstVisitor.test.cpp
|
|
|
|
tests/Autocomplete.test.cpp
|
|
|
|
tests/BuiltinDefinitions.test.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/ClassFixture.cpp
|
|
|
|
tests/ClassFixture.h
|
2022-09-09 06:14:25 +08:00
|
|
|
tests/CodeAllocator.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Compiler.test.cpp
|
|
|
|
tests/Config.test.cpp
|
2023-11-04 07:45:04 +08:00
|
|
|
tests/ConstraintGeneratorFixture.cpp
|
|
|
|
tests/ConstraintGeneratorFixture.h
|
2022-07-08 09:22:39 +08:00
|
|
|
tests/ConstraintSolver.test.cpp
|
2022-04-29 09:24:24 +08:00
|
|
|
tests/CostModel.test.cpp
|
2022-12-03 02:09:59 +08:00
|
|
|
tests/DataFlowGraph.test.cpp
|
2023-01-28 06:28:31 +08:00
|
|
|
tests/DenseHash.test.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
tests/DiffAsserts.cpp
|
|
|
|
tests/DiffAsserts.h
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/Differ.test.cpp
|
Equality graphs (#1285)
Working towards a full e-graph implementation as described by the [egg
paper](https://arxiv.org/pdf/2004.03082).
The type system has a couple of places where e-graphs would've been
useful and solved some classes of problems trivially. For example:
1. Normalization and simplification cannot handle cyclic types due to
the nature of their implementation.
2. Normalization can't tell when two tables or functions are equivalent,
but simplification theoretically can albeit not implemented.
3. Normalization requires deep normalization for inhabitance check,
whereas simplification would've returned the `never` type itself
indicating uninhabited.
4. Simplification requires constraint ordering to have perfect timing to
simplify.
5. Adding a rewrite rule requires implementing it twice, once in
simplification and once again in normalization with completely different
code design making it hard to verify that their behavior is materially
equivalent.
6. In cases where we must cache for performance, two different types
that are isomorphic have different cache entries resulting in cache
misses.
7. Type family reduction can handle cyclic type families, but only if
the cycle is not obscured by a different type family instance. (`t1
where t1 = union<number, add<t1, number>>` is irreducible)
I think we're getting the point!
---
Currently the implementation is missing a few features that makes
e-graphs actually useful. Those will be coming in a future PR.
1. Pattern matching,
6. Applying rewrites,
7. Rewrite until saturation, and
8. Extracting the best e-node according to some cost function.
2024-07-17 01:35:20 +08:00
|
|
|
tests/EqSat.language.test.cpp
|
|
|
|
tests/EqSat.propositional.test.cpp
|
|
|
|
tests/EqSat.slice.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Error.test.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/Fixture.cpp
|
|
|
|
tests/Fixture.h
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Frontend.test.cpp
|
2024-05-17 07:02:03 +08:00
|
|
|
tests/Generalization.test.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
tests/InsertionOrderedMap.test.cpp
|
2024-04-13 01:18:49 +08:00
|
|
|
tests/Instantiation2.test.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/IostreamOptional.h
|
2023-02-11 03:40:38 +08:00
|
|
|
tests/IrBuilder.test.cpp
|
2023-04-01 02:42:49 +08:00
|
|
|
tests/IrCallWrapperX64.test.cpp
|
2023-04-22 06:14:26 +08:00
|
|
|
tests/IrRegAllocX64.test.cpp
|
2022-08-05 06:35:33 +08:00
|
|
|
tests/JsonEmitter.test.cpp
|
2022-07-29 12:24:07 +08:00
|
|
|
tests/Lexer.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Linter.test.cpp
|
2022-01-07 07:26:14 +08:00
|
|
|
tests/LValue.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Module.test.cpp
|
|
|
|
tests/NonstrictMode.test.cpp
|
2023-10-07 03:02:32 +08:00
|
|
|
tests/NonStrictTypeChecker.test.cpp
|
2022-04-15 07:57:43 +08:00
|
|
|
tests/Normalize.test.cpp
|
2022-07-08 09:22:39 +08:00
|
|
|
tests/NotNull.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Parser.test.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
tests/RegisterCallbacks.cpp
|
|
|
|
tests/RegisterCallbacks.h
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/RequireTracer.test.cpp
|
2022-04-29 09:24:24 +08:00
|
|
|
tests/RuntimeLimits.test.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/ScopedFlags.h
|
2023-05-20 03:37:30 +08:00
|
|
|
tests/Simplify.test.cpp
|
2023-11-11 05:10:07 +08:00
|
|
|
tests/Set.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/StringUtils.test.cpp
|
2023-08-19 02:15:41 +08:00
|
|
|
tests/Subtyping.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Symbol.test.cpp
|
2021-12-03 14:41:04 +08:00
|
|
|
tests/ToDot.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TopoSort.test.cpp
|
|
|
|
tests/ToString.test.cpp
|
|
|
|
tests/Transpiler.test.cpp
|
2023-05-13 01:50:47 +08:00
|
|
|
tests/TxnLog.test.cpp
|
2024-07-13 01:03:36 +08:00
|
|
|
tests/TypeFunction.test.cpp
|
2021-11-05 10:34:35 +08:00
|
|
|
tests/TypeInfer.aliases.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.annotations.test.cpp
|
2022-03-18 08:46:04 +08:00
|
|
|
tests/TypeInfer.anyerror.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.builtins.test.cpp
|
2023-03-18 03:20:37 +08:00
|
|
|
tests/TypeInfer.cfa.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.classes.test.cpp
|
|
|
|
tests/TypeInfer.definitions.test.cpp
|
2022-03-18 08:46:04 +08:00
|
|
|
tests/TypeInfer.functions.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.generics.test.cpp
|
|
|
|
tests/TypeInfer.intersectionTypes.test.cpp
|
2022-03-18 08:46:04 +08:00
|
|
|
tests/TypeInfer.loops.test.cpp
|
|
|
|
tests/TypeInfer.modules.test.cpp
|
2022-10-28 18:37:29 +08:00
|
|
|
tests/TypeInfer.negations.test.cpp
|
2022-03-18 08:46:04 +08:00
|
|
|
tests/TypeInfer.oop.test.cpp
|
|
|
|
tests/TypeInfer.operators.test.cpp
|
|
|
|
tests/TypeInfer.primitives.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.provisional.test.cpp
|
|
|
|
tests/TypeInfer.refinements.test.cpp
|
2021-11-20 00:10:07 +08:00
|
|
|
tests/TypeInfer.singletons.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.tables.test.cpp
|
|
|
|
tests/TypeInfer.test.cpp
|
|
|
|
tests/TypeInfer.tryUnify.test.cpp
|
2023-12-02 15:46:57 +08:00
|
|
|
tests/TypeInfer.typePacks.test.cpp
|
2023-10-14 04:20:12 +08:00
|
|
|
tests/TypeInfer.typestates.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeInfer.unionTypes.test.cpp
|
2022-07-08 09:22:39 +08:00
|
|
|
tests/TypeInfer.unknownnever.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypePack.test.cpp
|
2023-10-21 09:10:30 +08:00
|
|
|
tests/TypePath.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/TypeVar.test.cpp
|
2023-08-05 03:18:54 +08:00
|
|
|
tests/Unifier2.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Variant.test.cpp
|
2024-01-13 06:25:27 +08:00
|
|
|
tests/VecDeque.test.cpp
|
2023-01-05 04:53:17 +08:00
|
|
|
tests/VisitType.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/main.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(TARGET Luau.Conformance)
|
|
|
|
# Luau.Conformance Sources
|
|
|
|
target_sources(Luau.Conformance PRIVATE
|
2023-09-08 08:13:49 +08:00
|
|
|
tests/RegisterCallbacks.h
|
|
|
|
tests/RegisterCallbacks.cpp
|
2024-05-11 02:21:45 +08:00
|
|
|
tests/ConformanceIrHooks.h
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/Conformance.test.cpp
|
2024-01-20 02:04:46 +08:00
|
|
|
tests/IrLowering.test.cpp
|
2024-04-13 01:18:49 +08:00
|
|
|
tests/SharedCodeAllocator.test.cpp
|
2021-10-30 04:25:12 +08:00
|
|
|
tests/main.cpp)
|
|
|
|
endif()
|
2021-11-23 01:59:15 +08:00
|
|
|
|
2022-01-28 07:46:05 +08:00
|
|
|
if(TARGET Luau.CLI.Test)
|
|
|
|
# Luau.CLI.Test Sources
|
|
|
|
target_sources(Luau.CLI.Test PRIVATE
|
|
|
|
CLI/Coverage.h
|
|
|
|
CLI/Coverage.cpp
|
|
|
|
CLI/Profiler.h
|
|
|
|
CLI/Profiler.cpp
|
|
|
|
CLI/Repl.cpp
|
2023-12-02 15:46:57 +08:00
|
|
|
CLI/Require.cpp
|
2022-10-22 01:54:01 +08:00
|
|
|
|
2023-09-08 08:13:49 +08:00
|
|
|
tests/RegisterCallbacks.h
|
|
|
|
tests/RegisterCallbacks.cpp
|
2022-01-28 07:46:05 +08:00
|
|
|
tests/Repl.test.cpp
|
2023-12-02 15:46:57 +08:00
|
|
|
tests/RequireByString.test.cpp
|
2022-01-28 07:46:05 +08:00
|
|
|
tests/main.cpp)
|
|
|
|
endif()
|
|
|
|
|
2021-11-23 01:59:15 +08:00
|
|
|
if(TARGET Luau.Web)
|
|
|
|
# Luau.Web Sources
|
|
|
|
target_sources(Luau.Web PRIVATE
|
|
|
|
CLI/Web.cpp)
|
|
|
|
endif()
|
2022-08-12 05:01:33 +08:00
|
|
|
|
|
|
|
if(TARGET Luau.Reduce.CLI)
|
2023-06-10 01:08:00 +08:00
|
|
|
# Luau.Reduce.CLI Sources
|
2022-08-12 05:01:33 +08:00
|
|
|
target_sources(Luau.Reduce.CLI PRIVATE
|
|
|
|
CLI/Reduce.cpp
|
|
|
|
)
|
|
|
|
endif()
|
2023-06-10 01:08:00 +08:00
|
|
|
|
|
|
|
if(TARGET Luau.Compile.CLI)
|
|
|
|
# Luau.Compile.CLI Sources
|
|
|
|
target_sources(Luau.Compile.CLI PRIVATE
|
|
|
|
CLI/Compile.cpp)
|
|
|
|
endif()
|
2023-11-18 02:46:18 +08:00
|
|
|
|
|
|
|
if(TARGET Luau.Bytecode.CLI)
|
|
|
|
# Luau.Bytecode.CLI Sources
|
|
|
|
target_sources(Luau.Bytecode.CLI PRIVATE
|
|
|
|
CLI/Bytecode.cpp)
|
|
|
|
endif()
|