diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-15 16:28:31 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-15 16:28:31 +0000 |
| commit | a29eb97db38c5cc56c1f8d5bc168f1b51c4824fa (patch) | |
| tree | 67da161e5e7c43aa5edd0521ca3c67e13afcfab5 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 05461699ec4181ed767f312b61807eb883446be9 (diff) | |
| download | clang-a29eb97db38c5cc56c1f8d5bc168f1b51c4824fa.tar.gz | |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index a8dac422a6..f9155b2ba3 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/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)); |
