// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: DefaultLoopPolicies.java
package org.graalvm.compiler.nodes.loop;

import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
import org.graalvm.compiler.options.OptionStability;

public class DefaultLoopPolicies_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "DefaultLoopFrequency": {
            return OptionDescriptor.create(
                /*name*/ "DefaultLoopFrequency",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Default frequency for loops with unknown local frequency.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "DefaultLoopFrequency",
                /*option*/ DefaultLoopPolicies.Options.DefaultLoopFrequency,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "DefaultUnswitchFactor": {
            return OptionDescriptor.create(
                /*name*/ "DefaultUnswitchFactor",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Default unswitching factor for control split node with unkown profile data.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "DefaultUnswitchFactor",
                /*option*/ DefaultLoopPolicies.Options.DefaultUnswitchFactor,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "ExactFullUnrollMaxNodes": {
            return OptionDescriptor.create(
                /*name*/ "ExactFullUnrollMaxNodes",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "ExactFullUnrollMaxNodes",
                /*option*/ DefaultLoopPolicies.Options.ExactFullUnrollMaxNodes,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "ExactPartialUnrollMaxNodes": {
            return OptionDescriptor.create(
                /*name*/ "ExactPartialUnrollMaxNodes",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "ExactPartialUnrollMaxNodes",
                /*option*/ DefaultLoopPolicies.Options.ExactPartialUnrollMaxNodes,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "FullUnrollConstantCompareBoost": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollConstantCompareBoost",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "FullUnrollConstantCompareBoost",
                /*option*/ DefaultLoopPolicies.Options.FullUnrollConstantCompareBoost,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "FullUnrollMaxIterations": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollMaxIterations",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "FullUnrollMaxIterations",
                /*option*/ DefaultLoopPolicies.Options.FullUnrollMaxIterations,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "FullUnrollMaxNodes": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollMaxNodes",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "FullUnrollMaxNodes",
                /*option*/ DefaultLoopPolicies.Options.FullUnrollMaxNodes,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "LoopUnswitchFrequencyBoost": {
            return OptionDescriptor.create(
                /*name*/ "LoopUnswitchFrequencyBoost",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Number of nodes allowed for a loop unswitching per loop frequency. The number of nodes allowed for the unswitching is proportional to the relative frequency of the loop by this constant.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "LoopUnswitchFrequencyBoost",
                /*option*/ DefaultLoopPolicies.Options.LoopUnswitchFrequencyBoost,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "LoopUnswitchFrequencyMaxFactor": {
            return OptionDescriptor.create(
                /*name*/ "LoopUnswitchFrequencyMaxFactor",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Maximun value for the frequency factor of an invariant.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "LoopUnswitchFrequencyMaxFactor",
                /*option*/ DefaultLoopPolicies.Options.LoopUnswitchFrequencyMaxFactor,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "LoopUnswitchFrequencyMinFactor": {
            return OptionDescriptor.create(
                /*name*/ "LoopUnswitchFrequencyMinFactor",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Minimum value for the frequency factor of an invariant.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "LoopUnswitchFrequencyMinFactor",
                /*option*/ DefaultLoopPolicies.Options.LoopUnswitchFrequencyMinFactor,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "LoopUnswitchMaxIncrease": {
            return OptionDescriptor.create(
                /*name*/ "LoopUnswitchMaxIncrease",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "Maximum loop unswitching code size increase in nodes.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "LoopUnswitchMaxIncrease",
                /*option*/ DefaultLoopPolicies.Options.LoopUnswitchMaxIncrease,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "LoopUnswitchMinSplitFrequency": {
            return OptionDescriptor.create(
                /*name*/ "LoopUnswitchMinSplitFrequency",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Lower bound for the minimun frequency of an invariant condition to be unswitched.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "LoopUnswitchMinSplitFrequency",
                /*option*/ DefaultLoopPolicies.Options.LoopUnswitchMinSplitFrequency,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "LoopUnswitchTrivial": {
            return OptionDescriptor.create(
                /*name*/ "LoopUnswitchTrivial",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "Number of nodes allowed for a loop unswitching regardless of the loop frequency.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "LoopUnswitchTrivial",
                /*option*/ DefaultLoopPolicies.Options.LoopUnswitchTrivial,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "MaxUnswitchSuccessors": {
            return OptionDescriptor.create(
                /*name*/ "MaxUnswitchSuccessors",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "Maximum number of split successors before aborting unswitching.",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "MaxUnswitchSuccessors",
                /*option*/ DefaultLoopPolicies.Options.MaxUnswitchSuccessors,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "UnrollMaxIterations": {
            return OptionDescriptor.create(
                /*name*/ "UnrollMaxIterations",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ DefaultLoopPolicies.Options.class,
                /*fieldName*/ "UnrollMaxIterations",
                /*option*/ DefaultLoopPolicies.Options.UnrollMaxIterations,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        // CheckStyle: resume line length check
        }
        return null;
    }

    @Override
    public Iterator<OptionDescriptor> iterator() {
        return new Iterator<>() {
            int i = 0;
            @Override
            public boolean hasNext() {
                return i < 15;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("DefaultLoopFrequency");
                    case 1: return get("DefaultUnswitchFactor");
                    case 2: return get("ExactFullUnrollMaxNodes");
                    case 3: return get("ExactPartialUnrollMaxNodes");
                    case 4: return get("FullUnrollConstantCompareBoost");
                    case 5: return get("FullUnrollMaxIterations");
                    case 6: return get("FullUnrollMaxNodes");
                    case 7: return get("LoopUnswitchFrequencyBoost");
                    case 8: return get("LoopUnswitchFrequencyMaxFactor");
                    case 9: return get("LoopUnswitchFrequencyMinFactor");
                    case 10: return get("LoopUnswitchMaxIncrease");
                    case 11: return get("LoopUnswitchMinSplitFrequency");
                    case 12: return get("LoopUnswitchTrivial");
                    case 13: return get("MaxUnswitchSuccessors");
                    case 14: return get("UnrollMaxIterations");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
