[CodeGen] Collect information about sizes of accesses and access types for TBAA
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Mon, 27 Nov 2017 09:39:29 +0000 (09:39 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Mon, 27 Nov 2017 09:39:29 +0000 (09:39 +0000)
commit4e50e707bfd9aedb6cfda45b4a36089bd2086717
tree273983365df3faa2184c3206f2e8963e6812c916
parentb833bf6ae14f55272c642a5d5200fabb9f29bf69
[CodeGen] Collect information about sizes of accesses and access types for TBAA

The information about access and type sizes is necessary for
producing TBAA metadata in the new size-aware format. With this
patch, D39955 and D39956 in place we should be able to change
CodeGenTBAA::createScalarTypeNode() and
CodeGenTBAA::getBaseTypeInfo() to generate metadata in the new
format under the -new-struct-path-tbaa command-line option. For
now, this new information remains unused.

Differential Revision: https://reviews.llvm.org/D40176

llvm-svn: 319012
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/CodeGenTBAA.cpp
clang/lib/CodeGen/CodeGenTBAA.h