diff options
author | Wen-Heng (Jack) Chung <whchung@gmail.com> | 2020-05-18 13:01:54 -0500 |
---|---|---|
committer | Wen-Heng (Jack) Chung <whchung@gmail.com> | 2020-05-21 08:53:47 -0500 |
commit | 2cbbc266ec1e489175ee988794c3880075c13d00 (patch) | |
tree | 3eaf68c24f995e993efbf5a872a64ce38be17437 /llvm/lib/Support/StringRef.cpp | |
parent | 1c8f999e0b59731a4214f76528f83e4196e1fcc3 (diff) | |
download | llvm-2cbbc266ec1e489175ee988794c3880075c13d00.zip llvm-2cbbc266ec1e489175ee988794c3880075c13d00.tar.gz llvm-2cbbc266ec1e489175ee988794c3880075c13d00.tar.bz2 |
[mlir][gpu] Refactor ConvertGpuLaunchFuncToCudaCalls pass.
Due to similar APIs between CUDA and ROCm (HIP),
ConvertGpuLaunchFuncToCudaCalls pass could be used on both platforms with some
refactoring.
In this commit:
- Migrate ConvertLaunchFuncToCudaCalls from GPUToCUDA to GPUCommon, and rename.
- Rename runtime wrapper APIs be platform-neutral.
- Let GPU binary annotation attribute be specifiable as a PassOption.
- Naming changes within the implementation and tests.
Subsequent patches would introduce ROCm-specific tests and runtime wrapper
APIs.
Differential Revision: https://reviews.llvm.org/D80167
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions