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 / codegen / regalloc_live.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Replay exact-liveness wire validation. Zero override means absent; values are instruction indices. |
| 3 | fn ra_live kind ulong a ulong b long c long d ulong e ulong to long |
| 4 | if eq kind 0 |
| 5 | if gt a 1 |
| 6 | ret 9 |
| 7 | end |
| 8 | if and eq a 1 gt b 160 |
| 9 | ret 10 |
| 10 | end |
| 11 | ret 0 |
| 12 | end |
| 13 | if eq a 0 |
| 14 | ret 0 |
| 15 | end |
| 16 | if or ge e 160 lt b 0 |
| 17 | ret 10 |
| 18 | end |
| 19 | if or lt a ulong b lt a ulong c |
| 20 | ret 10 |
| 21 | end |
| 22 | if ge a d |
| 23 | ret 10 |
| 24 | end |
| 25 | ret 0 |
| 26 | end |