luau/CodeGen/include/Luau
vegorov-rbx 140e5a1495
Sync to upstream/release/566 (#853)
* Fixed incorrect lexeme generated for string parts in the middle of an
interpolated string (Fixes https://github.com/Roblox/luau/issues/744)
* DeprecatedApi lint can report some issues without type inference
information
* Fixed performance of autocomplete requests when suggestions have large
intersection types (Solves
https://github.com/Roblox/luau/discussions/847)
* Marked `table.getn`/`foreach`/`foreachi` as deprecated ([RFC:
Deprecate
table.getn/foreach/foreachi](https://github.com/Roblox/luau/blob/master/rfcs/deprecate-table-getn-foreach.md))
* With -O2 optimization level, we now optimize builtin calls based on
known argument/return count.
Note that this change can be observable if `getfenv/setfenv` is used to
substitute a builtin, especially if arity is different.
Fastcall heavy tests show a 1-2% improvement.
* Luau can now be built with clang-cl (Fixes
https://github.com/Roblox/luau/issues/736)

We also made many improvements to our experimental components.

For our new type solver:
* Overhauled data flow analysis system, fixed issues with 'repeat'
loops, global variables and type annotations
* Type refinements now work on generic table indexing with a string
literal
* Type refinements will properly track potentially 'nil' values (like
t[x] for a missing key) and their further refinements
* Internal top table type is now isomorphic to `{}` which fixes issues
when `typeof(v) == 'table'` type refinement is handled
* References to non-existent types in type annotations no longer resolve
to 'error' type like in old solver
* Improved handling of class unions in property access expressions
* Fixed default type packs
* Unsealed tables can now have metatables
* Restored expected types for function arguments

And for native code generation:
* Added min and max IR instructions mapping to vminsd/vmaxsd on x64
* We now speculatively extract direct execution fast-paths based on
expected types of expressions which provides better optimization
opportunities inside a single basic block
* Translated existing math fastcalls to IR form to improve tag guard
removal and constant propagation
2023-03-03 12:21:14 -08:00
..
AddressA64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
AssemblyBuilderA64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
AssemblyBuilderX64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
CodeAllocator.h Sync to upstream/release/550 (#723) 2022-10-21 10:54:01 -07:00
CodeBlockUnwind.h Sync to upstream/release/548 (#699) 2022-10-06 17:23:29 -07:00
CodeGen.h Sync to upstream/release/561 (#820) 2023-01-27 14:28:31 -08:00
ConditionA64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
ConditionX64.h Sync to upstream/release/552 (#735) 2022-11-04 10:33:22 -07:00
IrAnalysis.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
IrBuilder.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
IrData.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
IrDump.h Sync to upstream/release/563 (#833) 2023-02-10 11:40:38 -08:00
IrUtils.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -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/565 (#845) 2023-02-24 13:49:38 -08:00
OptimizeFinalX64.h Sync to upstream/release/563 (#833) 2023-02-10 11:40:38 -08:00
RegisterA64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
RegisterX64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
UnwindBuilder.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
UnwindBuilderDwarf2.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
UnwindBuilderWin.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00