[all-commits] [llvm/llvm-project] 0e90a8: [CIR] Add support for global linkage and visibilit...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Fri May 30 13:37:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e90a846d6dd48c0097ade8e0fa2221a8a6aef6c
      https://github.com/llvm/llvm-project/commit/0e90a846d6dd48c0097ade8e0fa2221a8a6aef6c
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-05-30 (Fri, 30 May 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIRAttrs.h
    M clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/CIR/Dialect/IR/CMakeLists.txt
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenModule.cpp
    M clang/lib/CIR/CodeGen/CIRGenModule.h
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/lib/CIR/Interfaces/CIROpInterfaces.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/test/CIR/CodeGen/array.cpp
    M clang/test/CIR/CodeGen/namespace.cpp
    M clang/test/CIR/CodeGen/string-literals.c
    M clang/test/CIR/CodeGen/struct.c
    M clang/test/CIR/CodeGen/struct.cpp
    M clang/test/CIR/CodeGen/union.c
    M clang/test/CIR/CodeGen/vector-ext.cpp
    M clang/test/CIR/CodeGen/vector.cpp
    M clang/test/CIR/IR/array.cir
    M clang/test/CIR/IR/global-var-linkage.cir
    M clang/test/CIR/IR/global.cir
    M clang/test/CIR/Lowering/array.cpp
    M clang/test/CIR/Lowering/global-var-simple.cpp
    M clang/test/CIR/Lowering/hello.c
    M clang/test/CIR/global-var-linkage.cpp
    M clang/test/CIR/global-var-simple.cpp

  Log Message:
  -----------
  [CIR] Add support for global linkage and visibility (#141973)

This change adds support for the CIRGlobalValueInterface and attributes
for visibility and comdat to GlobalOp.

The comdat attribute isn't correctly calculated yet, but it was required
for the CIRGlobalValueInterface interface. There are also some cases
where dso_local isn't set correctly, but it is better than it was before
this change. Those issues will be addressed in a future patch.



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