Metadata: Add typed array-like wrapper for MDTuple
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 17:45:07 +0000 (17:45 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 17:45:07 +0000 (17:45 +0000)
commit8eb45116ef6ba34a579b4c55f906b7f3371dc606
tree2aba98b5be2300781f5e9ec0c574243fdd39f101
parentc6370a13cfb21947126e388bf468d063013a26c5
Metadata: Add typed array-like wrapper for MDTuple

Add `MDTupleTypedArrayWrapper`, a wrapper around `MDTuple` that adapts
it to look like an array and cast its operands to the given type.  This
is designed to be a replacement for `DITypedArray<>`, which is in the
`DIDescriptor` hierarchy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234183 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
include/llvm/IR/Metadata.h
lib/IR/Verifier.cpp