[all-commits] [llvm/llvm-project] 2c2e5a: [flang] Basic local variable lowering

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Feb 7 00:14:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c2e5a5d0f191027ab447899599baeaf744fc2eb
      https://github.com/llvm/llvm-project/commit/2c2e5a5d0f191027ab447899599baeaf744fc2eb
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-02-07 (Mon, 07 Feb 2022)

  Changed paths:
    M flang/include/flang/Lower/ConvertType.h
    A flang/include/flang/Lower/ConvertVariable.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/CMakeLists.txt
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Lower/ConvertType.cpp
    A flang/lib/Lower/ConvertVariable.cpp

  Log Message:
  -----------
  [flang] Basic local variable lowering

This patch add lowering for simple local variable.

- The signatures in `ConvertType.h` have been simplified to take advantage of the `AbstractConverter`.
- The lowering make use of the `allocateLocal` from the `FirOpBuilder`.

This lowering is used in patch D118982

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

Reviewed By: kiranchandramohan, jeanPerier, schweitz

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




More information about the All-commits mailing list