aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2023-01-25 12:12:32 -0800
committerArtem Belevich <tra@google.com>2023-01-26 11:29:20 -0800
commit8db31e932d33b63449d3727c0496fce29883ebb1 (patch)
treeab8a9cee240e5d3206fe29ccc13204eca5cfecba /llvm/unittests/Support/MathExtrasTest.cpp
parent6185246f4f62345d0cfdaef62da7e15b01d52557 (diff)
downloadllvm-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