[all-commits] [llvm/llvm-project] 280246: [CIR][CodeGen][NFC] Retire the CodeGenUtils.h catc...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Mon Sep 14 09:39:58 PDT 2026
Branch: refs/heads/users/xlauko/cgutils-09-retire-umbrella
Home: https://github.com/llvm/llvm-project
Commit: 28024615922f48da38476127453a50c6c6b03e3e
https://github.com/llvm/llvm-project/commit/28024615922f48da38476127453a50c6c6b03e3e
Author: Henrich Lauko <hlauko at nvidia.com>
Date: 2026-09-14 (Mon, 14 Sep 2026)
Changed paths:
M clang/include/clang/CodeGenUtils/ClassUtils.h
R clang/include/clang/CodeGenUtils/CodeGenUtils.h
M clang/include/clang/CodeGenUtils/ModuleUtils.h
M clang/include/clang/CodeGenUtils/TargetUtils.h
M clang/lib/CIR/CodeGen/CIRGenClass.cpp
M clang/lib/CIR/CodeGen/CIRGenExpr.cpp
M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
M clang/lib/CIR/CodeGen/CIRGenModule.cpp
M clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp
M clang/lib/CodeGen/CGClass.cpp
M clang/lib/CodeGen/CGExpr.cpp
M clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/CodeGenUtils/CMakeLists.txt
M clang/lib/CodeGenUtils/ClassUtils.cpp
R clang/lib/CodeGenUtils/CodeGenUtils.cpp
M clang/lib/CodeGenUtils/ModuleUtils.cpp
M clang/lib/CodeGenUtils/TargetUtils.cpp
Log Message:
-----------
[CIR][CodeGen][NFC] Retire the CodeGenUtils.h catch-all header
The earlier patches in this series group shared helpers by the classic
CodeGen file they were extracted from, one header per origin. That
leaves CodeGenUtils.h holding only the five helpers #221001 started the
library with, so move those to the same places their neighbours went and
drop the header:
canSkipVTablePointerInitialization -> ClassUtils.h (CGClass.cpp)
fieldHasTrivialDestructorBody -> ClassUtils.h (CGClass.cpp)
isInitializerOfDynamicClass -> ClassUtils.h (CGClass.cpp)
hasUnwindExceptions -> ModuleUtils.h (CodeGenModule.cpp)
isAAPCS -> TargetUtils.h
isAAPCS is the one case origin does not settle, because it was
duplicated in CGExpr.cpp and CGRecordLayoutBuilder.cpp rather than
living in one file. It is a plain TargetInfo predicate, so it goes with
the other target predicates.
The library keeps its name; only the catch-all header goes away. This
is worth doing now rather than later because every helper we share from
here on would otherwise have to choose between the catch-all and a
themed header, and there is no rule that tells you which.
I have kept this separate from the rest of the series since it moves
code that is already on main, so it can be dropped on its own if you
would rather keep CodeGenUtils.h around.
No functional change intended, and no test output changes.
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