luau/CodeGen/include/Luau
aaron 9c588be16d
Sync to upstream/release/610 (#1154)
# What's changed?

* Check interrupt handler inside the pattern match engine to eliminate
potential for programs to hang during string library function execution.
* Allow iteration over table properties to pass the old type solver. 

### Native Code Generation

* Use in-place memory operands for math library operations on x64.
* Replace opaque bools with separate enum classes in IrDump to improve
code maintainability.
* Translate operations on inferred vectors to IR.
* Enable support for debugging native-compiled functions in Roblox
Studio.

### New Type Solver

* Rework type inference for boolean and string literals to introduce
bounded free types (bounded below by the singleton type, and above by
the primitive type) and reworked primitive type constraint to decide
which is the appropriate type for the literal.
* Introduce `FunctionCheckConstraint` to handle bidirectional
typechecking for function calls, pushing the expected parameter types
from the function onto the arguments.
* Introduce `union` and `intersect` type families to compute deferred
simplified unions and intersections to be employed by the constraint
generation logic in the new solver.
* Implement support for expanding the domain of local types in
`Unifier2`.
* Rework type inference for iteration variables bound by for in loops to
use local types.
* Change constraint blocking logic to use a set to prevent accidental
re-blocking.
* Add logic to detect missing return statements in functions.

### Internal Contributors

Co-authored-by: Aaron Weiss <aaronweiss@roblox.com>
Co-authored-by: Alexander McCord <amccord@roblox.com>
Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Aviral Goel <agoel@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>

---------

Co-authored-by: Alexander McCord <amccord@roblox.com>
Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Vighnesh <vvijay@roblox.com>
Co-authored-by: Aviral Goel <agoel@roblox.com>
Co-authored-by: David Cope <dcope@roblox.com>
Co-authored-by: Lily Brown <lbrown@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
2024-01-26 19:20:56 -08:00
..
AddressA64.h Sync to upstream/release/580 (#951) 2023-06-09 10:08:00 -07:00
AssemblyBuilderA64.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
AssemblyBuilderX64.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
BytecodeAnalysis.h Sync to upstream/release/605 (#1118) 2023-12-01 23:46:57 -08:00
BytecodeSummary.h Add missing include file to BytecodeSummary.h (#1110) 2023-11-21 08:28:54 -08:00
CodeAllocator.h Sync to upstream/release/590 (#1008) 2023-08-11 07:42:37 -07:00
CodeBlockUnwind.h Sync to upstream/release/576 (#928) 2023-05-12 10:50:47 -07:00
CodeGen.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
ConditionA64.h Sync to upstream/release/573 (#903) 2023-04-21 15:14:26 -07:00
ConditionX64.h Sync to upstream/release/590 (#1008) 2023-08-11 07:42:37 -07:00
IrAnalysis.h Sync to upstream/release/599 (#1069) 2023-10-13 13:20:12 -07:00
IrBuilder.h Sync to upstream/release/605 (#1118) 2023-12-01 23:46:57 -08:00
IrCallWrapperX64.h Sync to upstream/release/572 (#899) 2023-04-14 11:06:22 -07:00
IrData.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
IrDump.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
IrRegAllocX64.h Sync to upstream/release/596 (#1050) 2023-09-22 12:12:15 -07:00
IrUtils.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
IrVisitUseDef.h Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
Label.h Sync to upstream/release/529 (#505) 2022-05-26 15:08:16 -07:00
OperandX64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
OptimizeConstProp.h Sync to upstream/release/574 (#910) 2023-04-28 12:55:13 -07:00
OptimizeFinalX64.h Sync to upstream/release/563 (#833) 2023-02-10 11:40:38 -08:00
RegisterA64.h Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00
RegisterX64.h Sync to upstream/release/572 (#899) 2023-04-14 11:06:22 -07:00
UnwindBuilder.h Sync to upstream/release/592 (#1018) 2023-08-25 10:23:55 -07:00
UnwindBuilderDwarf2.h Sync to upstream/release/592 (#1018) 2023-08-25 10:23:55 -07:00
UnwindBuilderWin.h Sync to upstream/release/592 (#1018) 2023-08-25 10:23:55 -07:00