[all-commits] [llvm/llvm-project] 7ba7d8: [clang-repl] [codegen] Reduce the state in TBAA. N...

Vassil Vassilev via All-commits all-commits at lists.llvm.org
Tue Oct 15 01:18:09 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ba7d8e2f7b6445b60679da826210cdde29eaf8b
      https://github.com/llvm/llvm-project/commit/7ba7d8e2f7b6445b60679da826210cdde29eaf8b
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2024-10-15 (Tue, 15 Oct 2024)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGClass.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/CodeGen/CodeGenTBAA.cpp
    M clang/lib/CodeGen/CodeGenTBAA.h
    M clang/lib/CodeGen/CodeGenTypes.cpp
    M clang/lib/CodeGen/CodeGenTypes.h
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    A clang/test/Interpreter/assigment-with-implicit-ctor.cpp

  Log Message:
  -----------
  [clang-repl] [codegen] Reduce the state in TBAA. NFC for static compilation. (#98138)

In incremental compilation clang works with multiple `llvm::Module`s.
Our current approach is to create a CodeGenModule entity for every new
module request (via StartModule). However, some of the state such as the
mangle context needs to be preserved to keep the original semantics in
the ever-growing TU.

Fixes: llvm/llvm-project#95581.

cc: @jeaye
(cherry picked from commit 6c62ad446b2441b78ae524d9e700e351d5a76394)



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