CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / om / q38-head / emit.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Generated bounds kernel through the checked allocator and encoder. |
| 3 | fn q38_emit code edit uchar 16384 to ulong |
| 4 | ins = new ulong 8192 0 |
| 5 | meta = new ulong 2048 0 |
| 6 | phys = new ulong 288 0 |
| 7 | st = new ulong 4 0 |
| 8 | rs = new ulong 4 0 |
| 9 | if ne q38_bounds ins meta st 0 |
| 10 | ret 0 |
| 11 | end |
| 12 | if ne bc_ircheck ins get st 0 meta 0 |
| 13 | ret 0 |
| 14 | end |
| 15 | if ne bc_regalloc ins get st 0 meta phys rs 128 0 |
| 16 | ret 0 |
| 17 | end |
| 18 | ret bc_encode ins phys get st 0 1 code |
| 19 | end |