Skip to content

Commit 2efb76e

Browse files
committed
address PR feedback
1 parent ba43b58 commit 2efb76e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -773,16 +773,16 @@ void logSYCLLibraryInvocation(
773773
convertProcessingSettingsToString(Settings));
774774
}
775775

776-
/// Invokes SYCL Post Link library for SYCL offloading.
776+
/// Invokes SYCL processing library for SYCL offload finalization.
777777
///
778778
/// \param InputFiles the list of input LLVM IR files.
779779
/// \param Args Encompasses all arguments for linking and wrapping device code.
780-
/// It will be parsed to generate options required to be passed to SYCL Post
781-
/// Link library.
780+
/// It will be parsed to generate options required to be passed to SYCL
781+
/// library.
782782
/// \param Mode The splitting mode.
783-
/// \returns The vector of split modules.
783+
/// \returns The vector of processed modules.
784784
static Expected<std::vector<module_split::ProcessedModule>>
785-
runSYCLPostLinkLibrary(ArrayRef<StringRef> InputFiles, const ArgList &Args,
785+
runSYCLOffloadFinalize(ArrayRef<StringRef> InputFiles, const ArgList &Args,
786786
module_split::IRSplitMode Mode) {
787787
std::vector<module_split::ProcessedModule> OutputModules;
788788
llvm::module_split::ModuleProcessingSettings Settings;
@@ -808,7 +808,7 @@ runSYCLPostLinkLibrary(ArrayRef<StringRef> InputFiles, const ArgList &Args,
808808
return createStringError(inconvertibleErrorCode(), Err.getMessage());
809809

810810
auto ModulesOrErr =
811-
module_split::SYCLPostLinkProcess(std::move(M), Settings);
811+
module_split::SYCLOffloadFinalize(std::move(M), Settings);
812812
if (!ModulesOrErr)
813813
return ModulesOrErr.takeError();
814814

@@ -2403,8 +2403,8 @@ Expected<SmallVector<StringRef>> linkAndWrapDeviceFiles(
24032403
auto ProcessedModulesOrErr =
24042404
UseSYCLPostLinkTool
24052405
? sycl::runSYCLPostLinkTool(InputFilesSYCL, LinkerArgs)
2406-
: sycl::runSYCLSplitLibrary(InputFilesSYCL, LinkerArgs,
2407-
*SYCLModuleSplitMode);
2406+
: sycl::runSYCLOffloadFinalize(InputFilesSYCL, LinkerArgs,
2407+
*SYCLModuleSplitMode);
24082408
if (!ProcessedModulesOrErr)
24092409
return ProcessedModulesOrErr.takeError();
24102410

llvm/include/llvm/SYCLLowerIR/ModuleSplitter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ convertProcessingSettingsToString(const ModuleProcessingSettings &S);
321321
Expected<std::vector<ProcessedModule>>
322322
parseProcessedModulesFromFile(StringRef File);
323323

324-
/// Performs post-link processing of the given module \p M according to the
325-
/// given \p Settings.
324+
/// Performs the offload finale processing of the given module \p M according
325+
/// to the given \p Settings.
326326
Expected<std::vector<ProcessedModule>>
327-
SYCLPostLinkProcess(std::unique_ptr<Module> M,
327+
SYCLOffloadFinalize(std::unique_ptr<Module> M,
328328
ModuleProcessingSettings Settings);
329329

330330
bool isESIMDFunction(const Function &F);

llvm/lib/SYCLLowerIR/ModuleSplitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ convertProcessingSettingsToString(const ModuleProcessingSettings &S) {
13811381
}
13821382

13831383
Expected<std::vector<ProcessedModule>>
1384-
SYCLPostLinkProcess(std::unique_ptr<Module> M,
1384+
SYCLOffloadFinalize(std::unique_ptr<Module> M,
13851385
ModuleProcessingSettings Settings) {
13861386
ModuleDesc MD = std::move(M);
13871387
// FIXME: false arguments are temporary for now.

0 commit comments

Comments
 (0)