public class MatchPattern extends Object
| Constructor and Description |
|---|
MatchPattern(Class<? extends Node> nodeClass,
String name,
boolean singleUser,
boolean consumable,
boolean ignoresSideEffects) |
MatchPattern(Class<? extends Node> nodeClass,
String name,
MatchPattern first,
MatchPattern second,
MatchPattern third,
Position[] inputs,
boolean singleUser,
boolean consumable,
boolean ignoresSideEffects) |
MatchPattern(Class<? extends Node> nodeClass,
String name,
MatchPattern first,
MatchPattern second,
Position[] inputs,
boolean singleUser,
boolean consumable,
boolean ignoresSideEffects) |
MatchPattern(Class<? extends Node> nodeClass,
String name,
MatchPattern first,
Position[] inputs,
boolean singleUser,
boolean consumable,
boolean ignoresSideEffects) |
MatchPattern(String name,
boolean singleUser,
boolean consumable,
boolean ignoresSideEffects) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatMatch(Node root)
For a node starting at root, produce a String showing the inputs that matched against this
rule.
|
static boolean |
isSingleValueUser(Node node) |
org.graalvm.compiler.core.match.MatchPattern.Result |
matchShape(Node node,
MatchStatement statement)
Recursively match the shape of the tree without worry about named values.
|
String |
toString() |
public MatchPattern(String name, boolean singleUser, boolean consumable, boolean ignoresSideEffects)
public MatchPattern(Class<? extends Node> nodeClass, String name, boolean singleUser, boolean consumable, boolean ignoresSideEffects)
public MatchPattern(Class<? extends Node> nodeClass, String name, MatchPattern first, Position[] inputs, boolean singleUser, boolean consumable, boolean ignoresSideEffects)
public MatchPattern(Class<? extends Node> nodeClass, String name, MatchPattern first, MatchPattern second, Position[] inputs, boolean singleUser, boolean consumable, boolean ignoresSideEffects)
public MatchPattern(Class<? extends Node> nodeClass, String name, MatchPattern first, MatchPattern second, MatchPattern third, Position[] inputs, boolean singleUser, boolean consumable, boolean ignoresSideEffects)
public org.graalvm.compiler.core.match.MatchPattern.Result matchShape(Node node, MatchStatement statement)
node - statement - public static boolean isSingleValueUser(Node node)
public String formatMatch(Node root)