llvm-project/llvm/test/Analysis/CFLAliasAnalysis/Steensgaard
Sanjoy Das 3336f681e3 [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
..
arguments-globals.ll
arguments.ll
asm-global-bugfix.ll
attr-escape.ll
basic-interproc.ll
branch-alias.ll
const-expr-gep.ll
constant-over-index.ll
empty.ll
full-store-partial-alias.ll [Verifier] Add verification for TBAA metadata 2016-12-11 20:07:15 +00:00
gep-index-no-alias.ll
gep-signed-arithmetic.ll
interproc-arg-deref-escape.ll
interproc-arg-escape.ll
interproc-ret-arg.ll [CFLAA] Remove modref queries from CFLAA. 2016-08-01 18:47:28 +00:00
interproc-ret-deref-arg-multilevel.ll
interproc-ret-deref-arg.ll
interproc-ret-escape.ll
interproc-ret-ref-arg-multilevel.ll
interproc-ret-ref-arg.ll
interproc-ret-unknown.ll
interproc-store-arg-multilevel.ll
interproc-store-arg-unknown.ll
interproc-store-arg.ll
malloc-and-free.ll
multilevel-combine.ll
multilevel.ll
must-and-partial.ll
opaque-call-alias.ll
phi-and-select.ll
pr27213.ll
simple.ll
stratified-attrs-indexing.ll
va.ll