From a84538806bedc0bde540ba609a23e0b2c8d4e11a Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 6 May 2016 09:40:08 +0000 Subject: [OPENMP 4.0] Codegen for 'declare simd' directive. OpenMP 4.0 adds support for elemental functions using declarative directive '#pragma omp declare simd'. Patch adds mangling for simd functions in accordance with https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268721 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGOpenMPRuntime.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/CodeGen/CGOpenMPRuntime.h') diff --git a/lib/CodeGen/CGOpenMPRuntime.h b/lib/CodeGen/CGOpenMPRuntime.h index 881bd6a9c3..e7c3fd7e87 100644 --- a/lib/CodeGen/CGOpenMPRuntime.h +++ b/lib/CodeGen/CGOpenMPRuntime.h @@ -1013,6 +1013,13 @@ public: const OMPExecutableDirective &D, const Expr *IfCond, const Expr *Device); + + /// Marks function \a Fn with properly mangled versions of vector functions. + /// \param FD Function marked as 'declare simd'. + /// \param Fn LLVM function that must be marked with 'declare simd' + /// attributes. + virtual void emitDeclareSimdFunction(const FunctionDecl *FD, + llvm::Function *Fn); }; } // namespace CodeGen -- cgit v1.2.1