Skip to content

Commit

Permalink
Sulong: Allow pointer types as inline asm operands
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorcos committed Apr 16, 2021
1 parent 230653a commit ba84a6d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
import com.oracle.truffle.llvm.runtime.nodes.memory.store.LLVMI8StoreNode;
import com.oracle.truffle.llvm.runtime.nodes.memory.store.LLVMI8StoreNodeGen;
import com.oracle.truffle.llvm.runtime.nodes.memory.store.LLVMPointerStoreNode;
import com.oracle.truffle.llvm.runtime.nodes.memory.store.LLVMPointerStoreNodeGen;
import com.oracle.truffle.llvm.runtime.nodes.others.LLVMUnsupportedInstructionNode;
import com.oracle.truffle.llvm.runtime.nodes.vars.LLVMReadNodeFactory.LLVMAddressReadNodeGen;
import com.oracle.truffle.llvm.runtime.nodes.vars.LLVMReadNodeFactory.LLVMI1ReadNodeGen;
Expand Down Expand Up @@ -2048,6 +2049,8 @@ private LLVMStatementNode getOperandStore(Type type, AsmOperand operand, LLVMExp
default:
throw unsupportedOperandType(type);
}
} else if (type instanceof PointerType) {
return LLVMPointerStoreNodeGen.create(address, from);
} else {
throw unsupportedOperandType(type);
}
Expand Down

0 comments on commit ba84a6d

Please sign in to comment.