@@ -4684,14 +4684,14 @@ void SYCLIntegrationHeader::emit(raw_ostream &O) {
4684
4684
// whose sole purpose is to run its constructor before the application's
4685
4685
// main() function.
4686
4686
4687
- if (S.getSyclIntegrationFooter ().metSYCLDeviceGlobals ()) {
4687
+ if (S.getSyclIntegrationFooter ().isDeviceGlobalsEmitted ()) {
4688
4688
O << " namespace {\n " ;
4689
4689
4690
4690
O << " class __sycl_device_global_registration {\n " ;
4691
4691
O << " public:\n " ;
4692
4692
O << " __sycl_device_global_registration() noexcept;\n " ;
4693
4693
O << " };\n " ;
4694
- O << " __sycl_device_global_registration __sycl_device_global_registerer ;\n " ;
4694
+ O << " __sycl_device_global_registration __sycl_device_global_registrar ;\n " ;
4695
4695
4696
4696
O << " } // namespace\n " ;
4697
4697
@@ -4971,7 +4971,7 @@ static void PrintNSClosingBraces(raw_ostream &OS, const DeclContext *DC) {
4971
4971
[](raw_ostream &OS, const NamespaceDecl *NS) {}, OS, DC);
4972
4972
}
4973
4973
4974
- static std::string EmitSpecIdShim (raw_ostream &OS, unsigned &ShimCounter,
4974
+ static std::string EmitShim (raw_ostream &OS, unsigned &ShimCounter,
4975
4975
const std::string &LastShim,
4976
4976
const NamespaceDecl *AnonNS) {
4977
4977
std::string NewShimName =
@@ -4991,7 +4991,7 @@ static std::string EmitSpecIdShim(raw_ostream &OS, unsigned &ShimCounter,
4991
4991
}
4992
4992
4993
4993
// Emit the list of shims required for a DeclContext, calls itself recursively.
4994
- static void EmitSpecIdShims (raw_ostream &OS, unsigned &ShimCounter,
4994
+ static void EmitShims (raw_ostream &OS, unsigned &ShimCounter,
4995
4995
const DeclContext *DC,
4996
4996
std::string &NameForLastShim) {
4997
4997
if (DC->isTranslationUnit ()) {
@@ -5007,7 +5007,7 @@ static void EmitSpecIdShims(raw_ostream &OS, unsigned &ShimCounter,
5007
5007
} else if (const auto *ND = dyn_cast<NamespaceDecl>(CurDecl)) {
5008
5008
if (ND->isAnonymousNamespace ()) {
5009
5009
// Print current shim, reset 'name for last shim'.
5010
- NameForLastShim = EmitSpecIdShim (OS, ShimCounter, NameForLastShim, ND);
5010
+ NameForLastShim = EmitShim (OS, ShimCounter, NameForLastShim, ND);
5011
5011
} else {
5012
5012
NameForLastShim = ND->getNameAsString () + " ::" + NameForLastShim;
5013
5013
}
@@ -5021,13 +5021,13 @@ static void EmitSpecIdShims(raw_ostream &OS, unsigned &ShimCounter,
5021
5021
" Unhandled decl type" );
5022
5022
}
5023
5023
5024
- EmitSpecIdShims (OS, ShimCounter, CurDecl->getDeclContext (), NameForLastShim);
5024
+ EmitShims (OS, ShimCounter, CurDecl->getDeclContext (), NameForLastShim);
5025
5025
}
5026
5026
5027
5027
// Emit the list of shims required for a variable declaration.
5028
5028
// Returns a string containing the FQN of the 'top most' shim, including its
5029
5029
// function call parameters.
5030
- static std::string EmitSpecIdShims (raw_ostream &OS, unsigned &ShimCounter,
5030
+ static std::string EmitShims (raw_ostream &OS, unsigned &ShimCounter,
5031
5031
PrintingPolicy &Policy, const VarDecl *VD) {
5032
5032
if (!VD->isInAnonymousNamespace ())
5033
5033
return " " ;
@@ -5036,7 +5036,7 @@ static std::string EmitSpecIdShims(raw_ostream &OS, unsigned &ShimCounter,
5036
5036
VD->getNameForDiagnostic (stream, Policy, false );
5037
5037
stream.flush ();
5038
5038
5039
- EmitSpecIdShims (OS, ShimCounter, VD->getDeclContext (), RelativeName);
5039
+ EmitShims (OS, ShimCounter, VD->getDeclContext (), RelativeName);
5040
5040
return RelativeName;
5041
5041
}
5042
5042
@@ -5074,7 +5074,7 @@ bool SYCLIntegrationFooter::emit(raw_ostream &OS) {
5074
5074
OS << " #include <CL/sycl/detail/defines_elementary.hpp>\n " ;
5075
5075
5076
5076
Visited.insert (VD);
5077
- std::string TopShim = EmitSpecIdShims (OS, ShimCounter, Policy, VD);
5077
+ std::string TopShim = EmitShims (OS, ShimCounter, Policy, VD);
5078
5078
if (Util::isSyclDeviceGlobalType (VD->getType ())) {
5079
5079
DeviceGlobalsEmitted = true ;
5080
5080
DeviceGlobOS << " device_global_map::add(" ;
0 commit comments