File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 20
20
using namespace clang ;
21
21
using namespace CodeGen ;
22
22
23
+ namespace {
24
+
23
25
// / Various utilities.
24
26
// / TODO partially duplicates functionality from SemaSYCL.cpp, can be shared.
25
27
class Util {
@@ -52,6 +54,8 @@ const char *WG_SCOPE_MD_ID = "work_group_scope";
52
54
const char *WI_SCOPE_MD_ID = " work_item_scope" ;
53
55
const char *PFWI_MD_ID = " parallel_for_work_item" ;
54
56
57
+ } // anonymous namespace
58
+
55
59
bool CGSYCLRuntime::actOnFunctionStart (const FunctionDecl &FD,
56
60
llvm::Function &F) {
57
61
SYCLScopeAttr *Scope = FD.getAttr <SYCLScopeAttr>();
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ enum KernelInvocationKind {
54
54
const static std::string InitMethodName = " __init" ;
55
55
const static std::string FinalizeMethodName = " __finalize" ;
56
56
57
+ namespace {
58
+
57
59
// / Various utilities.
58
60
class Util {
59
61
public:
@@ -91,6 +93,8 @@ class Util {
91
93
ArrayRef<Util::DeclContextDesc> Scopes);
92
94
};
93
95
96
+ } // anonymous namespace
97
+
94
98
// This information is from Section 4.13 of the SYCL spec
95
99
// https://www.khronos.org/registry/SYCL/specs/sycl-1.2.1.pdf
96
100
// This function returns false if the math lib function
You can’t perform that action at this time.
0 commit comments