diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-03-06 17:48:48 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-03-06 17:48:48 +0000 |
commit | 985dac65791b9f6f631bdd51c18fe66592a67469 (patch) | |
tree | 9265b2aa99cf3753755535652b74ad4683c4bcaf /include/llvm/IR/LLVMContext.h | |
parent | 186d8a3d67ccd2b2401c5d7d4e2cc15c4d1fdeae (diff) | |
download | external_llvm-985dac65791b9f6f631bdd51c18fe66592a67469.zip external_llvm-985dac65791b9f6f631bdd51c18fe66592a67469.tar.gz external_llvm-985dac65791b9f6f631bdd51c18fe66592a67469.tar.bz2 |
Memory Dependence Analysis (not mem-dep test) take advantage of "invariant.load" metadata.
The "invariant.load" metadata indicates the memory unit being accessed is immutable.
A load annotated with this metadata can be moved across any store.
As I am not sure if it is legal to move such loads across barrier/fence, this
change dose not allow such transformation.
rdar://11311484
Thank Arnold for code review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/LLVMContext.h')
-rw-r--r-- | include/llvm/IR/LLVMContext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/IR/LLVMContext.h b/include/llvm/IR/LLVMContext.h index b3c558b..ae81e5b 100644 --- a/include/llvm/IR/LLVMContext.h +++ b/include/llvm/IR/LLVMContext.h @@ -46,7 +46,8 @@ public: MD_prof = 2, // "prof" MD_fpmath = 3, // "fpmath" MD_range = 4, // "range" - MD_tbaa_struct = 5 // "tbaa.struct" + MD_tbaa_struct = 5, // "tbaa.struct" + MD_invariant_load = 6 // "invariant.load" }; /// getMDKindID - Return a unique non-zero ID for the specified metadata kind. |