[llvm] [NVPTX] Merge consecutive elements while buffering constant vectors with sub-byte datatype. (PR #183628)
Karthik Senthil via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 15:10:25 PST 2026
karthik-senthil wrote:
Thanks for the review Alex!
> I wonder if it would be possible to use more of the generic AsmPrinter support here instead of continuing to add complexity and features to the NVPTX-specific constant emission code. It seems like this is a problem that someone has already solved for other targets.
NVPTX backend currently uses `NVPTXAsmPrinter::AggBuffer` exclusively to emit global constants with initializers. I think we may be able to re-use `AsmPrinter::emitGlobalConstant` or a subset of it instead, similar to `ARMAsmPrinter`. I will look into this as a follow-up task.
https://github.com/llvm/llvm-project/pull/183628
More information about the llvm-commits
mailing list