[all-commits] [llvm/llvm-project] 1495ce: [flang] Add hlfir.index op to represent index intr...

Valery Dmitriev via All-commits all-commits at lists.llvm.org
Wed Sep 10 10:06:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1495ceacbf511a0694df90341772d286fbcf2032
      https://github.com/llvm/llvm-project/commit/1495ceacbf511a0694df90341772d286fbcf2032
  Author: Valery Dmitriev <valeryd at nvidia.com>
  Date:   2025-09-10 (Wed, 10 Sep 2025)

  Changed paths:
    M flang/include/flang/Lower/HlfirIntrinsics.h
    M flang/include/flang/Optimizer/Builder/Runtime/Character.h
    M flang/include/flang/Optimizer/HLFIR/HLFIROps.td
    M flang/lib/Lower/ConvertCall.cpp
    M flang/lib/Lower/HlfirIntrinsics.cpp
    M flang/lib/Optimizer/Builder/Runtime/Character.cpp
    M flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
    M flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIRIntrinsics.cpp
    A flang/test/HLFIR/index-lowering.fir
    M flang/test/HLFIR/invalid.fir
    A flang/test/Lower/HLFIR/index.f90
    M flang/test/Lower/volatile-string.f90

  Log Message:
  -----------
  [flang] Add hlfir.index op to represent index intrinsic function (#157575)

The change adds a new HLFIR operation. A call to index intrinsic now
becomes lowered into the hlfir.index op and then naive lowering of the
op translates it back to appropriate runtime call. The change set is
aimed to be functionally equivalent to exiting index functionality, but
is much more efficient in a case of presence of the 'kind' intrinsic
parameter.
Also fixed couple of parameter lowering issues which were revealed while
working on the index-related functional parts.



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