[clang] [CIR] Upstream support for emitting constructors (PR #143639)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 10 20:35:58 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.
----------------
Lancern wrote:
This looks like an optimization for me. Later maybe we should skip this during CIRGen and delay the optimization to later CIR passes?
https://github.com/llvm/llvm-project/pull/143639
More information about the cfe-commits
mailing list