use of com.oracle.truffle.llvm.nodes.vars.LLVMSetInteropTypeNode in project sulong by graalvm.
the class BasicNodeFactory method registerSourceType.
@Override
public LLVMExpressionNode registerSourceType(FrameSlot valueSlot, LLVMSourceType type) {
LLVMSourceType actual = type.getActualType();
if (actual instanceof LLVMSourcePointerType) {
// only pointer types can contain foreign values
LLVMSourceType base = ((LLVMSourcePointerType) actual).getBaseType();
LLVMInteropType interopType = LLVMInteropType.fromSourceType(base);
if (interopType != null) {
return new LLVMSetInteropTypeNode(valueSlot, interopType);
}
}
return null;
}
Aggregations