summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-15 16:28:31 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-15 16:28:31 +0000
commitb952e639d9dc0cf9c7d46231d080e436fae5f9e4 (patch)
tree2f949b961d84dc59a82293f25498e01457978d50 /clang/lib/CodeGen/CodeGenFunction.cpp
parentcb12249238f063038b58cfb3d724a4ed010e83ef (diff)
downloadbcm5719-llvm-b952e639d9dc0cf9c7d46231d080e436fae5f9e4.tar.gz
bcm5719-llvm-b952e639d9dc0cf9c7d46231d080e436fae5f9e4.zip
[OPENMP] Codegen `declare simd` for function declarations.
Previously the attributes were emitted only for function definitions. Patch adds emission of the attributes for function declarations. llvm-svn: 320826
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index a8dac422a6e..f9155b2ba32 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -899,10 +899,6 @@ void CodeGenFunction::StartFunction(GlobalDecl GD,
}
}
- if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
- if (CGM.getLangOpts().OpenMP && FD->hasAttr<OMPDeclareSimdDeclAttr>())
- CGM.getOpenMPRuntime().emitDeclareSimdFunction(FD, Fn);
-
// Add no-jump-tables value.
Fn->addFnAttr("no-jump-tables",
llvm::toStringRef(CGM.getCodeGenOpts().NoUseJumpTables));
OpenPOWER on IntegriCloud