summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/may-alias.c
Commit message (Collapse)AuthorAgeFilesLines
* [FileCheck] Add -allow-deprecated-dag-overlap to failing clang testsJoel E. Denny2018-07-111-3/+3
| | | | | | | | | | See https://reviews.llvm.org/D47106 for details. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D47172 llvm-svn: 336844
* [CodeGen] Fix generation of TBAA tags for may-alias accessesIvan A. Kosarev2018-02-201-25/+44
| | | | | | | | | | | This patch fixes creating TBAA access descriptors for may_alias-marked access types. Currently, for such types we generate ordinary descriptors with char as its access type. The patch changes this to produce proper may-alias descriptors. Differential Revision: https://reviews.llvm.org/D42366 llvm-svn: 325575
* Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'.Chandler Carruth2016-12-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Much to my surprise, '-disable-llvm-optzns' which I thought was the magical flag I wanted to get at the raw LLVM IR coming out of Clang deosn't do that. It still runs some passes over the IR. I don't want that, I really want the *raw* IR coming out of Clang and I strongly suspect everyone else using it is in the same camp. There is actually a flag that does what I want that I didn't know about called '-disable-llvm-passes'. I suspect many others don't know about it either. It both does what I want and is much simpler. This removes the confusing version and makes that spelling of the flag an alias for '-disable-llvm-passes'. I've also moved everything in Clang to use the 'passes' spelling as it seems both more accurate (*all* LLVM passes are disabled, not just optimizations) and much easier to remember and spell correctly. This is part of simplifying how Clang drives LLVM to make it cleaner to wire up to the new pass manager. Differential Revision: https://reviews.llvm.org/D28047 llvm-svn: 290392
* IR: Make metadata typeless in assembly, clang sideDuncan P. N. Exon Smith2014-12-151-12/+12
| | | | | | Match LLVM changes from r224257. llvm-svn: 224259
* 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