[all-commits] [llvm/llvm-project] c47d1c: [flang][FIR] implement asm alias interface for fir...

jeanPerier via All-commits all-commits at lists.llvm.org
Mon Jul 13 01:14:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c47d1cf955f607fea1d089b9e05aedf8867231ff
      https://github.com/llvm/llvm-project/commit/c47d1cf955f607fea1d089b9e05aedf8867231ff
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRTypes.td
    M flang/lib/Optimizer/Dialect/FIRType.cpp
    A flang/test/Fir/derived-type-aliases.fir

  Log Message:
  -----------
  [flang][FIR] implement asm alias interface for fir.type under option (#208665)

FIR is extremely verbose with derived types because the type lists all
the component names and types, so in case of nested derived type, the
type length in the assembly may grow over thousands of characters.

This patch implements the `getAlias` that allows using the fir.type name
as the MLIR type alias. This significantly reduce the IR size in
application with derived type.

I am planning to enable this by default, but there will be some churn in
the lit test, so I am first adding it under a developer option.

Assisted-by: Cursor



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list