All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.graal.python.builtins.modules.GraalHPyUniversalModuleBuiltinsClinicProviders Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2023-09-13T15:54:29.238845367
package com.oracle.graal.python.builtins.modules;

import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentCastNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentClinicProvider;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaBooleanConverterNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaIntConversionNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterNode;

public class GraalHPyUniversalModuleBuiltinsClinicProviders {
    public static final class HPyUniversalLoadBootstrapNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final HPyUniversalLoadBootstrapNodeClinicProviderGen INSTANCE = new HPyUniversalLoadBootstrapNodeClinicProviderGen();
        
        private HPyUniversalLoadBootstrapNodeClinicProviderGen() {
            super(0x74, 0x74, 0x74, 0x74, 0xb);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 0: return TruffleStringConverterNode.create("_load_bootstrap");
                case 1: return TruffleStringConverterNode.create("_load_bootstrap");
                case 3: return TruffleStringConverterNode.create("_load_bootstrap");
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
    public static final class HPyUniversalLoadNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final HPyUniversalLoadNodeClinicProviderGen INSTANCE = new HPyUniversalLoadNodeClinicProviderGen();
        
        private HPyUniversalLoadNodeClinicProviderGen() {
            super(0xc, 0x14, 0x4, 0x4, 0x1b);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            switch (argIndex) {
                case 0: return TruffleStringConverterNode.create("load");
                case 1: return TruffleStringConverterNode.create("load");
                case 3: return JavaBooleanConverterNode.create(false, false);
                case 4: return JavaIntConversionNode.create(-1, false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy