PassConfig
class PassConfig
Compiler Pass Configuration.
This class has a default configuration embedded.
Constants
TYPE_AFTER_REMOVING |
|
TYPE_BEFORE_OPTIMIZATION |
|
TYPE_BEFORE_REMOVING |
|
TYPE_OPTIMIZE |
|
TYPE_REMOVE |
|
Methods
__construct()
No description
getPasses()
Returns all passes in order to be processed.
addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
Adds a pass.
getAfterRemovingPasses()
Gets all passes for the AfterRemoving pass.
getBeforeOptimizationPasses()
Gets all passes for the BeforeOptimization pass.
getBeforeRemovingPasses()
Gets all passes for the BeforeRemoving pass.
getOptimizationPasses()
Gets all passes for the Optimization pass.
getRemovingPasses()
Gets all passes for the Removing pass.
getMergePass()
Gets the Merge pass.
setAfterRemovingPasses(array $passes)
Sets the AfterRemoving passes.
setBeforeOptimizationPasses(array $passes)
Sets the BeforeOptimization passes.
setBeforeRemovingPasses(array $passes)
Sets the BeforeRemoving passes.
setOptimizationPasses(array $passes)
Sets the Optimization passes.
setRemovingPasses(array $passes)
Sets the Removing passes.
Details
addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
Adds a pass.
CompilerPassInterface[]
getBeforeOptimizationPasses()
Gets all passes for the BeforeOptimization pass.