@@ -3340,9 +3340,9 @@ class OffloadingActionBuilder final {
33403340 if (I->getType () == types::TY_Object) {
33413341 // FIXME - Checker does not work well inline with the tool
33423342 // chain, but it needs to be here for real time checking
3343- // auto *DeviceCheckAction =
3344- // C.MakeAction<SPIRCheckJobAction>(I, types::TY_Object);
3345- // DeviceObjects.push_back(DeviceCheckAction);
3343+ // auto *DeviceCheckAction =
3344+ // C.MakeAction<SPIRCheckJobAction>(I, types::TY_Object);
3345+ // DeviceObjects.push_back(DeviceCheckAction);
33463346 DeviceObjects.push_back (I);
33473347 } else {
33483348 // Do not perform a device link and only pass the aocr
@@ -3351,7 +3351,7 @@ class OffloadingActionBuilder final {
33513351 Action * DeviceWrappingAction;
33523352 if (I->getType () == types::TY_FPGA_AOCR) {
33533353 auto *DeviceBECompileAction =
3354- C.MakeAction <BackendCompileJobAction>(I, FPGAOutType);
3354+ C.MakeAction <BackendCompileJobAction>(I, FPGAOutType);
33553355 DeviceWrappingAction =
33563356 C.MakeAction <OffloadWrappingJobAction>(
33573357 DeviceBECompileAction, types::TY_Object);
@@ -3366,7 +3366,7 @@ class OffloadingActionBuilder final {
33663366 // link and wrap the device binary, but do not perform the
33673367 // backend compile.
33683368 auto *DeviceLinkAction =
3369- C.MakeAction <LinkJobAction>(DeviceObjects, types::TY_SPIRV);
3369+ C.MakeAction <LinkJobAction>(DeviceObjects, types::TY_SPIRV);
33703370 auto *DeviceWrappingAction =
33713371 C.MakeAction <OffloadWrappingJobAction>(DeviceLinkAction,
33723372 types::TY_Object);
@@ -3446,8 +3446,9 @@ class OffloadingActionBuilder final {
34463446 WrapDeviceOnlyBinary = Args.hasArg (options::OPT_fsycl_link_EQ);
34473447 // Device only compilation for -fsycl-link (no FPGA) and
34483448 // -fsycl-link-targets
3449- CompileDeviceOnly = (SYCLLinkTargets || (WrapDeviceOnlyBinary &&
3450- !Args.hasArg (options::OPT_fintelfpga)));
3449+ CompileDeviceOnly =
3450+ (SYCLLinkTargets ||
3451+ (WrapDeviceOnlyBinary && !Args.hasArg (options::OPT_fintelfpga)));
34513452 Arg *SYCLAddTargets = Args.getLastArg (
34523453 options::OPT_fsycl_add_targets_EQ);
34533454 if (SYCLAddTargets) {
@@ -3657,8 +3658,8 @@ class OffloadingActionBuilder final {
36573658
36583659 // Checking uses -check-section option with the input file, no output
36593660 // file and the target triple being looked for.
3660- const char *Targets = C. getArgs (). MakeArgString ( Twine ( " -targets=sycl- " ) +
3661- TT.str ());
3661+ const char *Targets =
3662+ C. getArgs (). MakeArgString ( Twine ( " -targets=sycl- " ) + TT.str ());
36623663 const char *Inputs = C.getArgs ().MakeArgString (Twine (" -inputs=" ) +
36633664 Object);
36643665 // Always use -type=ao for aocx/aocr bundle checking. The 'bundles' are
@@ -3733,16 +3734,16 @@ class OffloadingActionBuilder final {
37333734 types::TY_Object &&
37343735 Args.hasArg (options::OPT_foffload_static_lib_EQ))) {
37353736 ActionList HostActionList;
3736- Action * A (HostAction);
3737+ Action *A (HostAction);
37373738 // Only check for FPGA device information when using fpga SubArch.
37383739 if (Args.hasArg (options::OPT_fintelfpga) &&
37393740 HostAction->getType () != types::TY_FPGA_AOCR &&
37403741 HostAction->getType () != types::TY_FPGA_AOCX &&
37413742 !(HostAction->getType () == types::TY_Object &&
37423743 llvm::sys::path::has_extension (InputName) &&
37433744 types::lookupTypeForExtension (
3744- llvm::sys::path::extension (InputName).drop_front ()) ==
3745- types::TY_Object)) {
3745+ llvm::sys::path::extension (InputName).drop_front ()) ==
3746+ types::TY_Object)) {
37463747 if (HasFPGADeviceBinary (C, InputArg->getAsString (Args), true ))
37473748 A = C.MakeAction <InputAction>(*InputArg, types::TY_FPGA_AOCX);
37483749 else if (HasFPGADeviceBinary (C, InputArg->getAsString (Args)))
@@ -4219,8 +4220,8 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
42194220 Arg *InputArg = MakeInputArg (Args, *Opts, FileName);
42204221 OffloadBuilder.addHostDependenceToDeviceActions (UnbundlerInput,
42214222 InputArg, Args);
4222- OffloadBuilder.addDeviceDependencesToHostAction (UnbundlerInput,
4223- InputArg, phases::Link, FinalPhase, PL);
4223+ OffloadBuilder.addDeviceDependencesToHostAction (
4224+ UnbundlerInput, InputArg, phases::Link, FinalPhase, PL);
42244225 }
42254226 }
42264227 }
@@ -5021,7 +5022,7 @@ InputInfo Driver::BuildJobsForActionNoCache(
50215022 continue ;
50225023 }
50235024 } else if (EffectiveTriple.getSubArch () !=
5024- llvm::Triple::SPIRSubArch_fpga) {
5025+ llvm::Triple::SPIRSubArch_fpga) {
50255026 if (UI.DependentOffloadKind == Action::OFK_SYCL) {
50265027 // Do not add the current info for device with FPGA device. The
50275028 // device side isn't used
@@ -5030,8 +5031,8 @@ InputInfo Driver::BuildJobsForActionNoCache(
50305031 TI = types::TY_Tempfilelist;
50315032 Ext = " txt" ;
50325033 }
5033- std::string TmpFileName =
5034- C. getDriver (). GetTemporaryPath ( llvm::sys::path::stem (BaseInput), Ext);
5034+ std::string TmpFileName = C. getDriver (). GetTemporaryPath (
5035+ llvm::sys::path::stem (BaseInput), Ext);
50355036 const char *TmpFile =
50365037 C.addTempFile (C.getArgs ().MakeArgString (TmpFileName));
50375038 CurI = InputInfo (TI, TmpFile, TmpFile);
0 commit comments