[clang] [CIR] Add TBAA for vtable pointers, aggregate copies, atomics and complex (PR #247722)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 03:51:57 PST 2026
================
@@ -538,7 +541,8 @@ def CIR_DynamicCastOp : CIR_Op<"dyn_cast"> {
let arguments = (ins
CIR_DynamicCastKindAttr:$kind,
CIR_PtrToRecordType:$src,
- OptionalAttr<CIR_DynamicCastInfoAttr>:$info
+ OptionalAttr<CIR_DynamicCastInfoAttr>:$info,
+ OptionalAttr<CIR_TBAATagAttr>:$tbaa
----------------
xlauko wrote:
`tbaa` is only read when lowering a cast to `void *`. Other casts lower to a `__dynamic_cast` call and drop it. Should a verifier reject `tbaa` when `!isCastToVoid()`?
https://github.com/llvm/llvm-project/pull/247722
More information about the cfe-commits
mailing list