aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNicolas Vasilache <Nico.Vasilache@amd.com>2025-07-07 15:14:52 +0200
committerGitHub <noreply@github.com>2025-07-07 15:14:52 +0200
commit0a628369698101b9db7eb16cee1f8ba33a23db4c (patch)
tree2404662a35ec7b21f42d08ab7d76bbfbf3aad09e /flang/lib/Frontend/CompilerInvocation.cpp
parent46e3ec0244c4d75a57cd635a28a9d5cbaee67c3d (diff)
downloadllvm-0a628369698101b9db7eb16cee1f8ba33a23db4c.zip
llvm-0a628369698101b9db7eb16cee1f8ba33a23db4c.tar.gz
llvm-0a628369698101b9db7eb16cee1f8ba33a23db4c.tar.bz2
[mlir][gpu][transforms] Add support for mapping to lanes (#146912)
This revision adds a new attribute for mapping `scf.forall` to linear lane ids. Example: ``` // %arg2 and %arg3 map to lanes [0, 6) and are turned into epxressions // involving threadIdx.x/y by the map_nested_forall_to_threads // transformation. This results in a if (linear_thread_id < 6) conditional. scf.forall (%arg2, %arg3) in (2, 3) { ... } {mapping = [#gpu.lane<linear_dim_0>, #gpu.lane<linear_dim_1>]} ``` --------- Co-authored-by: Oleksandr "Alex" Zinenko <git@ozinenko.com>
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions