1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/Util
Sanjoy Das a0e8011216 [Verifier] Add verification for TBAA metadata
Summary:
This change adds some verification in the IR verifier around struct path
TBAA metadata.

Other than some basic sanity checks (e.g. we get constant integers where
we expect constant integers), this checks:

 - That by the time an struct access tuple `(base-type, offset)` is
   "reduced" to a scalar base type, the offset is `0`.  For instance, in
   C++ you can't start from, say `("struct-a", 16)`, and end up with
   `("int", 4)` -- by the time the base type is `"int"`, the offset
   better be zero.  In particular, a variant of this invariant is needed
   for `llvm::getMostGenericTBAA` to be correct.

 - That there are no cycles in a struct path.

 - That struct type nodes have their offsets listed in an ascending
   order.

 - That when generating the struct access path, you eventually reach the
   access type listed in the tbaa tag node.

Reviewers: dexonsmith, chandlerc, reames, mehdi_amini, manmanren

Subscribers: mcrosier, llvm-commits

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

llvm-svn: 289402
2016-12-11 20:07:15 +00:00
..
MemorySSA [MemorySSA] Fix unit tests broken by D26704 2016-11-21 20:39:08 +00:00
combine-alias-scope-metadata.ll
flattencfg.ll
libcalls-shrinkwrap-double.ll Conditionally eliminate library calls where the result value is not used 2016-10-18 21:36:27 +00:00
libcalls-shrinkwrap-float.ll Conditionally eliminate library calls where the result value is not used 2016-10-18 21:36:27 +00:00
libcalls-shrinkwrap-long-double.ll Conditionally eliminate library calls where the result value is not used 2016-10-18 21:36:27 +00:00
lowerswitch.ll
simplify-dbg-declare-load.ll
split-bit-piece.ll [DIExpression] Introduce a dedicated DW_OP_LLVM_fragment operation 2016-12-05 18:04:47 +00:00
store-first-op.ll [Verifier] Add verification for TBAA metadata 2016-12-11 20:07:15 +00:00
strip-gc-relocates.ll [StripGCRelocates] New pass to remove gc.relocates added by RS4GC 2016-10-21 18:43:16 +00:00
strip-nonlinetable-debuginfo-containingtypes.ll Add -strip-nonlinetable-debuginfo capability 2016-10-25 18:44:13 +00:00
strip-nonlinetable-debuginfo-cus.ll Add -strip-nonlinetable-debuginfo capability 2016-10-25 18:44:13 +00:00
strip-nonlinetable-debuginfo-localvars.ll Add -strip-nonlinetable-debuginfo capability 2016-10-25 18:44:13 +00:00
strip-nonlinetable-debuginfo-subroutinetypes.ll Add -strip-nonlinetable-debuginfo capability 2016-10-25 18:44:13 +00:00