Skip to content

Commit d18c8d4

Browse files
authored
Merge branch 'main' into perry/libcxx03-zos
2 parents bf5d940 + 40c917f commit d18c8d4

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

flang/test/Lower/CUDA/cuda-device-proc.cuf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,18 @@ attributes(global) subroutine test_bulk_g2s(a)
468468
end subroutine
469469

470470
! CHECK-LABEL: func.func @_QPtest_bulk_g2s
471-
! CHECK: nvvm.cp.async.bulk.shared.cluster.global %{{.*}}, %{{.*}}, %{{.*}}, %{{.*}} : <7>, <1>
471+
! CHECK: %[[BARRIER:.*]]:2 = hlfir.declare %4 {data_attr = #cuf.cuda<shared>, uniq_name = "_QFtest_bulk_g2sEbarrier1"} : (!fir.ref<i64>) -> (!fir.ref<i64>, !fir.ref<i64>)
472+
! CHECK: %[[DST:.*]]:2 = hlfir.declare %16(%17) {data_attr = #cuf.cuda<shared>, uniq_name = "_QFtest_bulk_g2sEtmpa"} : (!fir.ref<!fir.array<1024xf64>>, !fir.shape<1>) -> (!fir.ref<!fir.array<1024xf64>>, !fir.ref<!fir.array<1024xf64>>)
473+
! CHECK: %[[COUNT:.*]]:2 = hlfir.declare %19 {data_attr = #cuf.cuda<device>, uniq_name = "_QFtest_bulk_g2sEtx_count"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
474+
! CHECK: %[[SRC:.*]] = hlfir.designate %{{.*}} (%{{.*}}) : (!fir.box<!fir.array<?xf64>>, i64) -> !fir.ref<f64>
475+
! CHECK: %[[COUNT_LOAD:.*]] = fir.load %20#0 : !fir.ref<i32>
476+
! CHECK: %[[BARRIER_PTR:.*]] = fir.convert %[[BARRIER]]#0 : (!fir.ref<i64>) -> !llvm.ptr
477+
! CHECK: %[[BARRIER_3:.*]] = llvm.addrspacecast %[[BARRIER_PTR]] : !llvm.ptr to !llvm.ptr<3>
478+
! CHECK: %[[DST_PTR:.*]] = fir.convert %[[DST]]#0 : (!fir.ref<!fir.array<1024xf64>>) -> !llvm.ptr
479+
! CHECK: %[[DST_7:.*]] = llvm.addrspacecast %[[DST_PTR]] : !llvm.ptr to !llvm.ptr<7>
480+
! CHECK: %[[SRC_PTR:.*]] = fir.convert %[[SRC]] : (!fir.ref<f64>) -> !llvm.ptr
481+
! CHECK: %[[SRC_3:.*]] = llvm.addrspacecast %[[SRC_PTR]] : !llvm.ptr to !llvm.ptr<1>
482+
! CHECK: nvvm.cp.async.bulk.shared.cluster.global %[[DST_7]], %[[SRC_3]], %[[BARRIER_3]], %[[COUNT_LOAD]] : <7>, <1>
472483

473484
attributes(global) subroutine test_bulk_s2g(a)
474485
real(8), device :: a(*)

lldb/unittests/SymbolFile/PDB/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ add_lldb_unittest(SymbolFilePDBTests
99
lldbHost
1010
lldbSymbol
1111
lldbPluginObjectFilePECOFF
12+
lldbPluginPlatformWindows
1213
lldbPluginSymbolFileDWARF
1314
lldbPluginSymbolFilePDB
1415
lldbPluginTypeSystemClang

lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
#include "llvm/Testing/Support/Error.h"
1717

1818
#include "Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h"
19+
#include "Plugins/Platform/Windows/PlatformWindows.h"
1920
#include "Plugins/SymbolFile/DWARF/SymbolFileDWARF.h"
2021
#include "Plugins/SymbolFile/PDB/SymbolFilePDB.h"
2122
#include "Plugins/TypeSystem/Clang/TypeSystemClang.h"
2223
#include "TestingSupport/TestUtilities.h"
2324
#include "lldb/Core/Address.h"
25+
#include "lldb/Core/Debugger.h"
2426
#include "lldb/Core/Module.h"
2527
#include "lldb/Core/ModuleSpec.h"
2628
#include "lldb/Host/FileSystem.h"
@@ -59,6 +61,13 @@ class SymbolFilePDBTests : public testing::Test {
5961

6062
m_pdb_test_exe = GetInputFilePath("test-pdb.exe");
6163
m_types_test_exe = GetInputFilePath("test-pdb-types.exe");
64+
65+
ArchSpec arch("x86_64-pc-windows-msvc");
66+
Platform::SetHostPlatform(PlatformWindows::CreateInstance(true, &arch));
67+
m_debugger_sp = Debugger::CreateInstance();
68+
m_debugger_sp->SetPropertyValue(nullptr,
69+
lldb_private::eVarSetOperationAssign,
70+
"plugin.symbol-file.pdb.reader", "dia");
6271
}
6372

6473
void TearDown() override {
@@ -77,6 +86,7 @@ class SymbolFilePDBTests : public testing::Test {
7786
protected:
7887
std::string m_pdb_test_exe;
7988
std::string m_types_test_exe;
89+
lldb::DebuggerSP m_debugger_sp;
8090

8191
bool FileSpecMatchesAsBaseOrFull(const FileSpec &left,
8292
const FileSpec &right) const {

0 commit comments

Comments
 (0)