Skip to content

Commit ce60006

Browse files
committed
Clang format
1 parent c5f1d00 commit ce60006

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3921,7 +3921,8 @@ class OffloadingActionBuilder final {
39213921
// For SYCL device libraries, don't need to add them to
39223922
// FPGAObjectInputs as there is no FPGA dep files inside.
39233923
const auto *TC = ToolChains.front();
3924-
if (TC->getTriple().getSubArch() == llvm::Triple::SPIRSubArch_fpga &&
3924+
if (TC->getTriple().getSubArch() ==
3925+
llvm::Triple::SPIRSubArch_fpga &&
39253926
!IsSYCLDeviceLibObj(FileName, C.getDefaultToolChain()
39263927
.getTriple()
39273928
.isWindowsMSVCEnvironment()))
@@ -4635,9 +4636,10 @@ class OffloadingActionBuilder final {
46354636
C.hasOffloadToolChain<Action::OFK_SYCL>()
46364637
? C.getSingleOffloadToolChain<Action::OFK_SYCL>()
46374638
: C.getSingleOffloadToolChain<Action::OFK_Host>();
4638-
HasFPGATarget = TC->getTriple().getSubArch() == llvm::Triple::SPIRSubArch_fpga;
4639+
HasFPGATarget =
4640+
TC->getTriple().getSubArch() == llvm::Triple::SPIRSubArch_fpga;
46394641
if (HasFPGATarget && !(HostAction->getType() == types::TY_Object &&
4640-
isObjectFile(InputName))) {
4642+
isObjectFile(InputName))) {
46414643
// Type FPGA aoco is a special case for -foffload-static-lib.
46424644
if (HostAction->getType() == types::TY_FPGA_AOCO) {
46434645
if (!hasFPGABinary(C, InputName, types::TY_FPGA_AOCO))
@@ -4683,8 +4685,8 @@ class OffloadingActionBuilder final {
46834685
// FPGA device archive.
46844686
if ((OffloadKind == Action::OFK_None && CanUseBundler) ||
46854687
(HasFPGATarget && ((Args.hasArg(options::OPT_fsycl_link_EQ) &&
4686-
HostAction->getType() == types::TY_Object) ||
4687-
HostAction->getType() == types::TY_FPGA_AOCX)))
4688+
HostAction->getType() == types::TY_Object) ||
4689+
HostAction->getType() == types::TY_FPGA_AOCX)))
46884690
if (auto *UA = dyn_cast<OffloadUnbundlingJobAction>(HostAction))
46894691
HostAction = UA->getInputs().back();
46904692

@@ -6092,9 +6094,10 @@ InputInfo Driver::BuildJobsForActionNoCache(
60926094
// unbundling action does not change the type of the output which can
60936095
// cause a overwrite.
60946096
InputInfo CurI;
6095-
bool IsFPGAObjLink = (JA->getType() == types::TY_Object &&
6096-
EffectiveTriple.getSubArch() == llvm::Triple::SPIRSubArch_fpga &&
6097-
C.getInputArgs().hasArg(options::OPT_fsycl_link_EQ));
6097+
bool IsFPGAObjLink =
6098+
(JA->getType() == types::TY_Object &&
6099+
EffectiveTriple.getSubArch() == llvm::Triple::SPIRSubArch_fpga &&
6100+
C.getInputArgs().hasArg(options::OPT_fsycl_link_EQ));
60986101
if (C.getDriver().getOffloadStaticLibSeen() &&
60996102
JA->getType() == types::TY_Archive) {
61006103
// Host part of the unbundled static archive is not used.

0 commit comments

Comments
 (0)