[all-commits] [llvm/llvm-project] 022600: [flang] Update the description of `!fir.coordinate...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Mon Jan 24 02:46:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 022600334dcb914d24230c6659487b2744af702b
      https://github.com/llvm/llvm-project/commit/022600334dcb914d24230c6659487b2744af702b
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/test/Fir/convert-to-llvm.fir

  Log Message:
  -----------
  [flang] Update the description of `!fir.coordinate_of`

This change was suggested in one of the comments for
https://reviews.llvm.org/D115333. Basically, the following usage is
valid, but the current wording suggests otherwise:
```
%1 = fir.coordinate_of %a, %k : (!fir.ref<!fir.array<10 x 10 x i32>>, index) -> !fir.ref<!fir.array<10 x i32>>
```
A test is also added to better document this particular case.

Differential revision: https://reviews.llvm.org/D115929




More information about the All-commits mailing list