Search in sources :

Example 11 with LLVMContext

use of com.oracle.truffle.llvm.runtime.LLVMContext in project sulong by graalvm.

the class LLVMAMD64PosixCallNode method createFunction.

protected TruffleObject createFunction() {
    LLVMContext context = getContextReference().get();
    NFIContextExtension nfiContextExtension = context.getContextExtension(NFIContextExtension.class);
    return nfiContextExtension.getNativeFunction(context, "@__sulong_posix_" + name, signature);
}
Also used : LLVMContext(com.oracle.truffle.llvm.runtime.LLVMContext) NFIContextExtension(com.oracle.truffle.llvm.runtime.NFIContextExtension)

Aggregations

LLVMContext (com.oracle.truffle.llvm.runtime.LLVMContext)11 TruffleObject (com.oracle.truffle.api.interop.TruffleObject)4 NFIContextExtension (com.oracle.truffle.llvm.runtime.NFIContextExtension)4 StackPointer (com.oracle.truffle.llvm.runtime.memory.LLVMStack.StackPointer)3 TruffleBoundary (com.oracle.truffle.api.CompilerDirectives.TruffleBoundary)2 RootCallTarget (com.oracle.truffle.api.RootCallTarget)2 Specialization (com.oracle.truffle.api.dsl.Specialization)2 InteropException (com.oracle.truffle.api.interop.InteropException)2 ExplodeLoop (com.oracle.truffle.api.nodes.ExplodeLoop)2 Source (com.oracle.truffle.api.source.Source)2 LLVMTruffleObject (com.oracle.truffle.llvm.runtime.LLVMTruffleObject)2 UnsupportedNativeTypeException (com.oracle.truffle.llvm.runtime.NFIContextExtension.UnsupportedNativeTypeException)2 LLVMStack (com.oracle.truffle.llvm.runtime.memory.LLVMStack)2 Truffle (com.oracle.truffle.api.Truffle)1 FrameDescriptor (com.oracle.truffle.api.frame.FrameDescriptor)1 ArityException (com.oracle.truffle.api.interop.ArityException)1 UnknownIdentifierException (com.oracle.truffle.api.interop.UnknownIdentifierException)1 UnsupportedMessageException (com.oracle.truffle.api.interop.UnsupportedMessageException)1 UnsupportedTypeException (com.oracle.truffle.api.interop.UnsupportedTypeException)1 RootNode (com.oracle.truffle.api.nodes.RootNode)1