Add a pass that inserts getters for all cubins found via nvvm.cubin
authorStephan Herhut <herhut@google.com>
Wed, 26 Jun 2019 12:32:46 +0000 (05:32 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 26 Jun 2019 12:33:11 +0000 (05:33 -0700)
commit630119f84f2415d87743b2557c21145721136c0b
treef49fa56dbcdb66e5156b89979564d29741dca502
parentc72c6c390710a6e909670e2b2c0e4076cc1b89c6
Add a pass that inserts getters for all cubins found via nvvm.cubin
annotations.

Getters are required as there are currently no global constants in MLIR and this
is an easy way to unblock CUDA execution while waiting for those.

PiperOrigin-RevId: 255169002
mlir/include/mlir/Conversion/GPUToCUDA/GPUToCUDAPass.h
mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
mlir/lib/Conversion/GPUToCUDA/GenerateCubinAccessors.cpp [new file with mode: 0644]
mlir/test/Conversion/GPUToCUDA/insert-cubin-getter.mlir [new file with mode: 0644]