summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorMark Heffernan <meheff@google.com>2014-07-21 23:10:56 +0000
committerMark Heffernan <meheff@google.com>2014-07-21 23:10:56 +0000
commit34735af3cb613d21757e5c6de1b8629327d0c3bf (patch)
tree79dead450a2311efd3ca7f7c9063d4bcc32b963f /clang/lib
parent24d8aacd94184b640ba6cf91216955b2661be109 (diff)
downloadbcm5719-llvm-34735af3cb613d21757e5c6de1b8629327d0c3bf.tar.gz
bcm5719-llvm-34735af3cb613d21757e5c6de1b8629327d0c3bf.zip
Rename metadata llvm.loop.vectorize.unroll to llvm.loop.vectorize.interleave.
llvm-svn: 213587
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGLoopInfo.cpp2
-rw-r--r--clang/lib/CodeGen/CGLoopInfo.h2
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGLoopInfo.cpp b/clang/lib/CodeGen/CGLoopInfo.cpp
index 1bc6d20158f..a273f1d4dda 100644
--- a/clang/lib/CodeGen/CGLoopInfo.cpp
+++ b/clang/lib/CodeGen/CGLoopInfo.cpp
@@ -39,7 +39,7 @@ static MDNode *createMetadata(LLVMContext &Ctx, const LoopAttributes &Attrs) {
// Setting vectorizer.unroll
if (Attrs.VectorizerUnroll > 0) {
- Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.unroll"),
+ Value *Vals[] = { MDString::get(Ctx, "llvm.loop.interleave.count"),
ConstantInt::get(Type::getInt32Ty(Ctx),
Attrs.VectorizerUnroll) };
Args.push_back(MDNode::get(Ctx, Vals));
diff --git a/clang/lib/CodeGen/CGLoopInfo.h b/clang/lib/CodeGen/CGLoopInfo.h
index 24613683363..2f6f172e047 100644
--- a/clang/lib/CodeGen/CGLoopInfo.h
+++ b/clang/lib/CodeGen/CGLoopInfo.h
@@ -46,7 +46,7 @@ struct LoopAttributes {
/// \brief llvm.loop.vectorize.width
unsigned VectorizerWidth;
- /// \brief llvm.loop.vectorize.unroll
+ /// \brief llvm.loop.interleave.count
unsigned VectorizerUnroll;
};
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index f36111607d8..c2b64a7662b 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -592,7 +592,7 @@ void CodeGenFunction::EmitCondBrHints(llvm::LLVMContext &Context,
break;
case LoopHintAttr::Interleave:
case LoopHintAttr::InterleaveCount:
- MetadataName = "llvm.loop.vectorize.unroll";
+ MetadataName = "llvm.loop.interleave.count";
break;
case LoopHintAttr::Unroll:
MetadataName = "llvm.loop.unroll.enable";
OpenPOWER on IntegriCloud