]> granicus.if.org Git - llvm/commit
Introduce enum values for previously defined metadata types. (NFC)
authorPhilip Reames <listmail@philipreames.com>
Tue, 21 Oct 2014 00:13:20 +0000 (00:13 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 21 Oct 2014 00:13:20 +0000 (00:13 +0000)
commit9be94733945e1b5da59bea1d84fc40efbfafc96e
tree69a9f20cb272fb9160c57d8b927dca81cc3b9bf3
parentc0c4f1b78e6ab610c16fe728fa7a068bb39d9778
Introduce enum values for previously defined metadata types. (NFC)

Our metadata scheme lazily assigns IDs to string metadata, but we have a mechanism to preassign them as well.  Using a preassigned ID is helpful since we get compile time type checking, and avoid some (minimal) string construction and comparison.  This change adds enum value for three existing metadata types:
+    MD_nontemporal = 9, // "nontemporal"
+    MD_mem_parallel_loop_access = 10, // "llvm.mem.parallel_loop_access"
+    MD_nonnull = 11 // "nonnull"

I went through an updated various uses as well.  I made no attempt to get all uses; I focused on the ones which were easily grepable and easily to translate.  For example, there were several items in LoopInfo.cpp I chose not to update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220248 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/LLVMContext.h
lib/Analysis/LoopInfo.cpp
lib/Analysis/ValueTracking.cpp
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/IR/LLVMContext.cpp
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
lib/Transforms/Scalar/LICM.cpp