[flang-commits] [flang] Update FIROps.td to add $grid_z to CudaKernelLaunch (PR #85318)
via flang-commits
flang-commits at lists.llvm.org
Thu Mar 14 14:47:31 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: Iman Hosseini (ImanHosseini)
<details>
<summary>Changes</summary>
grid can be 3 dimensional.
---
Full diff: https://github.com/llvm/llvm-project/pull/85318.diff
1 Files Affected:
- (modified) flang/include/flang/Optimizer/Dialect/FIROps.td (+3-2)
``````````diff
diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td
index 65a86d25333b5d..f4792637f481c0 100644
--- a/flang/include/flang/Optimizer/Dialect/FIROps.td
+++ b/flang/include/flang/Optimizer/Dialect/FIROps.td
@@ -2454,6 +2454,7 @@ def fir_CUDAKernelLaunch : fir_Op<"cuda_kernel_launch", [CallOpInterface,
SymbolRefAttr:$callee,
I32:$grid_x,
I32:$grid_y,
+ I32:$grid_z,
I32:$block_x,
I32:$block_y,
I32:$block_z,
@@ -2463,8 +2464,8 @@ def fir_CUDAKernelLaunch : fir_Op<"cuda_kernel_launch", [CallOpInterface,
);
let assemblyFormat = [{
- $callee `<` `<` `<` $grid_x `,` $grid_y `,` $block_x `,` $block_y `,`
- $block_z ( `,` $bytes^ ( `,` $stream^ )? )? `>` `>` `>`
+ $callee `<` `<` `<` $grid_x `,` $grid_y `,` $grid_z `,`$block_x `,`
+ $block_y `,` $block_z ( `,` $bytes^ ( `,` $stream^ )? )? `>` `>` `>`
`` `(` ( $args^ `:` type($args) )? `)` attr-dict
}];
``````````
</details>
https://github.com/llvm/llvm-project/pull/85318
More information about the flang-commits
mailing list