diff options
author | Mark Heffernan <meheff@google.com> | 2014-07-21 23:10:56 +0000 |
---|---|---|
committer | Mark Heffernan <meheff@google.com> | 2014-07-21 23:10:56 +0000 |
commit | 34735af3cb613d21757e5c6de1b8629327d0c3bf (patch) | |
tree | 79dead450a2311efd3ca7f7c9063d4bcc32b963f /clang/lib | |
parent | 24d8aacd94184b640ba6cf91216955b2661be109 (diff) | |
download | bcm5719-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.cpp | 2 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGLoopInfo.h | 2 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 |
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"; |