Skip to content

Commit

Permalink
[SYCL] Use mangled identifiers for SYCL kernel names
Browse files Browse the repository at this point in the history
Mangling of kernel names removes characters like '<', ',', '>'.

Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
  • Loading branch information
vladimirlaz committed Jan 22, 2019
1 parent ed3568d commit 8963347
Show file tree
Hide file tree
Showing 22 changed files with 14,610 additions and 37 deletions.
47 changes: 47 additions & 0 deletions clang/include/clang/CodeGen/OclCxxRewrite/BifNameReflower.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//===- BifNameReflower.h - Built-in name reflower pass (OCLC++) -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//
//
// Copyright (c) 2015 The Khronos Group Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and/or associated documentation files (the
// "Materials"), to deal in the Materials without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Materials, and to
// permit persons to whom the Materials are furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Materials.
//
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
//
//===----------------------------------------------------------------------===//


#ifndef CLANG_LIB_CODEGEN_OCLCXXREWRITE_BIFNAMEREFLOWER_H
#define CLANG_LIB_CODEGEN_OCLCXXREWRITE_BIFNAMEREFLOWER_H

namespace llvm {

class ModulePass;
class PassRegistry;

void initializeOclCxxBifNameReflowerPass(PassRegistry &);

ModulePass *createOclCxxBifNameReflowerPass();
}

#endif // CLANG_LIB_CODEGEN_OCLCXXREWRITE_BIFNAMEREFLOWER_H
Loading

0 comments on commit 8963347

Please sign in to comment.