[clang] [CIR] Keep CIR global types visible across lowering replacements (PR #238698)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 01:53:50 PST 2026
================
@@ -4879,6 +4971,15 @@ void ConvertCIRToLLVMPass::runOnOperation() {
llvm::TimeTraceScope scope("Convert CIR to LLVM Pass");
mlir::ModuleOp module = getOperation();
+ // CIR type of each symbol before lowering, for lookups that find the
+ // already-lowered LLVM symbol after replacement.
+ CIRPreConversionTypeMap preConversionTypes;
----------------
xlauko wrote:
Please add a comment that this has to cover every symbol kind that can be replaced by an LLVM global, function or alias. Otherwise the next kind added quietly falls back to the adjusted type.
https://github.com/llvm/llvm-project/pull/238698
More information about the cfe-commits
mailing list