[all-commits] [llvm/llvm-project] 91adae: [CIR][MLIR][OpenMP] Enable the MarkDeclareTarget p...

Jan Leyonberg via All-commits all-commits at lists.llvm.org
Wed Apr 1 09:50:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91adaeceb162357a33e2ea6155cb13a4198a981a
      https://github.com/llvm/llvm-project/commit/91adaeceb162357a33e2ea6155cb13a4198a981a
  Author: Jan Leyonberg <jan_sjodin at yahoo.com>
  Date:   2026-04-01 (Wed, 01 Apr 2026)

  Changed paths:
    A clang/include/clang/CIR/Dialect/OpenMP/RegisterOpenMPExtensions.h
    M clang/lib/CIR/CodeGen/CIRGenerator.cpp
    M clang/lib/CIR/CodeGen/CMakeLists.txt
    M clang/lib/CIR/Dialect/CMakeLists.txt
    A clang/lib/CIR/Dialect/OpenMP/CMakeLists.txt
    A clang/lib/CIR/Dialect/OpenMP/RegisterOpenMPExtensions.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/CMakeLists.txt
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    A clang/test/CIR/Transforms/omp-mark-declare-target.cir
    M clang/tools/cir-opt/CMakeLists.txt
    M clang/tools/cir-opt/cir-opt.cpp
    M clang/tools/cir-translate/CMakeLists.txt
    M clang/tools/cir-translate/cir-translate.cpp
    M mlir/lib/Dialect/OpenMP/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/OpenMP/Transforms/MarkDeclareTarget.cpp

  Log Message:
  -----------
  [CIR][MLIR][OpenMP] Enable the MarkDeclareTarget pass for ClangIR (#189420)

This patch enables the MarkDeclareTarget for CIR by adding the pass to
the lowerings and attaching the declare target interface to the
cir::FuncOp. The MarkDeclareTarget is also generalized to work on the
FunctionOpInterface instead of func::Op since it needs to be able to
handle cir::FuncOp as well.

Co-authored-by: Claude Opus 4.6 <noreply at anthropic.com>



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