clang 20.0.0git
SYCLKernelInfo.h
Go to the documentation of this file.
1//===--- SYCLKernelInfo.h --- Information about SYCL kernels --------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8/// \file
9/// This file declares types used to describe SYCL kernels.
10///
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_AST_SYCLKERNELINFO_H
14#define LLVM_CLANG_AST_SYCLKERNELINFO_H
15
17#include "clang/AST/Decl.h"
18#include "clang/AST/Type.h"
19
20namespace clang {
21
23public:
25 const FunctionDecl *KernelEntryPointDecl)
26 : KernelNameType(KernelNameType),
27 KernelEntryPointDecl(KernelEntryPointDecl) {}
28
29 CanQualType getKernelNameType() const { return KernelNameType; }
30
32 return KernelEntryPointDecl;
33 }
34
35private:
36 CanQualType KernelNameType;
37 const FunctionDecl *KernelEntryPointDecl;
38};
39
40} // namespace clang
41
42#endif // LLVM_CLANG_AST_SYCLKERNELINFO_H
C Language Family Type Representation.
Represents a function declaration or definition.
Definition: Decl.h:1935
CanQualType getKernelNameType() const
const FunctionDecl * getKernelEntryPointDecl() const
SYCLKernelInfo(CanQualType KernelNameType, const FunctionDecl *KernelEntryPointDecl)
The JSON file list parser is used to communicate input to InstallAPI.