[NVPTX] Fix pointer type for short 32-bit pointers
authorAndrew Savonichev <andrew.savonichev@gmail.com>
Tue, 15 Nov 2022 18:39:34 +0000 (21:39 +0300)
committerAndrew Savonichev <andrew.savonichev@gmail.com>
Tue, 15 Nov 2022 18:39:34 +0000 (21:39 +0300)
commitc38fa7c01403a8116b12d719e977acfc61417041
tree1955fc6ded7192236daeb5d702b8881e41ae8bbc
parent11abb7fedb55a29802a45d5017d4a9a4b14c72ea
[NVPTX] Fix pointer type for short 32-bit pointers

Global variables used to be printed as u64/b64 even when
-nvptx-short-ptr is set.

Differential Revision: https://reviews.llvm.org/D127668
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
llvm/test/CodeGen/NVPTX/short-ptr.ll [new file with mode: 0644]