Search in sources :

Example 1 with InjectionProvider

use of org.graalvm.compiler.nodes.graphbuilderconf.NodeIntrinsicPluginFactory.InjectionProvider in project graal by oracle.

the class FoldTest method registerInvocationPlugins.

@Override
protected void registerInvocationPlugins(InvocationPlugins invocationPlugins) {
    InjectionProvider injection = new NodeIntrinsificationProvider(getMetaAccess(), getSnippetReflection(), getProviders().getForeignCalls(), getProviders().getLowerer(), null);
    new PluginFactory_FoldTest().registerPlugins(invocationPlugins, injection);
    BytecodeProvider replacementBytecodeProvider = getSystemClassLoaderBytecodeProvider();
    Registration r = new Registration(invocationPlugins, TestMethod.class, replacementBytecodeProvider);
    r.registerMethodSubstitution(TestMethodSubstitution.class, "test");
    super.registerInvocationPlugins(invocationPlugins);
}
Also used : InjectionProvider(org.graalvm.compiler.nodes.graphbuilderconf.NodeIntrinsicPluginFactory.InjectionProvider) Registration(org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.Registration) NodeIntrinsificationProvider(org.graalvm.compiler.replacements.NodeIntrinsificationProvider) BytecodeProvider(org.graalvm.compiler.bytecode.BytecodeProvider)

Aggregations

BytecodeProvider (org.graalvm.compiler.bytecode.BytecodeProvider)1 Registration (org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.Registration)1 InjectionProvider (org.graalvm.compiler.nodes.graphbuilderconf.NodeIntrinsicPluginFactory.InjectionProvider)1 NodeIntrinsificationProvider (org.graalvm.compiler.replacements.NodeIntrinsificationProvider)1