[all-commits] [llvm/llvm-project] 4ffdc3: [flang][hlfir] `hlfir.char_extremum` op definition...

Anthony Cabrera via All-commits all-commits at lists.llvm.org
Mon Jun 26 12:42:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ffdc3ac36717031126f65f5e8b4e738d6348016
      https://github.com/llvm/llvm-project/commit/4ffdc3ac36717031126f65f5e8b4e738d6348016
  Author: Anthony Cabrera <cabreraam at ornl.gov>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/Character.h
    M flang/include/flang/Optimizer/HLFIR/CMakeLists.txt
    M flang/include/flang/Optimizer/HLFIR/HLFIRDialect.h
    M flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
    M flang/include/flang/Optimizer/HLFIR/HLFIROps.td
    M flang/lib/Optimizer/Builder/Character.cpp
    M flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
    M flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
    A flang/test/HLFIR/char_extremum-bufferization.fir
    A flang/test/HLFIR/char_extremum.fir

  Log Message:
  -----------
  [flang][hlfir] `hlfir.char_extremum` op definition and codegen

This patch adds an hlfir operation called `char_extremum`, which takes the
lexicographic comparison between a variadic number (minimum of 2 arguments) of
characters.

Discussion for this work can be found in the draft revision found
[here](https://reviews.llvm.org/D143326). The reason I'm not promoting that draft to
a true patch for review was because I needed to separate out the op
definition/codegen and lowering as two separate patches, as preferred by
@jeanPerier.

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




More information about the All-commits mailing list