[all-commits] [llvm/llvm-project] ea5550: [fir] Add fir.extract_value and fir.insert_value c...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri Nov 5 07:53:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea55503d7ca5b6ded73b0fd01a8c528f68e00521
      https://github.com/llvm/llvm-project/commit/ea55503d7ca5b6ded73b0fd01a8c528f68e00521
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    A flang/lib/Optimizer/CodeGen/DescriptorModel.h
    M flang/lib/Optimizer/CodeGen/TypeConverter.h
    M flang/test/Fir/convert-to-llvm.fir

  Log Message:
  -----------
  [fir] Add fir.extract_value and fir.insert_value conversion

This patch add the conversion pattern for fir.extract_value
and fir.insert_value. fir.extract_value is lowered to llvm.extractvalue
anf fir.insert_value is lowered to llvm.insertvalue.
This patch also adds the type conversion for the BoxType and RecordType
needed to have some comprehensive tests.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: awarzynski

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

Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>




More information about the All-commits mailing list