mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 05:20:38 +00:00
8453570658
* `Luau.Analyze.CLI` now has experimental support for concurrent type checking. Use the option `-jN` where `N` is the number of threads to spawn. * Improve typechecking performance by ~17% by making the function `Luau::follow` much more efficient. * Tighten up the type of `os.date` * Removed `ParseOptions::allowTypeAnnotations` and `ParseOptions::supportContinueStatement` New solver * Improve the reliability of function overload resolution * More work toward supporting parallel type checking * Fix a bug in inference of `==` and `~=` which would erroneously infer that the operands were `boolean` * Better error reporting when `for...in` loops are used incorrectly. CodeGen * Fix unwind registration when libunwind is used on Linux * Fixed replaced IR instruction use count * Convert X64 unwind info generation to standard prologue * Implement A64 unwind info support for Dwarf2 * Live in/out data for linear blocks is now created * Add side-exit VM register requirements to the IR dump * Reuse ConstPropState between block chains * Remove redundant base update --------- Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include "Luau/IrData.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Luau
|
|
{
|
|
namespace CodeGen
|
|
{
|
|
|
|
struct CfgInfo;
|
|
|
|
const char* getCmdName(IrCmd cmd);
|
|
const char* getBlockKindName(IrBlockKind kind);
|
|
|
|
struct IrToStringContext
|
|
{
|
|
std::string& result;
|
|
const std::vector<IrBlock>& blocks;
|
|
const std::vector<IrConst>& constants;
|
|
const CfgInfo& cfg;
|
|
};
|
|
|
|
void toString(IrToStringContext& ctx, const IrInst& inst, uint32_t index);
|
|
void toString(IrToStringContext& ctx, const IrBlock& block, uint32_t index); // Block title
|
|
void toString(IrToStringContext& ctx, IrOp op);
|
|
|
|
void toString(std::string& result, IrConst constant);
|
|
|
|
void toStringDetailed(IrToStringContext& ctx, const IrBlock& block, uint32_t blockIdx, const IrInst& inst, uint32_t instIdx, bool includeUseInfo);
|
|
void toStringDetailed(IrToStringContext& ctx, const IrBlock& block, uint32_t index, bool includeUseInfo); // Block title
|
|
|
|
std::string toString(const IrFunction& function, bool includeUseInfo);
|
|
|
|
std::string dump(const IrFunction& function);
|
|
|
|
std::string toDot(const IrFunction& function, bool includeInst);
|
|
|
|
std::string dumpDot(const IrFunction& function, bool includeInst);
|
|
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|