Z / libzlang 0.29.0
C99 runtime library and the Zlang 0.29 source-to-source compiler
Loading...
Searching...
No Matches
optimizer.h File Reference

Transpile-time optimizer API. More...

#include "zlang/compiler/ast.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  zlang_optimizer_context_t

Macros

#define ZLANG_TTO_WORKLIST_CAPACITY   256U
#define ZLANG_TTO_MAX_ROUNDS   64U

Typedefs

typedef struct zlang_optimizer_context_t zlang_optimizer_context_t

Functions

void zlang_optimizer_context_init (zlang_optimizer_context_t *context)
bool zlang_optimize_program (zlang_program_t *program, zlang_optimizer_context_t *context)

Detailed Description

Transpile-time optimizer API.

Macro Definition Documentation

◆ ZLANG_TTO_MAX_ROUNDS

#define ZLANG_TTO_MAX_ROUNDS   64U

◆ ZLANG_TTO_WORKLIST_CAPACITY

#define ZLANG_TTO_WORKLIST_CAPACITY   256U

Typedef Documentation

◆ zlang_optimizer_context_t

typedef struct zlang_optimizer_context_t zlang_optimizer_context_t

Function Documentation

◆ zlang_optimize_program()

bool zlang_optimize_program ( zlang_program_t * program,
zlang_optimizer_context_t * context )

◆ zlang_optimizer_context_init()

void zlang_optimizer_context_init ( zlang_optimizer_context_t * context)