PassConfig
in package
Compiler Pass Configuration.
This class has a default configuration embedded.
Tags
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
= []
$mergePass
private
mixed
$mergePass
$optimizationPasses
private
mixed
$optimizationPasses
$removingPasses
private
mixed
$removingPasses
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addPass()
Adds a pass.
public
addPass(CompilerPassInterface $pass[, string $type = self::TYPE_BEFORE_OPTIMIZATION ], int $priority) : mixed
Parameters
- $pass : CompilerPassInterface
- $type : string = self::TYPE_BEFORE_OPTIMIZATION
- $priority : int
Tags
Return values
mixed —getAfterRemovingPasses()
Gets all passes for the AfterRemoving pass.
public
getAfterRemovingPasses() : array<string|int, CompilerPassInterface>
Return values
array<string|int, CompilerPassInterface> —getBeforeOptimizationPasses()
Gets all passes for the BeforeOptimization pass.
public
getBeforeOptimizationPasses() : array<string|int, CompilerPassInterface>
Return values
array<string|int, CompilerPassInterface> —getBeforeRemovingPasses()
Gets all passes for the BeforeRemoving pass.
public
getBeforeRemovingPasses() : array<string|int, CompilerPassInterface>
Return values
array<string|int, CompilerPassInterface> —getMergePass()
Gets the Merge pass.
public
getMergePass() : CompilerPassInterface
Return values
CompilerPassInterface —getOptimizationPasses()
Gets all passes for the Optimization pass.
public
getOptimizationPasses() : array<string|int, CompilerPassInterface>
Return values
array<string|int, CompilerPassInterface> —getPasses()
Returns all passes in order to be processed.
public
getPasses() : array<string|int, CompilerPassInterface>
Return values
array<string|int, CompilerPassInterface> —getRemovingPasses()
Gets all passes for the Removing pass.
public
getRemovingPasses() : array<string|int, CompilerPassInterface>
Return values
array<string|int, CompilerPassInterface> —setAfterRemovingPasses()
Sets the AfterRemoving passes.
public
setAfterRemovingPasses(array<string|int, CompilerPassInterface> $passes) : mixed
Parameters
- $passes : array<string|int, CompilerPassInterface>
Return values
mixed —setBeforeOptimizationPasses()
Sets the BeforeOptimization passes.
public
setBeforeOptimizationPasses(array<string|int, CompilerPassInterface> $passes) : mixed
Parameters
- $passes : array<string|int, CompilerPassInterface>
Return values
mixed —setBeforeRemovingPasses()
Sets the BeforeRemoving passes.
public
setBeforeRemovingPasses(array<string|int, CompilerPassInterface> $passes) : mixed
Parameters
- $passes : array<string|int, CompilerPassInterface>
Return values
mixed —setMergePass()
public
setMergePass(CompilerPassInterface $pass) : mixed
Parameters
- $pass : CompilerPassInterface
Return values
mixed —setOptimizationPasses()
Sets the Optimization passes.
public
setOptimizationPasses(array<string|int, CompilerPassInterface> $passes) : mixed
Parameters
- $passes : array<string|int, CompilerPassInterface>
Return values
mixed —setRemovingPasses()
Sets the Removing passes.
public
setRemovingPasses(array<string|int, CompilerPassInterface> $passes) : mixed
Parameters
- $passes : array<string|int, CompilerPassInterface>
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