diff options
author | Justin Lebar <jlebar@google.com> | 2018-02-28 23:57:48 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2018-02-28 23:57:48 +0000 |
commit | 5a7de898d236e2b426e050ce51fb72e382eafa28 (patch) | |
tree | 982bad855deb78c82eaabf268ce5121fc7f4fffb /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 285271cb78f449f211bec34b4e954153feb0add9 (diff) | |
download | bcm5719-llvm-5a7de898d236e2b426e050ce51fb72e382eafa28.tar.gz bcm5719-llvm-5a7de898d236e2b426e050ce51fb72e382eafa28.zip |
[NVPTX] Use addrspacecast instead of target-specific intrinsics in NVPTXGenericToNVVM.
Summary:
NVPTXGenericToNVVM was using target-specific intrinsics to do address
space casts. Using the addrspacecast instruction is (a lot) simpler.
But it also has the advantage of being understandable to other passes.
In particular, InferAddrSpaces is able to understand these address space
casts and remove them in most cases.
Reviewers: tra
Subscribers: jholewinski, sanjoy, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D43914
llvm-svn: 326389
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions