Add MDBuilder utilities for path-aware TBAA.
authorManman Ren <mren@apple.com>
Tue, 2 Apr 2013 19:50:49 +0000 (19:50 +0000)
committerManman Ren <mren@apple.com>
Tue, 2 Apr 2013 19:50:49 +0000 (19:50 +0000)
commit082bb7cf57e3a7089b8302a7d676fddf0bce276e
treec3ad23b6aed1005bb53074e871c02cc5f3cdf806
parentdebf7d345aa297ebedf2d3b1db234feb44c71483
Add MDBuilder utilities for path-aware TBAA.

Add utilities to create struct nodes in TBAA type DAG and to create path-aware
tags. The format of struct nodes in TBAA type DAG: a unique name, a list of
fields with field offsets and field types. The format of path-aware tags:
a base type in TBAA type DAG, an access type and an offset relative to the base
type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178564 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/MDBuilder.h