| Methods |
public
|
__construct()
|
#
|
public
|
getPasses(): CompilerPassInterface[]
Returns all passes in order to be processed.
Returns all passes in order to be processed.
|
#
|
public
|
addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION, int $priority = 0): void
Adds a pass.
|
#
|
public
|
getAfterRemovingPasses(): CompilerPassInterface[]
Gets all passes for the AfterRemoving pass.
Gets all passes for the AfterRemoving pass.
|
#
|
public
|
getBeforeOptimizationPasses(): CompilerPassInterface[]
Gets all passes for the BeforeOptimization pass.
Gets all passes for the BeforeOptimization pass.
|
#
|
public
|
getBeforeRemovingPasses(): CompilerPassInterface[]
Gets all passes for the BeforeRemoving pass.
Gets all passes for the BeforeRemoving pass.
|
#
|
public
|
getOptimizationPasses(): CompilerPassInterface[]
Gets all passes for the Optimization pass.
Gets all passes for the Optimization pass.
|
#
|
public
|
getRemovingPasses(): CompilerPassInterface[]
Gets all passes for the Removing pass.
Gets all passes for the Removing pass.
|
#
|
public
|
getMergePass(): CompilerPassInterface
Gets the Merge pass.
|
#
|
public
|
setMergePass(CompilerPassInterface $pass): void
|
#
|
public
|
setAfterRemovingPasses(CompilerPassInterface[] $passes): void
Sets the AfterRemoving passes.
Sets the AfterRemoving passes.
|
#
|
public
|
setBeforeOptimizationPasses(CompilerPassInterface[] $passes): void
Sets the BeforeOptimization passes.
Sets the BeforeOptimization passes.
|
#
|
public
|
setBeforeRemovingPasses(CompilerPassInterface[] $passes): void
Sets the BeforeRemoving passes.
Sets the BeforeRemoving passes.
|
#
|
public
|
setOptimizationPasses(CompilerPassInterface[] $passes): void
Sets the Optimization passes.
Sets the Optimization passes.
|
#
|
public
|
setRemovingPasses(CompilerPassInterface[] $passes): void
Sets the Removing passes.
Sets the Removing passes.
|
#
|
private
|
sortPasses(array $passes): CompilerPassInterface[]
Sort passes by priority.
Parameters
| $passes |
CompilerPassInterface instances with their priority as key
|
|
#
|