package org.graalvm.compiler.lir.alloc.trace;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class TraceBuilderPhase_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "TraceBuilding": {
return OptionDescriptor.create(
"TraceBuilding",
OptionType.Debug,
org.graalvm.compiler.lir.alloc.trace.TraceBuilderPhase.TraceBuilder.class,
"Trace building algorithm.",
TraceBuilderPhase.Options.class,
"TraceBuilding",
TraceBuilderPhase.Options.TraceBuilding);
}
case "TraceRAScheduleTrivialTracesEarly": {
return OptionDescriptor.create(
"TraceRAScheduleTrivialTracesEarly",
OptionType.Debug,
Boolean.class,
"Schedule trivial traces as early as possible.",
TraceBuilderPhase.Options.class,
"TraceRAScheduleTrivialTracesEarly",
TraceBuilderPhase.Options.TraceRAScheduleTrivialTracesEarly);
}
}
return null;
}
@Override
public Iterator<OptionDescriptor> iterator() {
return new Iterator<OptionDescriptor>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 2;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("TraceBuilding");
case 1: return get("TraceRAScheduleTrivialTracesEarly");
}
throw new NoSuchElementException();
}
};
}
}