[all-commits] [llvm/llvm-project] dc6a34: [flang] Add lowering for integer constant

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Feb 3 02:10:50 PST 2022


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

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

  Log Message:
  -----------
  [flang] Add lowering for integer constant

This patch enables the lowering of integer constant.

The `ScalarExprLowering` class is introduced in `ConvertExpr.cpp` to help
the lowering of expression. This patch adds all the placeholder as well for future
expression lowering with the appropriate TODOs.

Integer constant expression are lowered to `arith.constant` with an integer type corresponding to the kind value.

This patch is in support of D118787

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

Reviewed By: schweitz, kiranchandramohan

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




More information about the All-commits mailing list