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);
}
Aggregations