Search in sources :

Example 1 with LLVMElemPtrSymbol

use of com.oracle.truffle.llvm.runtime.LLVMElemPtrSymbol in project graal by oracle.

the class LLVMParser method defineExpressionSymbol.

private void defineExpressionSymbol(String aliasName, boolean isAliasExported, GetElementPointerConstant elementPointerConstant, DataLayout targetDataLayout) {
    LLVMSymbol baseSymbol = runtime.getFileScope().get(elementPointerConstant.getBasePointer().toString());
    Supplier<LLVMExpressionNode> createElemPtrNode = () -> elementPointerConstant.createNode(runtime, targetDataLayout, GetStackSpaceFactory.createAllocaFactory());
    LLVMElemPtrSymbol expressionSymbol = new LLVMElemPtrSymbol(aliasName, runtime.getBitcodeID(), -1, isAliasExported, elementPointerConstant.getType(), baseSymbol, createElemPtrNode);
    runtime.getFileScope().register(expressionSymbol);
}
Also used : LLVMExpressionNode(com.oracle.truffle.llvm.runtime.nodes.api.LLVMExpressionNode) LLVMElemPtrSymbol(com.oracle.truffle.llvm.runtime.LLVMElemPtrSymbol) LLVMSymbol(com.oracle.truffle.llvm.runtime.LLVMSymbol)

Aggregations

LLVMElemPtrSymbol (com.oracle.truffle.llvm.runtime.LLVMElemPtrSymbol)1 LLVMSymbol (com.oracle.truffle.llvm.runtime.LLVMSymbol)1 LLVMExpressionNode (com.oracle.truffle.llvm.runtime.nodes.api.LLVMExpressionNode)1