package org.graalvm.compiler.graph;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class Graph_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "GraphCompressionThreshold": {
return OptionDescriptor.create(
"GraphCompressionThreshold",
OptionType.Debug,
Integer.class,
"Graal graph compression is performed when percent of live nodes falls below this value",
Graph.Options.class,
"GraphCompressionThreshold",
Graph.Options.GraphCompressionThreshold);
}
case "VerifyGraalGraphEdges": {
return OptionDescriptor.create(
"VerifyGraalGraphEdges",
OptionType.Debug,
Boolean.class,
"Perform expensive verification of graph inputs, usages, successors and predecessors",
Graph.Options.class,
"VerifyGraalGraphEdges",
Graph.Options.VerifyGraalGraphEdges);
}
case "VerifyGraalGraphs": {
return OptionDescriptor.create(
"VerifyGraalGraphs",
OptionType.Debug,
Boolean.class,
"Verify graphs often during compilation when assertions are turned on",
Graph.Options.class,
"VerifyGraalGraphs",
Graph.Options.VerifyGraalGraphs);
}
}
return null;
}
@Override
public Iterator<OptionDescriptor> iterator() {
return new Iterator<OptionDescriptor>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 3;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("GraphCompressionThreshold");
case 1: return get("VerifyGraalGraphEdges");
case 2: return get("VerifyGraalGraphs");
}
throw new NoSuchElementException();
}
};
}
}