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, $type = self::TYPE_BEFORE_OPTIMIZATION)

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.

setMergePass(CompilerPassInterface $pass)

Sets 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

at line line 38
__construct()

at line line 76
CompilerPassInterface[] getPasses()

Returns all passes in order to be processed.

Return Value

CompilerPassInterface[]

at line line 97
addPass(CompilerPassInterface $pass, $type = self::TYPE_BEFORE_OPTIMIZATION)

Adds a pass.

Parameters

CompilerPassInterface $pass
$type

Exceptions

InvalidArgumentException when a pass type doesn't exist

at line line 130
CompilerPassInterface[] getAfterRemovingPasses()

Gets all passes for the AfterRemoving pass.

Return Value

CompilerPassInterface[]

at line line 140
CompilerPassInterface[] getBeforeOptimizationPasses()

Gets all passes for the BeforeOptimization pass.

Return Value

CompilerPassInterface[]

at line line 150
CompilerPassInterface[] getBeforeRemovingPasses()

Gets all passes for the BeforeRemoving pass.

Return Value

CompilerPassInterface[]

at line line 160
CompilerPassInterface[] getOptimizationPasses()

Gets all passes for the Optimization pass.

Return Value

CompilerPassInterface[]

at line line 170
CompilerPassInterface[] getRemovingPasses()

Gets all passes for the Removing pass.

Return Value

CompilerPassInterface[]

at line line 180
CompilerPassInterface getMergePass()

Gets the Merge pass.

Return Value

CompilerPassInterface

at line line 190
setMergePass(CompilerPassInterface $pass)

Sets the Merge Pass.

Parameters

CompilerPassInterface $pass The merge pass

at line line 200
setAfterRemovingPasses(array $passes)

Sets the AfterRemoving passes.

Parameters

array $passes

at line line 210
setBeforeOptimizationPasses(array $passes)

Sets the BeforeOptimization passes.

Parameters

array $passes

at line line 220
setBeforeRemovingPasses(array $passes)

Sets the BeforeRemoving passes.

Parameters

array $passes

at line line 230
setOptimizationPasses(array $passes)

Sets the Optimization passes.

Parameters

array $passes

at line line 240
setRemovingPasses(array $passes)

Sets the Removing passes.

Parameters

array $passes