[PATCH] D122573: [TBAA] Emit distinct TBAA tags for pointers with different depths,types.

Biplob Mishra via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 14 03:32:03 PST 2023


bipmis added a comment.
Herald added a subscriber: StephenFan.

@fhahn We are also observing scenarios where this maybe necessary. A couple of points on where it may be missing

1. createScalarTypeNode(OutName, AnyPtr, Size) -> This will generate different Base type. However the accessTy being "any pointer" , the check "access to the base object is through a field of the subobject's type" will return alias as we traverse from BaseTag Node until we reach Root or we find a SubobjectTag BaseType. In this case the match would be true on "any pointer". Can this be potentially be thought of as  createScalarTypeNode(OutName, getChar(), Size) as a pointer type can edge to char?

2. The pointer type is restricted to isa<BuiltinType>(Ty). There can be potential scenarios where we may want pointer to struct or class.

I can provide some examples if that would be helpful. Thanks.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122573/new/

https://reviews.llvm.org/D122573



More information about the cfe-commits mailing list