IR: MDNode => Value: Instruction::getMetadata()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 1 Nov 2014 00:10:31 +0000 (00:10 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 1 Nov 2014 00:10:31 +0000 (00:10 +0000)
commit3872d0084c4f479020ce01b4db5d1bd414c57fb8
treefd1a9e83666fa84a3916b46a94cca32978b34794
parent7c4fc4e5ae4c8145974397da295587e77c770f62
IR: MDNode => Value: Instruction::getMetadata()

Change `Instruction::getMetadata()` to return `Value` as part of
PR21433.

Update most callers to use `Instruction::getMDNode()`, which wraps the
result in a `cast_or_null<MDNode>`.

llvm-svn: 221024
22 files changed:
llvm/include/llvm/IR/Instruction.h
llvm/lib/Analysis/BranchProbabilityInfo.cpp
llvm/lib/Analysis/LoopInfo.cpp
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Analysis/ScopedNoAliasAA.cpp
llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/IR/AutoUpgrade.cpp
llvm/lib/IR/DiagnosticInfo.cpp
llvm/lib/IR/Instructions.cpp
llvm/lib/IR/Metadata.cpp
llvm/lib/IR/Verifier.cpp
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp