Skip to content

Commit 19227c5

Browse files
committed
Merge from 'main' to 'sycl-web' (3 commits)
CONFLICT (content): Merge conflict in openmp/libomptarget/test/lit.cfg
2 parents 3ae29e2 + ac82c8b commit 19227c5

14 files changed

+18
-41
lines changed

lldb/include/lldb/Utility/FileSpec.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -386,21 +386,6 @@ class FileSpec {
386386
/// The triple which is used to set the Path style.
387387
void SetFile(llvm::StringRef path, const llvm::Triple &triple);
388388

389-
bool IsResolved() const { return m_is_resolved; }
390-
391-
/// Set if the file path has been resolved or not.
392-
///
393-
/// If you know a file path is already resolved and avoided passing a \b
394-
/// true parameter for any functions that take a "bool resolve_path"
395-
/// parameter, you can set the value manually using this call to make sure
396-
/// we don't try and resolve it later, or try and resolve a path that has
397-
/// already been resolved.
398-
///
399-
/// \param[in] is_resolved
400-
/// A boolean value that will replace the current value that
401-
/// indicates if the paths in this object have been resolved.
402-
void SetIsResolved(bool is_resolved) { m_is_resolved = is_resolved; }
403-
404389
FileSpec CopyByAppendingPathComponent(llvm::StringRef component) const;
405390
FileSpec CopyByRemovingLastPathComponent() const;
406391

@@ -440,7 +425,6 @@ class FileSpec {
440425
/// state in this object.
441426
void PathWasModified() {
442427
m_checksum = Checksum();
443-
m_is_resolved = false;
444428
m_absolute = Absolute::Calculate;
445429
}
446430

@@ -459,9 +443,6 @@ class FileSpec {
459443
/// The optional MD5 checksum of the file.
460444
Checksum m_checksum;
461445

462-
/// True if this path has been resolved.
463-
mutable bool m_is_resolved = false;
464-
465446
/// Cache whether this path is absolute.
466447
mutable Absolute m_absolute = Absolute::Calculate;
467448

lldb/source/Host/common/FileSystem.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ void FileSystem::Resolve(FileSpec &file_spec) {
259259
file_spec.SetDirectory(path);
260260
else
261261
file_spec.SetPath(path);
262-
file_spec.SetIsResolved(true);
263262
}
264263

265264
template <typename T>

openmp/libomptarget/test/lit.cfg

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ config.test_flags = " -I " + config.test_source_root + \
7878
" -L " + config.library_dir + \
7979
" -L " + config.llvm_lib_directory
8080

81-
# compiler specific flags
82-
config.test_flags_clang = ""
83-
config.test_flags_flang = ""
84-
8581
if config.omp_host_rtl_directory:
8682
config.test_flags = config.test_flags + " -L " + \
8783
config.omp_host_rtl_directory
@@ -140,7 +136,7 @@ else: # Unices
140136
if config.cuda_libdir:
141137
config.test_flags += " -Wl,-rpath," + config.cuda_libdir
142138
if config.libomptarget_current_target.startswith('nvptx'):
143-
config.test_flags_clang += " --libomptarget-nvptx-bc-path=" + config.library_dir + '/DeviceRTL'
139+
config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir + '/DeviceRTL'
144140
if config.libomptarget_current_target.endswith('-oldDriver'):
145141
config.test_flags += " -fno-openmp-new-driver"
146142
if config.libomptarget_current_target.endswith('-LTO'):
@@ -281,13 +277,13 @@ for libomptarget_target in config.libomptarget_all_targets:
281277
libomptarget_target, \
282278
"%not --crash %t"))
283279
config.substitutions.append(("%clangxx-" + libomptarget_target, \
284-
"%clangxx %openmp_flags %cuda_flags %flags %flags_clang -fopenmp-targets=" +\
280+
"%clangxx %openmp_flags %cuda_flags %flags -fopenmp-targets=" +\
285281
remove_suffix_if_present(libomptarget_target)))
286282
config.substitutions.append(("%clang-" + libomptarget_target, \
287-
"%clang %openmp_flags %cuda_flags %flags %flags_clang -fopenmp-targets=" +\
283+
"%clang %openmp_flags %cuda_flags %flags -fopenmp-targets=" +\
288284
remove_suffix_if_present(libomptarget_target)))
289285
config.substitutions.append(("%flang-" + libomptarget_target, \
290-
"%flang %openmp_flags %flags %flags_flang -fopenmp-targets=" +\
286+
"%flang %openmp_flags %flags -fopenmp-targets=" +\
291287
remove_suffix_if_present(libomptarget_target)))
292288
config.substitutions.append(("%fcheck-" + libomptarget_target, \
293289
config.libomptarget_filecheck + " %s"))
@@ -365,6 +361,4 @@ if config.libomptarget_current_target.startswith('nvptx') and config.cuda_path:
365361
else:
366362
config.substitutions.append(("%cuda_flags", ""))
367363
config.substitutions.append(("%flags", config.test_flags))
368-
config.substitutions.append(("%flags_clang", config.test_flags_clang))
369-
config.substitutions.append(("%flags_flang", config.test_flags_flang))
370364
config.substitutions.append(("%not", config.libomptarget_not))

openmp/libomptarget/test/offloading/fortran/basic-target-region-1D-array-section.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Basic offloading test of arrays with provided lower
22
! and upper bounds as specified by OpenMP's sectioning
3-
! REQUIRES: flang
3+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
44
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
55
! UNSUPPORTED: aarch64-unknown-linux-gnu
66
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array-section.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Basic offloading test of a regular array explicitly
22
! passed within a target region
3-
! REQUIRES: flang
3+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
44
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
55
! UNSUPPORTED: aarch64-unknown-linux-gnu
66
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Basic offloading test of a regular array explicitly
22
! passed within a target region
3-
! REQUIRES: flang
3+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
44
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
55
! UNSUPPORTED: aarch64-unknown-linux-gnu
66
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/basic_target_region.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Basic offloading test with a target region
2-
! REQUIRES: flang
2+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
33
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
44
! UNSUPPORTED: aarch64-unknown-linux-gnu
55
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/constant-arr-index.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
! that checks constant indexing on device
33
! correctly works (regression test for prior
44
! bug).
5-
! REQUIRES: flang
5+
! REQUIRES: flang, amdgcn-amd-amdhsa
6+
! UNSUPPORTED: nvptx64-nvidia-cuda
67
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
78
! UNSUPPORTED: aarch64-unknown-linux-gnu
89
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/declare-target-array-in-target-region.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! Offloading test with a target region mapping a declare target
22
! Fortran array writing some values to it and checking the host
33
! correctly receives the updates made on the device.
4-
! REQUIRES: flang
4+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
55
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
66
! UNSUPPORTED: aarch64-unknown-linux-gnu
77
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/double-target-call-with-declare-target.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
! declare target Fortran array and writing some values to
33
! it before checking the host correctly receives the
44
! correct updates made on the device.
5-
! REQUIRES: flang
6-
! UNSUPPORTED: nvptx64-nvidia-cuda
5+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
76
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
87
! UNSUPPORTED: aarch64-unknown-linux-gnu
98
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/target-region-implicit-array.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Basic offloading test of a regular array explicitly
22
! passed within a target region
3-
! REQUIRES: flang
3+
! REQUIRES: flang, amdgcn-amd-amdhsa, nvptx64-nvidia-cuda
44
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
55
! UNSUPPORTED: aarch64-unknown-linux-gnu
66
! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO

openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Basic offloading test with a target region
2-
! REQUIRES: flang
2+
! REQUIRES: flang, amdgcn-amd-amdhsa
33
! UNSUPPORTED: nvptx64-nvidia-cuda
44
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
55
! UNSUPPORTED: aarch64-unknown-linux-gnu

openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! REQUIRES: flang
1+
! REQUIRES: flang, amdgcn-amd-amdhsa
22
! UNSUPPORTED: nvptx64-nvidia-cuda
33
! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
44
! UNSUPPORTED: aarch64-unknown-linux-gnu

openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
// REQUIRES: libomptarget-debug
66

7+
// UNSUPPORTED: nvptx64-nvidia-cuda
8+
// UNSUPPORTED: nvptx64-nvidia-cuda-LTO
9+
710
#include <stdio.h>
811
#include <stdlib.h>
912

0 commit comments

Comments
 (0)