aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMaheshRavishankar <ravishankarm@google.com>2020-02-08 18:23:09 -0800
committerMaheshRavishankar <ravishankarm@google.com>2020-02-08 22:30:03 -0800
commitaaddca1efd1d5a66d014023b9649cb273a84a7ae (patch)
tree365cc7cd5fcec83a438d950a6be02be331c9c66f /clang/lib/Frontend/CompilerInvocation.cpp
parente629674176f6a0cb2975f474a03d657a5ab5e3e7 (diff)
downloadllvm-aaddca1efd1d5a66d014023b9649cb273a84a7ae.zip
llvm-aaddca1efd1d5a66d014023b9649cb273a84a7ae.tar.gz
llvm-aaddca1efd1d5a66d014023b9649cb273a84a7ae.tar.bz2
[mlir][GPUToSPIRV] Modify the lowering of gpu.block_dim to be consistent with Vulkan SPEC
The existing lowering of gpu.block_dim added a global variable with the WorkGroupSize decoration. This raises an error within Vulkan/SPIR-V validation since Vulkan requires this to have a constant initializer. This is not yet supported in SPIR-V dialect. Changing the lowering to return the workgroup size as a constant value instead, obtained from spv.entry_point_abi attribute gets around the issue for now. The validation goes through since the workgroup size is specified using spv.execution_mode operation.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions