![]() |
ArkScript
A small, lisp-inspired, functional scripting language
|
Classes | |
| struct | Block |
| Block of IR entities, with attached metadata. More... | |
| class | Entity |
Typedefs | |
| using | label_t = std::size_t |
Enumerations | |
| enum class | Kind { Label , Goto , GotoWithArg , Opcode , Opcode2Args , Opcode3Args } |
Variables | |
| constexpr uint16_t | MaxValueForDualArg = 0x0fff |
| The maximum value an argument can have when an IR entity has two arguments. | |
| constexpr uint16_t | MaxValueForSmallNumber = 0x0800 |
| constexpr std::string_view | AnonymousBlockName = "#anonymous" |
| using Ark::internal::IR::label_t = std::size_t |
Definition at line 35 of file Entity.hpp.
|
strong |
| Enumerator | |
|---|---|
| Label | |
| Goto | |
| GotoWithArg | |
| Opcode | |
| Opcode2Args | |
| Opcode3Args | |
Definition at line 25 of file Entity.hpp.
|
constexpr |
Definition at line 42 of file Entity.hpp.
Referenced by Ark::internal::IRInliner::canBeInlined(), Ark::internal::ASTLowerer::compileFunction(), Ark::internal::IR::Block::debugName(), and Ark::internal::IRInliner::extractPagesMetadata().
|
constexpr |
The maximum value an argument can have when an IR entity has two arguments.
Definition at line 38 of file Entity.hpp.
Referenced by Ark::internal::IROptimizer::canBeOptimisedSafely(), Ark::internal::IROptimizer::isPositiveNumberInlinable(), and Ark::internal::IROptimizer::isSmallerNumberInlinable().
|
constexpr |
Definition at line 39 of file Entity.hpp.
Referenced by Ark::internal::IROptimizer::isSmallerNumberInlinable(), and Ark::internal::IROptimizer::smallerNumberAsArg().