[all-commits] [llvm/llvm-project] a17d49: [Flang][Driver][AMDGPU] Fix -mcode-object-version ...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Fri Apr 4 03:55:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a17d49687a2f5bc43fa57376a566c65a7fc97d7b
      https://github.com/llvm/llvm-project/commit/a17d49687a2f5bc43fa57376a566c65a7fc97d7b
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Flang.cpp
    M flang/include/flang/Frontend/CodeGenOptions.h
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/test/Driver/code-object-version.f90
    A flang/test/Integration/amdgpu-code-object-version.f90

  Log Message:
  -----------
  [Flang][Driver][AMDGPU] Fix -mcode-object-version (#134230)

This patch updates flang to follow clang's behavior when processing the
`-mcode-object-version` option.

It is now used to populate an LLVM module flag called
`amdhsa_code_object_version` expected by the backend and also updates
the driver to add the `--amdhsa-code-object-version` option to the
frontend invocation for device compilation of AMDGPU targets.



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