summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/may-alias.c
Commit message (Collapse)AuthorAgeFilesLines
* Turn struct-path aware TBAA on by default.Manman Ren2013-10-111-2/+2
| | | | | | | | Use -no-struct-path-tbaa to turn it off. This is the same as r191695, which was reverted because it depends on a commit that has issues. llvm-svn: 192497
* TBAA: use the same format for scalar TBAA and struct-path aware TBAA.Manman Ren2013-10-081-3/+5
| | | | | | | | | | | | | | | | An updated version of r191586 with bug fix. Struct-path aware TBAA generates tags to specify the access path, while scalar TBAA only generates tags to scalar types. We should not generate a TBAA tag with null being the first field. When a TBAA type node is null, the tag should be null too. Make sure we don't decorate an instruction with a null TBAA tag. Added a testing case for the bug reported by Richard with -relaxed-aliasing and -fsanitizer=thread. llvm-svn: 192145
* Revert r191586 and r191695. They cause crashes when building withRichard Smith2013-10-011-7/+5
| | | | | | -relaxed-aliasing. llvm-svn: 191725
* Turn struct-path aware TBAA on by default.Manman Ren2013-09-301-2/+2
| | | | | | Use -no-struct-path-tbaa to turn it off. llvm-svn: 191695
* TBAA: use the same format for scalar TBAA and struct-path aware TBAA.Manman Ren2013-09-271-3/+5
| | | | | | | Struct-path aware TBAA generates tags to specify the access path, while scalar TBAA only generates tags to scalar types. llvm-svn: 191586
* Don't use mangleCXXRTTIName in TBAA for C code.Manman Ren2013-08-211-1/+1
| | | | | | | | | | | With r185721, calling mangleCXXRTTIName on C code will cause crashes. This commit fixes crashes on C testing cases when turning on struct-path TBAA. For C code, we simply use the Decl name without the context. This can cause two different structs having the same name, and may cause inaccurate but conservative alias results. llvm-svn: 188930
* Make these tests more robust against IRgen choosing to emit more named metadata.Richard Smith2013-07-141-9/+8
| | | | llvm-svn: 186279
* Struct-path aware TBAA: fix handling of may_alias attribute.Manman Ren2013-04-271-2/+13
| | | | llvm-svn: 180656
* Use MDBuilder to help with metadata creation.Duncan Sands2012-04-151-1/+1
| | | | llvm-svn: 154767
* Pretty up the emission of field l-values and use volatile and TBAA whenJohn McCall2011-02-261-2/+11
| | | | | | | loading references as part of that. Use 'char' TBAA when accessing (immediate!) fields of a may_alias struct; fixes PR9307. llvm-svn: 126540
* Generalize this test to work without instruction names.Dan Gohman2010-12-141-2/+2
| | | | llvm-svn: 121742
* Implement CodeGen support for the may_alias attribute.Dan Gohman2010-12-131-0/+21
llvm-svn: 121734
OpenPOWER on IntegriCloud