private final class CanonicalizerPhase.Instance.Tool extends Object implements SimplifierTool
| Modifier | Constructor and Description |
|---|---|
private |
Tool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToWorkList(Iterable<? extends Node> nodes) |
void |
addToWorkList(Node node)
Adds a node to the worklist independent of whether it has already been on the worklist.
|
boolean |
allUsagesAvailable()
If this method returns false, not all
usages of a node are yet
available. |
boolean |
canonicalizeReads() |
void |
deleteBranch(Node branch) |
ConstantReflectionProvider |
getConstantReflection() |
MetaAccessProvider |
getMetaAccess() |
void |
removeIfUnused(Node node) |
private Tool()
public void deleteBranch(Node branch)
deleteBranch in interface SimplifierToolpublic MetaAccessProvider getMetaAccess()
getMetaAccess in interface CanonicalizerToolpublic ConstantReflectionProvider getConstantReflection()
getConstantReflection in interface CanonicalizerToolpublic void addToWorkList(Node node)
SimplifierTooladdToWorkList in interface SimplifierToolpublic void addToWorkList(Iterable<? extends Node> nodes)
addToWorkList in interface SimplifierToolpublic void removeIfUnused(Node node)
removeIfUnused in interface SimplifierToolpublic boolean canonicalizeReads()
canonicalizeReads in interface CanonicalizerToolpublic boolean allUsagesAvailable()
CanonicalizerToolusages of a node are yet
available. So a node must not be canonicalized base on, e.g., information returned from
Node.hasNoUsages().allUsagesAvailable in interface CanonicalizerTool