[PATCH] D77665: [CUDA] Simplify GPU variant handling. NFC.
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 11:26:31 PDT 2020
tra created this revision.
tra added a reviewer: yaxunl.
Herald added subscribers: sanjoy.google, bixia.
Herald added a project: clang.
Instead of hardcoding individual GPU mappings in multiple functions, keep them
all in one table and use it to look up the mappings.
We also don't care about 'virtual' architecture much, so the API is trimmed down
down to a simpler GPU->Virtual arch name lookup.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77665
Files:
clang/include/clang/Basic/Cuda.h
clang/lib/Basic/Cuda.cpp
clang/lib/Driver/ToolChains/Cuda.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77665.255740.patch
Type: text/x-patch
Size: 13916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200407/5d3785e3/attachment-0001.bin>
More information about the cfe-commits
mailing list