[clang] [CIR] Upstream support for emitting constructors (PR #143639)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 11 07:01:25 PDT 2025


================
@@ -21,6 +21,88 @@
 using namespace clang;
 using namespace clang::CIRGen;
 
+/// Checks whether the given constructor is a valid subject for the
+/// complete-to-base constructor delgation optimization, i.e. emitting the
+/// complete constructor as a simple call to the base constructor.
----------------
erichkeane wrote:

Is this sort of optimization something we can do in CIR?  This lives IIRC in classic-codegen because LLVM-IR can't represent enough info for this.

https://github.com/llvm/llvm-project/pull/143639


More information about the cfe-commits mailing list