]> granicus.if.org Git - clang/commit
[NVPTX] Make tensor load/store intrinsics overloaded.
authorArtem Belevich <tra@google.com>
Tue, 20 Mar 2018 17:18:59 +0000 (17:18 +0000)
committerArtem Belevich <tra@google.com>
Tue, 20 Mar 2018 17:18:59 +0000 (17:18 +0000)
commitb1444f3997aac445e5bac97476e4cb26ad9fc613
tree8a99c6cd0cdf6a3cef873ab963daa4f31a306637
parenta590e0e06d27d1a6bc18a4cb77765ef68c825f0c
[NVPTX] Make tensor load/store intrinsics overloaded.

This way we can support address-space specific variants without explicitly
encoding the space in the name of the intrinsic. Less intrinsics to deal with ->
less boilerplate.

Added a bit of tablegen magic to match/replace an intrinsics with a pointer
argument in particular address space with the space-specific instruction
variant.

Updated tests to use non-default address spaces.

Differential Revision: https://reviews.llvm.org/D43268

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328006 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp