com.oracle.graal.python.builtins.modules.BuiltinFunctionsClinicProviders Maven / Gradle / Ivy
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2023-09-13T15:54:29.292069301
package com.oracle.graal.python.builtins.modules;
import com.oracle.graal.python.builtins.modules.io.IONodes.CreateIOModeNode;
import com.oracle.graal.python.builtins.objects.PNone;
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.JavaIntToBooleanConverterNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterWithDefaultValueNode;
public class BuiltinFunctionsClinicProviders {
public static final class ChrNodeClinicProviderGen extends ArgumentClinicProvider {
public static final ChrNodeClinicProviderGen INSTANCE = new ChrNodeClinicProviderGen();
private ChrNodeClinicProviderGen() {
super(0x0, 0x1, 0x0, 0x0, 0x1);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0) {
return JavaIntConversionNode.create(false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class OpenNodeClinicProviderGen extends ArgumentClinicProvider {
public static final OpenNodeClinicProviderGen INSTANCE = new OpenNodeClinicProviderGen();
private OpenNodeClinicProviderGen() {
super(0xc1, 0x85, 0x81, 0x81, 0x7e);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 1: return CreateIOModeNode.create(true);
case 2: return JavaIntConversionNode.create(-1, true);
case 3: return TruffleStringConverterWithDefaultValueNode.create("open", PNone.NONE, true);
case 4: return TruffleStringConverterWithDefaultValueNode.create("open", PNone.NONE, true);
case 5: return TruffleStringConverterWithDefaultValueNode.create("open", PNone.NONE, true);
case 6: return JavaBooleanConverterNode.create(true, true);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class CompileNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CompileNodeClinicProviderGen INSTANCE = new CompileNodeClinicProviderGen();
private CompileNodeClinicProviderGen() {
super(0x13, 0x6b, 0x3, 0x3, 0x7c);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 2: return TruffleStringConverterNode.create("compile");
case 3: return JavaIntConversionNode.create(0, false);
case 4: return JavaIntToBooleanConverterNode.create(false, false);
case 5: return JavaIntConversionNode.create(-1, false);
case 6: return JavaIntConversionNode.create(-1, false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class SortedNodeClinicProviderGen extends ArgumentClinicProvider {
public static final SortedNodeClinicProviderGen INSTANCE = new SortedNodeClinicProviderGen();
private SortedNodeClinicProviderGen() {
super(0x7, 0x3, 0x3, 0x3, 0x4);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 2) {
return JavaIntToBooleanConverterNode.create(false, false);
}
return super.createCastNode(argIndex, builtin);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy