1
- // ===--- SYCL.h - SYCL ToolChain Implementations ----------------- *- C++ -*-===//
1
+ // ===--- SYCL.h - SYCL ToolChain Implementations ----------------*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
@@ -158,8 +158,8 @@ SmallVector<std::string, 8> getDeviceLibraries(const Compilation &C,
158
158
bool IsSpirvAOT);
159
159
160
160
// Populates the SYCL device traits macros.
161
- void populateSYCLDeviceTraitsMacrosArgs (Compilation &C,
162
- const llvm::opt::ArgList &Args,
161
+ void populateSYCLDeviceTraitsMacrosArgs (
162
+ Compilation &C, const llvm::opt::ArgList &Args,
163
163
const SmallVectorImpl<std::pair<const ToolChain *, StringRef>> &Targets);
164
164
165
165
bool shouldDoPerObjectFileLinking (const Compilation &C);
@@ -180,11 +180,11 @@ class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
180
180
private:
181
181
// / \return llvm-link output file name.
182
182
const char *constructLLVMLinkCommand (Compilation &C, const JobAction &JA,
183
- const InputInfo &Output,
184
- const llvm::opt::ArgList &Args,
185
- llvm::StringRef SubArchName,
186
- llvm::StringRef OutputFilePrefix,
187
- const InputInfoList &InputFiles) const ;
183
+ const InputInfo &Output,
184
+ const llvm::opt::ArgList &Args,
185
+ llvm::StringRef SubArchName,
186
+ llvm::StringRef OutputFilePrefix,
187
+ const InputInfoList &InputFiles) const ;
188
188
};
189
189
190
190
// / Directly call FPGA Compiler and Linker
@@ -241,7 +241,7 @@ template <auto GPUArh> std::optional<StringRef> isGPUTarget(StringRef Target) {
241
241
if (Target.starts_with (GPUArh)) {
242
242
return resolveGenDevice (Target);
243
243
}
244
- return std::nullopt;
244
+ return std::nullopt;
245
245
}
246
246
247
247
} // end namespace gen
@@ -280,9 +280,10 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
280
280
llvm::opt::DerivedArgList *
281
281
TranslateArgs (const llvm::opt::DerivedArgList &Args, StringRef BoundArch,
282
282
Action::OffloadKind DeviceOffloadKind) const override ;
283
- void addClangTargetOptions (const llvm::opt::ArgList &DriverArgs,
284
- llvm::opt::ArgStringList &CC1Args,
285
- Action::OffloadKind DeviceOffloadKind) const override ;
283
+ void
284
+ addClangTargetOptions (const llvm::opt::ArgList &DriverArgs,
285
+ llvm::opt::ArgStringList &CC1Args,
286
+ Action::OffloadKind DeviceOffloadKind) const override ;
286
287
void AddImpliedTargetArgs (const llvm::Triple &Triple,
287
288
const llvm::opt::ArgList &Args,
288
289
llvm::opt::ArgStringList &CmdArgs,
@@ -324,7 +325,8 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
324
325
CXXStdlibType GetCXXStdlibType (const llvm::opt::ArgList &Args) const override ;
325
326
void AddSYCLIncludeArgs (const llvm::opt::ArgList &DriverArgs,
326
327
llvm::opt::ArgStringList &CC1Args) const override ;
327
- void AddClangSystemIncludeArgs (const llvm::opt::ArgList &DriverArgs,
328
+ void
329
+ AddClangSystemIncludeArgs (const llvm::opt::ArgList &DriverArgs,
328
330
llvm::opt::ArgStringList &CC1Args) const override ;
329
331
void AddClangCXXStdlibIncludeArgs (
330
332
const llvm::opt::ArgList &Args,
@@ -357,7 +359,8 @@ inline bool isSYCLNativeCPU(const llvm::opt::ArgList &Args) {
357
359
return false ;
358
360
}
359
361
360
- inline bool isSYCLNativeCPU (const llvm::Triple &HostT, const llvm::Triple &DevT) {
362
+ inline bool isSYCLNativeCPU (const llvm::Triple &HostT,
363
+ const llvm::Triple &DevT) {
361
364
return HostT == DevT;
362
365
}
363
366
0 commit comments