package org.graalvm.compiler.lir.gen;
import java.util.*;
import org.graalvm.compiler.options.*;
public class LIRGenerator_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "PrintIRWithLIR": {
return OptionDescriptor.create(
"PrintIRWithLIR",
Boolean.class,
"Print HIR along side LIR as the latter is generated",
LIRGenerator.Options.class,
"PrintIRWithLIR",
LIRGenerator.Options.PrintIRWithLIR);
}
case "TraceLIRGeneratorLevel": {
return OptionDescriptor.create(
"TraceLIRGeneratorLevel",
Integer.class,
"The trace level for the LIR generator",
LIRGenerator.Options.class,
"TraceLIRGeneratorLevel",
LIRGenerator.Options.TraceLIRGeneratorLevel);
}
}
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("PrintIRWithLIR");
case 1: return get("TraceLIRGeneratorLevel");
}
throw new NoSuchElementException();
}
};
}
}