private static final class GraphUtil.DefaultSimplifierTool extends Object implements SimplifierTool
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canonicalizeReads |
private ConstantReflectionProvider |
constantReflection |
private MetaAccessProvider |
metaAccess |
| Constructor and Description |
|---|
DefaultSimplifierTool(MetaAccessProvider metaAccess,
ConstantReflectionProvider constantReflection,
boolean canonicalizeReads) |
| 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 final MetaAccessProvider metaAccess
private final ConstantReflectionProvider constantReflection
private final boolean canonicalizeReads
public DefaultSimplifierTool(MetaAccessProvider metaAccess, ConstantReflectionProvider constantReflection, boolean canonicalizeReads)
public MetaAccessProvider getMetaAccess()
getMetaAccess in interface CanonicalizerToolpublic ConstantReflectionProvider getConstantReflection()
getConstantReflection in interface CanonicalizerToolpublic 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 CanonicalizerToolpublic void deleteBranch(Node branch)
deleteBranch in interface SimplifierToolpublic void removeIfUnused(Node node)
removeIfUnused in interface SimplifierToolpublic void addToWorkList(Node node)
SimplifierTooladdToWorkList in interface SimplifierToolpublic void addToWorkList(Iterable<? extends Node> nodes)
addToWorkList in interface SimplifierTool