package org.graalvm.compiler.lir.alloc.lsra;
import java.util.*;
import org.graalvm.compiler.options.*;
public class OptimizingLinearScanWalker_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "LSRAOptSplitOnly": {
return OptionDescriptor.create(
"LSRAOptSplitOnly",
Boolean.class,
"LSRA optimization: Only split but do not reassign",
OptimizingLinearScanWalker.Options.class,
"LSRAOptSplitOnly",
OptimizingLinearScanWalker.Options.LSRAOptSplitOnly);
}
case "LSRAOptimization": {
return OptionDescriptor.create(
"LSRAOptimization",
Boolean.class,
"Enable LSRA optimization",
OptimizingLinearScanWalker.Options.class,
"LSRAOptimization",
OptimizingLinearScanWalker.Options.LSRAOptimization);
}
}
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("LSRAOptSplitOnly");
case 1: return get("LSRAOptimization");
}
throw new NoSuchElementException();
}
};
}
}