Formalize MDNode's function-localness:
authorVictor Hernandez <vhernandez@apple.com>
Fri, 18 Dec 2009 20:09:14 +0000 (20:09 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Fri, 18 Dec 2009 20:09:14 +0000 (20:09 +0000)
commit5d3016215075c52766711e741ce5401ee891d4ac
treebde7ea2658c9ec0f555730d5fe4a65b9f2f04a81
parent1edcafe10f05ba17dd1fbf36713fb40f98eca03a
Formalize MDNode's function-localness:
- an MDNode is designated as function-local when created, and continues to be even if its operands are modified not to refer to function-local IR
- function-localness is designated via lowest bit in SubclassData
- getLocalFunction() descends MDNode tree to see if it is consistently function-local

Add verification of MDNodes to checks that MDNodes are consistently function-local.
Update AsmWriter to use isFunctionLocal().

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