[Mlir-commits] [mlir] [MLIR][LLVMIR] Add support for empty global ctor/dtor lists (PR #128969)
Bruno Cardoso Lopes
llvmlistbot at llvm.org
Thu Feb 27 10:46:06 PST 2025
bcardosolopes wrote:
> Can you expand on why we should not just drop empty decls?
LLVM IR emitted in our C++ codebase contains `@llvm.global_ctors = appending global [0 x { i32, ptr, ptr }] zeroinitializer`, I could go dig clang codegen to find out why this gets emitted but it feels orthogonal here - seems rather silly that if try to roundtrip code like this from the importer, we'll end up with nothing in place.
If you think this should be represented differently (i.e. not by empty lists), please let me know what approach you'd like to see.
https://github.com/llvm/llvm-project/pull/128969
More information about the Mlir-commits
mailing list