diff options
author | Ivan A. Kosarev <ikosarev@accesssoftek.com> | 2017-10-02 11:10:04 +0000 |
---|---|---|
committer | Ivan A. Kosarev <ikosarev@accesssoftek.com> | 2017-10-02 11:10:04 +0000 |
commit | 5c8e7596e6e886544cf99a9e9ee62d9bf0fc9ba3 (patch) | |
tree | 41294d0c4ccba0b3e11699a30ec1141edfdceb15 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 3ccd23e1166ff7d79eb89579c0cd5056934a8f6c (diff) | |
download | bcm5719-llvm-5c8e7596e6e886544cf99a9e9ee62d9bf0fc9ba3.tar.gz bcm5719-llvm-5c8e7596e6e886544cf99a9e9ee62d9bf0fc9ba3.zip |
[CodeGen] Have a special function to get TBAA info for may-alias accesses
This is part of D37826 reworked to be a separate patch to
simplify review.
Differential Revision: https://reviews.llvm.org/D38408
llvm-svn: 314660
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 25779c044bb..ec122b795ce 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -599,6 +599,12 @@ llvm::MDNode *CodeGenModule::getTBAAStructTagInfo(QualType BaseTy, return TBAA->getTBAAStructTagInfo(BaseTy, AccessN, O); } +llvm::MDNode *CodeGenModule::getTBAAMayAliasTypeInfo() { + if (!TBAA) + return nullptr; + return TBAA->getMayAliasTypeInfo(); +} + /// Decorate the instruction with a TBAA tag. For both scalar TBAA /// and struct-path aware TBAA, the tag has the same format: /// base type, access type and offset. |