2023-12-02 07:46:57 +00:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Luau/Common.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace Luau
|
|
|
|
{
|
|
|
|
namespace CodeGen
|
|
|
|
{
|
|
|
|
|
|
|
|
struct IrFunction;
|
2024-05-10 19:21:45 +01:00
|
|
|
struct HostIrHooks;
|
2023-12-02 07:46:57 +00:00
|
|
|
|
2024-04-25 23:26:09 +01:00
|
|
|
void loadBytecodeTypeInfo(IrFunction& function);
|
2023-12-02 07:46:57 +00:00
|
|
|
void buildBytecodeBlocks(IrFunction& function, const std::vector<uint8_t>& jumpTargets);
|
2024-05-10 19:21:45 +01:00
|
|
|
void analyzeBytecodeTypes(IrFunction& function, const HostIrHooks& hostHooks);
|
2023-12-02 07:46:57 +00:00
|
|
|
|
|
|
|
} // namespace CodeGen
|
|
|
|
} // namespace Luau
|