[llvm] Reland "[NVPTX] Cleanup/Refactoring in NVPTX AsmPrinter and RegisterInfo (NFC)" (PR #127089)

Mikhail Goncharov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 14 06:27:43 PST 2025


metaflow wrote:

Sorry, I have reverted this as this not a complete NFC. It broke llvm/test/CodeGen/NVPTX/surf-read.ll and llvm/test/CodeGen/NVPTX/surf-write.ll tests as now it prints. Diff of llc output is
12c12
<       .param .surfref foo_param_0,
---
>       .param .samplerref foo_param_0,

and ptxas complains

```
ptxas /tmp/tmpxft_0007f20a_00000000-0_stdin, line 23; error   : Argument 1 of instruction 'suld.b': .surfref or .u64 register expected
```

https://github.com/llvm/llvm-project/pull/127089


More information about the llvm-commits mailing list