[all-commits] [llvm/llvm-project] f4381d: [NVPTX] Add initial support for '.alias' in PTX
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jul 21 14:44:03 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f4381d46445709fda9b8ec6c8f85d019de2dad22
https://github.com/llvm/llvm-project/commit/f4381d46445709fda9b8ec6c8f85d019de2dad22
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-07-21 (Fri, 21 Jul 2023)
Changed paths:
M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
A llvm/test/CodeGen/NVPTX/alias-errors.ll
M llvm/test/CodeGen/NVPTX/alias.ll
Log Message:
-----------
[NVPTX] Add initial support for '.alias' in PTX
This patch adds initial support for using aliases when targeting PTX. We
perform a pretty strict conversion from the globals referenced to the
expected output. as described in the PTX documentation at
https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#kernel-and-function-directives-alias
These cannot currently be used due to a bug in the `nvlink`
implementation that causes aliases to pruned functions to crash the
linker.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D155211
More information about the All-commits
mailing list