luau/CodeGen/src
Hunter Goldstein 6ff0650a8d
Sync to upstream/release/682 (#1912)
# What's changed?

Another somewhat quiet week! Don't let the large PR fool you, this is
mostly ...

## New Solver
* The code for type functions has been re-organized: instead of
_everything_ living in `TypeFunction.h` and `TypeFunction.cpp`, we now
have separate files for the type function inference machinery
(`TypeFunction.h`), definitions of built-in type functions
(`BuiltinTypeFunctions.h`), and the implementation of user defined type
functions (`UserDefinedTypeFunction.h`).
* Refinements against `*no-refine*`, a sentinel type indicating that no
refinements should occur, are now _always_ resolved, even if the target
of the refinement would be otherwise pending, such as another type
function.

## Autocomplete
* Fixed autocomplete to prefer table property completion to string
singleton completion. In the below example, the types associated with
each member of `foo` will be displayed in autocomplete popups.
```
local foo = {
    ["Item/Foo"] = 42,
    ["Item/Bar"] = "it's true",
    ["Item/Baz"] = true,
}
foo["|"] -- cursor at `|`
```

## Native Codegen
* Fixed native compilation lowering of the new global lookup
instruction, which caused code generation to fail with an error or to
evaluate incorrect results. Issue affected 678-681 releases when all
flags were enabled.

---

Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Ariel Weiss <aaronweiss@roblox.com>
Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com>
Co-authored-by: Sora Kanosue <skanosue@roblox.com>
Co-authored-by: Talha Pathan <tpathan@roblox.com>
Co-authored-by: Vighnesh Vijay <vvijay@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
2025-07-11 11:36:47 -07:00
..
AssemblyBuilderA64.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
AssemblyBuilderX64.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
BitUtils.h Sync to upstream/release/574 (#910) 2023-04-28 12:55:13 -07:00
BytecodeAnalysis.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
BytecodeSummary.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
ByteUtils.h Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
CodeAllocator.cpp Sync to upstream/release/681 (#1902) 2025-07-04 09:26:45 -07:00
CodeBlockUnwind.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
CodeGen.cpp Sync to upstream/release/663 (#1699) 2025-02-28 14:42:30 -08:00
CodeGenA64.cpp Sync to upstream/release/675 (#1845) 2025-05-27 14:24:46 -07:00
CodeGenA64.h Sync to upstream/release/629 (#1290) 2024-06-07 10:51:12 -07:00
CodeGenAssembly.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
CodeGenContext.cpp Sync to upstream/release/675 (#1845) 2025-05-27 14:24:46 -07:00
CodeGenContext.h Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00
CodeGenLower.h Sync to upstream/release/663 (#1699) 2025-02-28 14:42:30 -08:00
CodeGenUtils.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
CodeGenUtils.h Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
CodeGenX64.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
CodeGenX64.h Sync to upstream/release/629 (#1290) 2024-06-07 10:51:12 -07:00
EmitBuiltinsX64.cpp Sync to upstream/release/640 (#1374) 2024-08-23 09:35:30 -07:00
EmitBuiltinsX64.h Sync to upstream/release/631 (#1299) 2024-06-20 16:37:55 -07:00
EmitCommon.h Sync to upstream/release/606 (#1127) 2023-12-08 13:50:16 -08:00
EmitCommonA64.h Sync to upstream/release/676 (#1856) 2025-05-30 11:17:49 -07:00
EmitCommonX64.cpp Sync to upstream/release/675 (#1845) 2025-05-27 14:24:46 -07:00
EmitCommonX64.h Sync to upstream/release/674 (#1832) 2025-05-16 12:39:58 -07:00
EmitInstructionX64.cpp Sync to upstream/release/657 (#1619) 2025-01-17 14:55:39 -08:00
EmitInstructionX64.h Sync to upstream/release/592 (#1018) 2023-08-25 10:23:55 -07:00
IrAnalysis.cpp Sync to upstream/release/656 (#1612) 2025-01-10 11:34:39 -08:00
IrBuilder.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
IrCallWrapperX64.cpp Sync to upstream/release/613 (#1167) 2024-02-15 18:04:39 -08:00
IrDump.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
IrLoweringA64.cpp Sync to upstream/release/682 (#1912) 2025-07-11 11:36:47 -07:00
IrLoweringA64.h Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
IrLoweringX64.cpp Sync to upstream/release/682 (#1912) 2025-07-11 11:36:47 -07:00
IrLoweringX64.h Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
IrRegAllocA64.cpp Sync to upstream/release/657 (#1619) 2025-01-17 14:55:39 -08:00
IrRegAllocA64.h Sync to upstream/release/595 (#1044) 2023-09-15 10:26:59 -07:00
IrRegAllocX64.cpp Sync to upstream/release/657 (#1619) 2025-01-17 14:55:39 -08:00
IrTranslateBuiltins.cpp Sync to upstream/release/670 (#1779) 2025-04-18 13:44:39 -07:00
IrTranslateBuiltins.h Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00
IrTranslation.cpp Sync to upstream/release/682 (#1912) 2025-07-11 11:36:47 -07:00
IrTranslation.h Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00
IrUtils.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
IrValueLocationTracking.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
IrValueLocationTracking.h Sync to upstream/release/596 (#1050) 2023-09-22 12:12:15 -07:00
lcodegen.cpp Sync to upstream/release/625 (#1252) 2024-05-10 11:21:45 -07:00
NativeProtoExecData.cpp Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00
NativeState.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
NativeState.h Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
OptimizeConstProp.cpp Sync to upstream/release/682 (#1912) 2025-07-11 11:36:47 -07:00
OptimizeDeadStore.cpp Sync to upstream/release/678 (#1878) 2025-06-13 09:36:35 -07:00
OptimizeFinalX64.cpp Sync to upstream/release/615 (#1175) 2024-03-01 10:45:26 -08:00
SharedCodeAllocator.cpp Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00
UnwindBuilderDwarf2.cpp Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00
UnwindBuilderWin.cpp Sync to upstream/release/637 (#1354) 2024-08-02 07:30:04 -07:00