diff options
author | Artem Belevich <tra@google.com> | 2023-01-25 12:12:32 -0800 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2023-01-26 11:29:20 -0800 |
commit | 8db31e932d33b63449d3727c0496fce29883ebb1 (patch) | |
tree | ab8a9cee240e5d3206fe29ccc13204eca5cfecba /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | 6185246f4f62345d0cfdaef62da7e15b01d52557 (diff) | |
download | llvm-8db31e932d33b63449d3727c0496fce29883ebb1.zip llvm-8db31e932d33b63449d3727c0496fce29883ebb1.tar.gz llvm-8db31e932d33b63449d3727c0496fce29883ebb1.tar.bz2 |
[NVPTX] Do not addrspacecast AS-specific kernel arguments.
Fixes https://github.com/llvm/llvm-project/issues/46954
The assumption that generic pointers passed to a CUDA kernel is CUDA-specific
and should not be applied to non-CUDA compilations. Addrspacecasts to global AS
and back should never be applied to AS-specific pointers.
In order to make tests actually do the testing for non-CUDA compilation, we need
to get TargetMachine from the TargetPassConfig, instead of passing it explicitly
as a pass constructor argument.
Differential Revision: https://reviews.llvm.org/D142581
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions