[all-commits] [llvm/llvm-project] 5228c2: [flang][FIR] add fir.is_assumed_size operation (#9...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu May 30 23:39:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5228c2cbd6d834a76c24ca9f2aaa2c4f7a0b5510
      https://github.com/llvm/llvm-project/commit/5228c2cbd6d834a76c24ca9f2aaa2c4f7a0b5510
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-05-31 (Fri, 31 May 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/test/Fir/fir-ops.fir
    M flang/test/Fir/invalid.fir

  Log Message:
  -----------
  [flang][FIR] add fir.is_assumed_size operation (#93853)

Assumed-rank fir.box/class may describe assumed-size array. This case
needs special handling in SELECT RANK. It is not possible to generate
FIR code to detect that a fir.box is an assumed-size (the way to detect
that is to check that upper dimension extent is -1 in the descriptor).

Instead of emitting a runtime call directly in lowering, add an
operation that can later be lowered to a runtime call or inline code
when the descriptor layout is known.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list