[all-commits] [llvm/llvm-project] dc4aa8: [Flang] Add target-abi to CodegenSpecifics (#201539)

Philipp Rados via All-commits all-commits at lists.llvm.org
Thu Jun 11 08:22:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc4aa8452cc57f41995ed9ef14679f8f58ca15ee
      https://github.com/llvm/llvm-project/commit/dc4aa8452cc57f41995ed9ef14679f8f58ca15ee
  Author: Philipp Rados <philipp.rados at openchip.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M flang/include/flang/Optimizer/CodeGen/CGPasses.td
    M flang/include/flang/Optimizer/CodeGen/Target.h
    M flang/include/flang/Optimizer/Dialect/Support/FIRContext.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Optimizer/CodeGen/Target.cpp
    M flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
    M flang/lib/Optimizer/CodeGen/TypeConverter.cpp
    M flang/lib/Optimizer/Dialect/Support/FIRContext.cpp
    A flang/test/Fir/target-rewrite-target-abi.fir

  Log Message:
  -----------
  [Flang] Add target-abi to CodegenSpecifics (#201539)

This sets the target-abi, specified in TargetOptions on the MLIR-Module.
This allows it to be used by CodegenSpecifics in the TargetRewritePass.

Currently this is only needed by RISCV64, but can also be used by other
targets. This allows to reuse the logic from clang when determining the
ABI, needed for patch
https://github.com/llvm/llvm-project/pull/198335#discussion_r3272341234.



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