[clang] [CIR] Upstream initial TBAA implementation (PR #169226)

Hendrik Hübner via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 24 09:14:26 PST 2025


================
@@ -325,6 +331,52 @@ class CIRGenModule : public CIRGenTypeCache {
   clang::CharUnits getNaturalTypeAlignment(clang::QualType t,
----------------
HendrikHuebner wrote:

In classic codegen this function actually takes a `TBAAAccessInfo*` too, and assigns it to the TBAA information obtained from the `QualType`. However, I omitted this here since the function does not have anything to do with TBAA.  It seems like this was only added to avoid duplicating two lines of code at some of the call sites.

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


More information about the cfe-commits mailing list