[flang-commits] [PATCH] D129018: [flang] Establish a single source of target information for semantics

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jul 5 00:42:44 PDT 2022


jeanPerier added a comment.

In D129018#3628786 <https://reviews.llvm.org/D129018#3628786>, @tschuett wrote:

> The Clang community was discussing on Discourse to move to MLIR codegen. It ended with an invitation to a meeting. Maybe it is a win for you to cooperate on ugly stuff like, e.g., comdats.

I suppose you are mentioning this thread: https://discourse.llvm.org/t/rfc-an-mlir-based-clang-ir-cir/63319/73 ?

For the BIND(C) and runtime interface parts at least, having a C/C++ ABI for the target available in MLIR could be useful. If it brings COMDAT support in MLIR, that may be a good way to share read only data between compilation units for the targets that supports it (linkonce/linkonce_odr gets us there on linux, but without any possible sanity checks at linktime that the data is indeed equivalent, although my understanding is that ExactMatch COMDAT flag support is low (i.e: not supported in ELF)).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129018/new/

https://reviews.llvm.org/D129018



More information about the flang-commits mailing list