diff options
| author | Mahesh Ravishankar <ravishankarm@google.com> | 2019-11-12 12:52:18 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-11-12 12:52:53 -0800 |
| commit | 9d985141ef848f352c444cb950096c1e7ccadad9 (patch) | |
| tree | 7fa072b5380496fe84abc9f6c7c3f3c24c980622 /mlir/lib/IR | |
| parent | b259c26eb0717b6962c2f75ac23a44491b27810d (diff) | |
| download | bcm5719-llvm-9d985141ef848f352c444cb950096c1e7ccadad9.tar.gz bcm5719-llvm-9d985141ef848f352c444cb950096c1e7ccadad9.zip | |
Make legality check in GPU->SPIR-V lowering of FuncOp kernel specific.
Existing check that sets FuncOp to be dynamically legal was just
checking that the types of the argument are SPIR-V compatible. Since
the current conversion from GPU to SPIR-V does not handle lowering
non-kernel functions, change the legality check to verify that the
FuncOp has the gpu.kernel attribute and has void(void) return type.
PiperOrigin-RevId: 280032782
Diffstat (limited to 'mlir/lib/IR')
0 files changed, 0 insertions, 0 deletions

