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 2020using namespace clang ;
2121using namespace CodeGen ;
2222
23+ namespace {
24+
2325// / Various utilities.
2426// / TODO partially duplicates functionality from SemaSYCL.cpp, can be shared.
2527class Util {
@@ -52,6 +54,8 @@ const char *WG_SCOPE_MD_ID = "work_group_scope";
5254const char *WI_SCOPE_MD_ID = " work_item_scope" ;
5355const char *PFWI_MD_ID = " parallel_for_work_item" ;
5456
57+ } // anonymous namespace
58+
5559bool CGSYCLRuntime::actOnFunctionStart (const FunctionDecl &FD,
5660 llvm::Function &F) {
5761 SYCLScopeAttr *Scope = FD.getAttr <SYCLScopeAttr>();
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ enum KernelInvocationKind {
5454const static std::string InitMethodName = " __init" ;
5555const static std::string FinalizeMethodName = " __finalize" ;
5656
57+ namespace {
58+
5759// / Various utilities.
5860class Util {
5961public:
@@ -91,6 +93,8 @@ class Util {
9193 ArrayRef<Util::DeclContextDesc> Scopes);
9294};
9395
96+ } // anonymous namespace
97+
9498// This information is from Section 4.13 of the SYCL spec
9599// https://www.khronos.org/registry/SYCL/specs/sycl-1.2.1.pdf
96100// This function returns false if the math lib function
You can’t perform that action at this time.
0 commit comments