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

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

public class LoopFullUnrollPhase_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "FullUnrollCodeSizeBudgetFactorForLargeGraphs": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollCodeSizeBudgetFactorForLargeGraphs",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Maximum factor by which full unrolling can increase code size for large graphs. The FullUnrollSmallGraphThreshold option determines which graphs are small",
                /*declaringClass*/ LoopFullUnrollPhase.Options.class,
                /*fieldName*/ "FullUnrollCodeSizeBudgetFactorForLargeGraphs",
                /*option*/ LoopFullUnrollPhase.Options.FullUnrollCodeSizeBudgetFactorForLargeGraphs,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "FullUnrollCodeSizeBudgetFactorForSmallGraphs": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollCodeSizeBudgetFactorForSmallGraphs",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Double.class,
                /*help*/ "Maximum factor by which full unrolling can increase code size for small graphs. The FullUnrollSmallGraphThreshold option determines which graphs are small",
                /*declaringClass*/ LoopFullUnrollPhase.Options.class,
                /*fieldName*/ "FullUnrollCodeSizeBudgetFactorForSmallGraphs",
                /*option*/ LoopFullUnrollPhase.Options.FullUnrollCodeSizeBudgetFactorForSmallGraphs,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "FullUnrollMaxApplication": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollMaxApplication",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "",
                /*declaringClass*/ LoopFullUnrollPhase.Options.class,
                /*fieldName*/ "FullUnrollMaxApplication",
                /*option*/ LoopFullUnrollPhase.Options.FullUnrollMaxApplication,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        case "FullUnrollSmallGraphThreshold": {
            return OptionDescriptor.create(
                /*name*/ "FullUnrollSmallGraphThreshold",
                /*optionType*/ OptionType.Expert,
                /*optionValueType*/ Integer.class,
                /*help*/ "The threshold in terms of NodeSize for a graph to be considered small for the purpose of full unrolling. Applied in conjunction with the FullUnrollCodeSizeBudgetFactorForSmallGraphs and FullUnrollCodeSizeBudgetFactorForLargeGraphs options.",
                /*declaringClass*/ LoopFullUnrollPhase.Options.class,
                /*fieldName*/ "FullUnrollSmallGraphThreshold",
                /*option*/ LoopFullUnrollPhase.Options.FullUnrollSmallGraphThreshold,
                /*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 < 4;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("FullUnrollCodeSizeBudgetFactorForLargeGraphs");
                    case 1: return get("FullUnrollCodeSizeBudgetFactorForSmallGraphs");
                    case 2: return get("FullUnrollMaxApplication");
                    case 3: return get("FullUnrollSmallGraphThreshold");
                }
                throw new NoSuchElementException();
            }
        };
    }
}
