Skip to content

Commit c9cdf25

Browse files
authored
Revert "[SYCL] Allow _Bitint of size greater than 128 bits when -fintelfpga is used (#6152)" (#6232)
This reverts commit 51f2ea3.
1 parent 51f2ea3 commit c9cdf25

10 files changed

+3
-128
lines changed

clang/include/clang/Basic/LangOptions.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ LANGOPT(GPUExcludeWrongSideOverloads, 1, 0, "always exclude wrong side overloads
269269

270270
LANGOPT(SYCLIsDevice , 1, 0, "Generate code for SYCL device")
271271
LANGOPT(SYCLIsHost , 1, 0, "SYCL host compilation")
272-
LANGOPT(IntelFPGA , 1, 0, "Perform ahead-of-time compilation for FPGA")
273272
LANGOPT(SYCLAllowFuncPtr , 1, 0, "Allow function pointers in SYCL device code")
274273
LANGOPT(SYCLStdLayoutKernelParams, 1, 0, "Enable standard layout requirement for SYCL kernel parameters")
275274
LANGOPT(SYCLUnnamedLambda , 1, 0, "Allow unnamed lambda SYCL kernels")

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,8 +2754,7 @@ defm strict_vtable_pointers : BoolFOption<"strict-vtable-pointers",
27542754
NegFlag<SetFalse>>;
27552755
def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group<f_Group>;
27562756
def fintelfpga : Flag<["-"], "fintelfpga">, Group<f_Group>,
2757-
Flags<[CC1Option, CoreOption]>, MarshallingInfoFlag<LangOpts<"IntelFPGA">>,
2758-
HelpText<"Perform ahead-of-time compilation for FPGA">;
2757+
Flags<[CC1Option, CoreOption]>, HelpText<"Perform ahead of time compilation for FPGA">;
27592758
def fsycl_device_only : Flag<["-"], "fsycl-device-only">, Flags<[CoreOption]>,
27602759
HelpText<"Compile SYCL kernels for device">;
27612760
def fsycl_targets_EQ : CommaJoined<["-"], "fsycl-targets=">, Flags<[NoXarchOption, CC1Option, CoreOption]>,

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4965,11 +4965,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
49654965
HasFPGA = true;
49664966
break;
49674967
}
4968-
if (HasFPGA) {
4968+
if (HasFPGA)
49694969
CmdArgs.push_back("-fsycl-disable-range-rounding");
4970-
// Pass -fintelfpga to both the host and device SYCL compilations if set.
4971-
CmdArgs.push_back("-fintelfpga");
4972-
}
49734970

49744971
// Add any options that are needed specific to SYCL offload while
49754972
// performing the host side compilation.

clang/lib/Sema/SemaType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ QualType Sema::BuildBitIntType(bool IsUnsigned, Expr *BitWidth,
22922292
}
22932293

22942294
const TargetInfo &TI = getASTContext().getTargetInfo();
2295-
if (NumBits > TI.getMaxBitIntWidth() && !Context.getLangOpts().IntelFPGA) {
2295+
if (NumBits > TI.getMaxBitIntWidth()) {
22962296
Diag(Loc, diag::err_bit_int_max_size)
22972297
<< IsUnsigned << static_cast<uint64_t>(TI.getMaxBitIntWidth());
22982298
return QualType();

clang/test/CodeGenSYCL/no-opaque-ptrs-sycl-host-intelfpga-bitint.cpp

Lines changed: 0 additions & 23 deletions
This file was deleted.

clang/test/CodeGenSYCL/no-opaque-ptrs-sycl-intelfpga-bitint.cpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

clang/test/CodeGenSYCL/sycl-host-intelfpga-bitint.cpp

Lines changed: 0 additions & 23 deletions
This file was deleted.

clang/test/CodeGenSYCL/sycl-intelfpga-bitint.cpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

clang/test/Driver/sycl-offload-intelfpga.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020
// RUN: | FileCheck -check-prefix=CHK-TOOLS-INTELFPGA-G0 %s
2121
// CHK-TOOLS-INTELFPGA-G0-NOT: clang{{.*}} "-debug-info-kind=constructor"
2222

23-
/// -fintelfpga passes it to host and device cc1 compilations
24-
// RUN: %clangxx -### -fsycl -fintelfpga %s 2>&1 \
25-
// RUN: | FileCheck -check-prefix=CHK-HOST-DEVICE %s
26-
// CHK-HOST-DEVICE: clang{{.*}} "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-fintelfpga"
27-
// CHK-HOST-DEVICE: clang{{.*}} "-cc1"{{.*}} "-fintelfpga"{{.*}} "-fsycl-is-host"
28-
2923
/// FPGA target implies -fsycl-disable-range-rounding
3024
// RUN: %clangxx -### -target x86_64-unknown-linux-gnu -fsycl -fintelfpga %s 2>&1 \
3125
// RUN: | FileCheck -check-prefix=CHK-RANGE-ROUNDING %s

clang/test/SemaSYCL/sycl-intelfpga.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)