[all-commits] [llvm/llvm-project] 87b2d1: [flang] Add getTypeDescriptorBindingTableName func...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Oct 18 10:56:10 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87b2d1d04ed6d2e46e961a9f73bb8d607d8692da
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Support/InternalNames.h
    M flang/lib/Optimizer/Support/InternalNames.cpp
    M flang/unittests/Optimizer/InternalNamesTest.cpp

  Log Message:
  [flang] Add getTypeDescriptorBindingTableName function

Type descriptor and its binding table are defined as fir.global in FIR.
Their names are derived from the derived-type name. This patch adds a new
function `getTypeDescriptorBindingTableName` in the NameUniquer and
refactor the `GetTypeDescriptorName` function to reuse the same code.
This will be used in the fir.dispatch code generation.

Reviewed By: jeanPerier

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

More information about the All-commits mailing list