luau/CodeGen/include/Luau
vegorov-rbx 42a2805f85
Sync to upstream/release/568 (#865)
* A small subset of control-flow refinements have been added to
recognize type options that are unreachable after a
conditional/unconditional code block. (Fixes
https://github.com/Roblox/luau/issues/356).

Some examples:
```lua
local function f(x: string?)
    if not x then return end

    -- x is 'string' here
end
```
Throwing calls like `error` or `assert(false)` instead of 'return' are
also recognized.
Existing complex refinements like type/typeof and tagged union checks
are expected to work, among others.

To enable this feature, `LuauTinyControlFlowAnalysis` exclusion has to
be removed from `ExperimentalFlags.h`.
If will become enabled unconditionally in the near future.

* Linter has been integrated into the typechecker analysis so that
type-aware lint warnings can work in any mode
`Frontend::lint` methods were deprecated, `Frontend::check` has to be
used instead with `runLintChecks` option set.
Resulting lint warning are located inside `CheckResult`.

* Fixed large performance drop and increased memory consumption when
array is filled at an offset (Fixes
https://github.com/Roblox/luau/issues/590)
* Part of [Type error suppression
RFC](https://github.com/Roblox/luau/blob/master/rfcs/type-error-suppression.md)
was implemented making subtyping checks with `any` type transitive.

---
In our work on the new type-solver:
* `--!nocheck` mode no longer reports type errors
* New solver will not be used for `--!nonstrict` modules until all
issues with strict mode typechecking are fixed
* Added control-flow aware type refinements mentioned earlier

In native code generation:
* `LOP_NAMECALL` has been translated to IR
* `type` and `typeof` builtin fastcalls have been translated to
IR/assembly
* Additional steps were taken towards arm64 support
2023-03-17 12:20:37 -07:00
..
AddressA64.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
AssemblyBuilderA64.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
AssemblyBuilderX64.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
CodeAllocator.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -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/568 (#865) 2023-03-17 12:20:37 -07:00
IrBuilder.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
IrData.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
IrDump.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
IrUtils.h Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07: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