Documentation

PassConfig
in package

Compiler Pass Configuration.

This class has a default configuration embedded.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

Table of Contents

TYPE_AFTER_REMOVING  = 'afterRemoving'
TYPE_BEFORE_OPTIMIZATION  = 'beforeOptimization'
TYPE_BEFORE_REMOVING  = 'beforeRemoving'
TYPE_OPTIMIZE  = 'optimization'
TYPE_REMOVE  = 'removing'
$afterRemovingPasses  : mixed
$beforeOptimizationPasses  : mixed
$beforeRemovingPasses  : mixed
$mergePass  : mixed
$optimizationPasses  : mixed
$removingPasses  : mixed
__construct()  : mixed
addPass()  : mixed
Adds a pass.
getAfterRemovingPasses()  : array<string|int, CompilerPassInterface>
Gets all passes for the AfterRemoving pass.
getBeforeOptimizationPasses()  : array<string|int, CompilerPassInterface>
Gets all passes for the BeforeOptimization pass.
getBeforeRemovingPasses()  : array<string|int, CompilerPassInterface>
Gets all passes for the BeforeRemoving pass.
getMergePass()  : CompilerPassInterface
Gets the Merge pass.
getOptimizationPasses()  : array<string|int, CompilerPassInterface>
Gets all passes for the Optimization pass.
getPasses()  : array<string|int, CompilerPassInterface>
Returns all passes in order to be processed.
getRemovingPasses()  : array<string|int, CompilerPassInterface>
Gets all passes for the Removing pass.
setAfterRemovingPasses()  : mixed
Sets the AfterRemoving passes.
setBeforeOptimizationPasses()  : mixed
Sets the BeforeOptimization passes.
setBeforeRemovingPasses()  : mixed
Sets the BeforeRemoving passes.
setMergePass()  : mixed
setOptimizationPasses()  : mixed
Sets the Optimization passes.
setRemovingPasses()  : mixed
Sets the Removing passes.
sortPasses()  : array<string|int, CompilerPassInterface>
Sort passes by priority.

Constants

TYPE_AFTER_REMOVING

public mixed TYPE_AFTER_REMOVING = 'afterRemoving'

TYPE_BEFORE_OPTIMIZATION

public mixed TYPE_BEFORE_OPTIMIZATION = 'beforeOptimization'

TYPE_BEFORE_REMOVING

public mixed TYPE_BEFORE_REMOVING = 'beforeRemoving'

TYPE_OPTIMIZE

public mixed TYPE_OPTIMIZE = 'optimization'

TYPE_REMOVE

public mixed TYPE_REMOVE = 'removing'

Properties

$afterRemovingPasses

private mixed $afterRemovingPasses = []

$beforeOptimizationPasses

private mixed $beforeOptimizationPasses = []

$beforeRemovingPasses

private mixed $beforeRemovingPasses = []

$optimizationPasses

private mixed $optimizationPasses

Methods

__construct()

public __construct() : mixed
Return values
mixed

sortPasses()

Sort passes by priority.

private sortPasses(array<string|int, mixed> $passes) : array<string|int, CompilerPassInterface>
Parameters
$passes : array<string|int, mixed>

CompilerPassInterface instances with their priority as key

Return values
array<string|int, CompilerPassInterface>

Search results