Skip to content

Commit fa665c4

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web' (17 commits)
2 parents 8efd590 + 08a74f9 commit fa665c4

File tree

114 files changed

+5205
-909
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+5205
-909
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,4 @@ llvm/test/Instrumentation/MemorySanitizer/ @intel/dpcpp-sanitizers-review
208208
llvm/test/Instrumentation/ThreadSanitizer/ @intel/dpcpp-sanitizers-review
209209
sycl/test-e2e/AddressSanitizer/ @intel/dpcpp-sanitizers-review
210210
sycl/test-e2e/MemorySanitizer/ @intel/dpcpp-sanitizers-review
211+
sycl/test-e2e/ThreadSanitizer/ @intel/dpcpp-sanitizers-review

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
fetch-depth: 1
6666
- name: Get subprojects that have doc changes
6767
id: docs-changed-subprojects
68-
uses: tj-actions/changed-files@v46
68+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
6969
with:
7070
files_yaml: |
7171
llvm:

.github/workflows/pr-code-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Get changed files
3636
id: changed-files
37-
uses: tj-actions/changed-files@v46
37+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
3838
with:
3939
separator: ","
4040
skip_initial_fetch: true

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ jobs:
164164
uses: ./devops/actions/run-tests/windows/cts
165165
with:
166166
ref: ${{ inputs.tests_ref || 'main' }}
167+
cts_exclude_ref: ${{ inputs.repo_ref }}
167168
extra_cmake_args: ${{ inputs.extra_cmake_args }}
168169
cts_testing_mode: ${{ inputs.cts_testing_mode }}
169170
sycl_cts_artifact: ${{ inputs.sycl_cts_artifact }}

clang/include/clang/Basic/CodeGenOptions.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ CODEGENOPT(OpenCLCorrectlyRoundedDivSqrt, 1, 0) ///< -cl-fp32-correctly-rounded-
197197
CODEGENOPT(HIPCorrectlyRoundedDivSqrt, 1, 1) ///< -fno-hip-fp32-correctly-rounded-divide-sqrt
198198
CODEGENOPT(DisableBlockSignatureString, 1, 0) ///< Set when -fdisable-block-signature-string is enabled.
199199
CODEGENOPT(HIPSaveKernelArgName, 1, 0) ///< Set when -fhip-kernel-arg-name is enabled.
200-
CODEGENOPT(SYCLFp32PrecSqrt, 1, 0) ///< -fsycl-fp32-prec-sqrt
201200
CODEGENOPT(UniqueInternalLinkageNames, 1, 0) ///< Internal Linkage symbols get unique names.
202201
CODEGENOPT(SplitMachineFunctions, 1, 0) ///< Split machine functions using profile information.
203202
CODEGENOPT(PPCUseFullRegisterNames, 1, 0) ///< Print full register names in assembly

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def warn_drv_object_size_disabled_O0 : Warning<
573573
def warn_drv_deprecated_option : Warning<
574574
"option '%0' is deprecated, use '%1' directly instead">, InGroup<Deprecated>;
575575
def warn_drv_deprecated_option_release : Warning<
576-
"option '%0' is deprecated and will be removed in a future release">,
576+
"option '%0' is deprecated and will be removed in a future release%select{|, use '%2' instead}1">,
577577
InGroup<Deprecated>;
578578
def warn_drv_deprecated_argument_option_release : Warning<
579579
"argument '%0' for option '%1' is deprecated and will be removed in a "

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7006,9 +7006,9 @@ def fsycl_device_lib_jit_link : Flag<["-"], "fsycl-device-lib-jit-link">,
70067006
def fno_sycl_device_lib_jit_link : Flag<["-"], "fno-sycl-device-lib-jit-link">,
70077007
HelpText<"Disables sycl device library jit link (experimental)">;
70087008
def fsycl_fp32_prec_sqrt : Flag<["-"], "fsycl-fp32-prec-sqrt">,
7009+
Alias<foffload_fp32_prec_sqrt>, Flags<[Deprecated]>,
70097010
Visibility<[ClangOption, CC1Option]>, HelpText<"SYCL only. Specify that "
7010-
"single precision floating-point sqrt is correctly rounded.">,
7011-
MarshallingInfoFlag<CodeGenOpts<"SYCLFp32PrecSqrt">>;
7011+
"single precision floating-point sqrt is correctly rounded. (deprecated)">;
70127012
def fsycl_default_sub_group_size
70137013
: Separate<["-"], "fsycl-default-sub-group-size">,
70147014
HelpText<"Set the default sub group size for SYCL kernels">,

clang/lib/Driver/Driver.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,16 @@ InputArgList Driver::ParseArgStrings(ArrayRef<const char *> ArgStrings,
356356
while (Used->getAlias())
357357
Used = Used->getAlias();
358358
if (Used->getOption().hasFlag(options::Deprecated)) {
359-
Diag(diag::warn_drv_deprecated_option_release) << Used->getAsString(Args);
359+
// Some deprecated options have a replacement option. In these cases,
360+
// add the replacement option string to the diagnostic.
361+
SmallString<128> AliasOpt;
362+
if (Used != A) {
363+
AliasOpt = A->getSpelling();
364+
if (A->getNumValues())
365+
AliasOpt += A->getValue();
366+
}
367+
Diag(diag::warn_drv_deprecated_option_release)
368+
<< Used->getAsString(Args) << !AliasOpt.empty() << AliasOpt;
360369
ContainsError |= Diags.getDiagnosticLevel(
361370
diag::warn_drv_deprecated_option_release,
362371
SourceLocation()) > DiagnosticsEngine::Warning;

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,9 @@ void SanitizerArgs::addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
12831283

12841284
CmdArgs.push_back("-mllvm");
12851285
CmdArgs.push_back("-msan-eager-checks=1");
1286+
1287+
CmdArgs.push_back("-mllvm");
1288+
CmdArgs.push_back("-msan-poison-stack-with-call=1");
12861289
} else if (Sanitizers.has(SanitizerKind::Thread)) {
12871290
CmdArgs.push_back("-fsanitize=thread");
12881291
// The tsan function entry/exit builtins are used to record stack

clang/lib/Driver/ToolChains/AMDGPU.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,11 +1071,10 @@ ROCMToolChain::getCommonDeviceLibNames(
10711071
bool FastRelaxedMath = DriverArgs.hasFlag(options::OPT_ffast_math,
10721072
options::OPT_fno_fast_math, false);
10731073
bool CorrectSqrt = false;
1074-
if (DeviceOffloadingKind == Action::OFK_SYCL) {
1074+
if (DeviceOffloadingKind == Action::OFK_SYCL)
10751075
// When using SYCL, sqrt is only correctly rounded if the flag is specified
1076-
CorrectSqrt = DriverArgs.hasArg(options::OPT_fsycl_fp32_prec_sqrt) ||
1077-
DriverArgs.hasArg(options::OPT_foffload_fp32_prec_sqrt);
1078-
} else
1076+
CorrectSqrt = DriverArgs.hasArg(options::OPT_foffload_fp32_prec_sqrt);
1077+
else
10791078
CorrectSqrt = DriverArgs.hasFlag(
10801079
options::OPT_fhip_fp32_correctly_rounded_divide_sqrt,
10811080
options::OPT_fno_hip_fp32_correctly_rounded_divide_sqrt, true);

0 commit comments

Comments
 (0)