[all-commits] [llvm/llvm-project] a68571: [mlir] Add pass to add comdat to all linkonce func...

David Truby via All-commits all-commits at lists.llvm.org
Wed Sep 13 05:05:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6857156df9a73720fbd9633067d1a61c32dd74e
      https://github.com/llvm/llvm-project/commit/a6857156df9a73720fbd9633067d1a61c32dd74e
  Author: David Truby <david at truby.dev>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    A mlir/include/mlir/Dialect/LLVMIR/Transforms/AddComdats.h
    M mlir/include/mlir/Dialect/LLVMIR/Transforms/Passes.h
    M mlir/include/mlir/Dialect/LLVMIR/Transforms/Passes.td
    A mlir/lib/Dialect/LLVMIR/Transforms/AddComdats.cpp
    M mlir/lib/Dialect/LLVMIR/Transforms/CMakeLists.txt
    A mlir/test/Dialect/LLVMIR/add-linkonce-comdat.mlir

  Log Message:
  -----------
  [mlir] Add pass to add comdat to all linkonce functions (#65270)

This adds a new pass to add an Any comdat to each linkonce
and linkonce_odr function in the LLVM dialect. These comdats are
necessary on Windows
to allow the default system linker to link binaries containing these
functions.




More information about the All-commits mailing list