package org.graalvm.compiler.replacements;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class PEGraphDecoder_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "FailedLoopExplosionIsFatal": {
return OptionDescriptor.create(
"FailedLoopExplosionIsFatal",
OptionType.Debug,
Boolean.class,
"Do not bail out but throw an exception on failed loop explosion.",
PEGraphDecoder.Options.class,
"FailedLoopExplosionIsFatal",
PEGraphDecoder.Options.FailedLoopExplosionIsFatal);
}
case "InliningDepthError": {
return OptionDescriptor.create(
"InliningDepthError",
OptionType.Debug,
Integer.class,
"Maximum inlining depth during partial evaluation before reporting an infinite recursion",
PEGraphDecoder.Options.class,
"InliningDepthError",
PEGraphDecoder.Options.InliningDepthError);
}
case "MaximumLoopExplosionCount": {
return OptionDescriptor.create(
"MaximumLoopExplosionCount",
OptionType.Debug,
Integer.class,
"Max number of loop explosions per method.",
PEGraphDecoder.Options.class,
"MaximumLoopExplosionCount",
PEGraphDecoder.Options.MaximumLoopExplosionCount);
}
}
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("FailedLoopExplosionIsFatal");
case 1: return get("InliningDepthError");
case 2: return get("MaximumLoopExplosionCount");
}
throw new NoSuchElementException();
}
};
}
}