summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/tbaa-struct.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite record layout for ms_struct structs.Eli Friedman2013-06-261-1/+1
| | | | | | | | | | | | | | The old implementation of ms_struct in RecordLayoutBuilder was a complete mess: it depended on complicated conditionals which didn't really reflect the underlying logic, and placed a burden on users of the resulting RecordLayout. This commit rips out almost all of the old code, and replaces it with simple checks in RecordLayoutBuilder::LayoutBitField. This commit also fixes <rdar://problem/14252115>, a bug where class inheritance would cause us to lay out bitfields incorrectly. llvm-svn: 185018
* Add triple to tbaa-struct.cpp to appease botsManman Ren2013-04-221-1/+1
| | | | llvm-svn: 180065
* TBAA: make sure zero-length bitfield works for tbaa.struct and path-aware tbaaManman Ren2013-04-221-0/+28
| | | | | | | | For ms structs, zero-length bitfields following non-bitfield members are completely ignored, we should not increase the field index. Before the fix, we will have an assertion failure. llvm-svn: 180038
* Add more testing cases for tbaa.structManman Ren2013-03-211-0/+29
| | | | | | Testing cases for structs of structs and unions of structs. llvm-svn: 177612
* clang/test/CodeGen/tbaa-struct.cpp: Fix. Be aware of 32 bit pointer.NAKAMURA Takumi2012-09-291-1/+2
| | | | llvm-svn: 164879
* Add basic support for adding !tbaa.struct metadata on llvm.memcpy calls forDan Gohman2012-09-281-0/+16
struct assignment. llvm-svn: 164853
OpenPOWER on IntegriCloud