[all-commits] [llvm/llvm-project] fce572: [flang][cuda] Add extra constructor option to CUFA...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Sep 22 13:20:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fce572795ba0a17d0574287ff25678e66e972b7d
      https://github.com/llvm/llvm-project/commit/fce572795ba0a17d0574287ff25678e66e972b7d
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M flang/include/flang/Optimizer/Transforms/Passes.h
    M flang/include/flang/Optimizer/Transforms/Passes.td
    M flang/lib/Optimizer/Transforms/CUDA/CUFAddConstructor.cpp
    A flang/test/Fir/CUDA/cuda-constructor-extra.fir

  Log Message:
  -----------
  [flang][cuda] Add extra constructor option to CUFAddConstructor (#225181)

Add an option to add extra constructors to the `llvm.mlir.global_ctors`.
The option is taking a pair of string and a boolean. The boolean is
telling if the constructor needs to be added always or only when
`PROGRAM` statement is present in the translation unit. This is used to
set up sentinels in different compilation mode.



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