[all-commits] [llvm/llvm-project] 8ec0f2: Update fir.insert_on_range syntax to make the rang...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Nov 23 18:06:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ec0f221843c51096cf3e7a479e780be371388a8
      https://github.com/llvm/llvm-project/commit/8ec0f221843c51096cf3e7a479e780be371388a8
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M flang/test/Fir/convert-to-llvm.fir
    M flang/test/Fir/fir-ops.fir
    M flang/test/Fir/invalid.fir

  Log Message:
  -----------
  Update fir.insert_on_range syntax to make the range more explicit (NFC)

Also replace ArrayAttr with IndexElementsAttr to model subscript dimensions.
An array of attribute is a sparse inefficient storage, with an API that
requires to unpack/repack integers at every call site.
Instead we can store dense array of integer as IndexElementsAttr.

Reviewed By: clementval, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D112899




More information about the All-commits mailing list