Skip to content

Commit fd70dbf

Browse files
SC llvm teamSC llvm team
SC llvm team
authored and
SC llvm team
committed
Merged main:fcb3a0485857c749d04ea234a8c3d629c62ab211 into amd-gfx:425372303add
Local branch amd-gfx 4253723 Merged main:efad561890ad3584c38adae913f9939384eb804c into amd-gfx:4b0f66167c79 Remote branch main fcb3a04 [analyzer] Add missing include <unordered_map> to llvm/lib/Support/Z3Solver.cpp (llvm#106410)
2 parents 4253723 + fcb3a04 commit fd70dbf

Some content is hidden

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

44 files changed

+1990
-902
lines changed

clang/include/clang/ExtractAPI/API.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "clang/AST/RawCommentList.h"
2424
#include "clang/Basic/SourceLocation.h"
2525
#include "clang/ExtractAPI/DeclarationFragments.h"
26-
#include "llvm/ADT/SmallPtrSet.h"
26+
#include "llvm/ADT/SmallVector.h"
2727
#include "llvm/Support/Allocator.h"
2828
#include "llvm/Support/Casting.h"
2929
#include "llvm/TargetParser/Triple.h"
@@ -1420,9 +1420,8 @@ class APISet {
14201420
typename std::enable_if_t<std::is_base_of_v<APIRecord, RecordTy>, RecordTy> *
14211421
createRecord(StringRef USR, StringRef Name, CtorArgsContTy &&...CtorArgs);
14221422

1423-
auto getTopLevelRecords() const {
1424-
return llvm::iterator_range<decltype(TopLevelRecords)::iterator>(
1425-
TopLevelRecords);
1423+
ArrayRef<const APIRecord *> getTopLevelRecords() const {
1424+
return TopLevelRecords;
14261425
}
14271426

14281427
void removeRecord(StringRef USR);
@@ -1455,7 +1454,7 @@ class APISet {
14551454
// lives in the BumpPtrAllocator.
14561455
using APIRecordStoredPtr = std::unique_ptr<APIRecord, APIRecordDeleter>;
14571456
llvm::DenseMap<StringRef, APIRecordStoredPtr> USRBasedLookupTable;
1458-
llvm::SmallPtrSet<const APIRecord *, 32> TopLevelRecords;
1457+
llvm::SmallVector<const APIRecord *, 32> TopLevelRecords;
14591458

14601459
public:
14611460
const std::string ProductName;
@@ -1481,7 +1480,7 @@ APISet::createRecord(StringRef USR, StringRef Name,
14811480
dyn_cast_if_present<RecordContext>(Record->Parent.Record))
14821481
ParentContext->addToRecordChain(Record);
14831482
else
1484-
TopLevelRecords.insert(Record);
1483+
TopLevelRecords.push_back(Record);
14851484
} else {
14861485
Record = dyn_cast<RecordTy>(Result.first->second.get());
14871486
}

clang/lib/ExtractAPI/API.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ void APISet::removeRecord(StringRef USR) {
150150
if (auto *RecordAsCtx = llvm::dyn_cast<RecordContext>(Record))
151151
ParentCtx->stealRecordChain(*RecordAsCtx);
152152
} else {
153-
TopLevelRecords.erase(Record);
153+
auto *It = llvm::find(TopLevelRecords, Record);
154+
if (It != TopLevelRecords.end())
155+
TopLevelRecords.erase(It);
154156
if (auto *RecordAsCtx = llvm::dyn_cast<RecordContext>(Record)) {
155157
for (const auto *Child = RecordAsCtx->First; Child != nullptr;
156158
Child = Child->getNextInContext())
157-
TopLevelRecords.insert(Child);
159+
TopLevelRecords.push_back(Child);
158160
}
159161
}
160162
USRBasedLookupTable.erase(Result);

compiler-rt/lib/builtins/cpu_model/riscv.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ struct {
2121
} __riscv_vendor_feature_bits __attribute__((visibility("hidden"), nocommon));
2222

2323
struct {
24-
unsigned mVendorID;
25-
unsigned mArchID;
26-
unsigned mImplID;
24+
unsigned mvendorid;
25+
unsigned marchid;
26+
unsigned mimpid;
2727
} __riscv_cpu_model __attribute__((visibility("hidden"), nocommon));
2828

2929
// NOTE: Should sync-up with RISCVFeatures.td
@@ -250,9 +250,9 @@ static void initRISCVFeature(struct riscv_hwprobe Hwprobes[]) {
250250
// This unsets all extension bitmask bits.
251251

252252
// Init VendorID, ArchID, ImplID
253-
__riscv_cpu_model.mVendorID = Hwprobes[2].value;
254-
__riscv_cpu_model.mArchID = Hwprobes[3].value;
255-
__riscv_cpu_model.mImplID = Hwprobes[4].value;
253+
__riscv_cpu_model.mvendorid = Hwprobes[2].value;
254+
__riscv_cpu_model.marchid = Hwprobes[3].value;
255+
__riscv_cpu_model.mimpid = Hwprobes[4].value;
256256

257257
// Init standard extension
258258
// TODO: Maybe Extension implied generate from tablegen?

flang/lib/Lower/OpenMP/DataSharingProcessor.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ class DataSharingProcessor {
153153
getAllSymbolsToPrivatize() const {
154154
return allPrivatizedSymbols;
155155
}
156+
157+
llvm::ArrayRef<const semantics::Symbol *> getDelayedPrivSymbols() const {
158+
return useDelayedPrivatization
159+
? allPrivatizedSymbols.getArrayRef()
160+
: llvm::ArrayRef<const semantics::Symbol *>();
161+
}
156162
};
157163

158164
} // namespace omp

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static void genBodyOfTargetOp(
882882
}
883883

884884
for (auto [argIndex, argSymbol] :
885-
llvm::enumerate(dsp.getAllSymbolsToPrivatize())) {
885+
llvm::enumerate(dsp.getDelayedPrivSymbols())) {
886886
argIndex = mapSyms.size() + argIndex;
887887

888888
const mlir::BlockArgument &arg = region.getArgument(argIndex);
@@ -1494,8 +1494,8 @@ genParallelOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
14941494
allRegionArgLocs);
14951495

14961496
llvm::SmallVector<const semantics::Symbol *> allSymbols(reductionSyms);
1497-
allSymbols.append(dsp.getAllSymbolsToPrivatize().begin(),
1498-
dsp.getAllSymbolsToPrivatize().end());
1497+
allSymbols.append(dsp.getDelayedPrivSymbols().begin(),
1498+
dsp.getDelayedPrivSymbols().end());
14991499

15001500
unsigned argIdx = 0;
15011501
for (const semantics::Symbol *arg : allSymbols) {

lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_logpoints.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def setUp(self):
1919
self.main_basename = "main-copy.cpp"
2020
self.main_path = os.path.realpath(self.getBuildArtifact(self.main_basename))
2121

22+
@skipIfWindows
2223
def test_logmessage_basic(self):
2324
"""Tests breakpoint logmessage basic functionality."""
2425
before_loop_line = line_number("main.cpp", "// before loop")

llvm/docs/TestSuiteGuide.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ Quickstart
1616
environment:
1717

1818
```bash
19-
% mkdir venv
20-
% virtualenv venv
21-
% . venv/bin/activate
22-
% pip install svn+https://llvm.org/svn/llvm-project/llvm/trunk/utils/lit
19+
% python3 -m venv .venv
20+
% . .venv/bin/activate
21+
% pip install git+https://github.com/llvm/llvm-project.git#subdirectory=llvm/utils/lit
2322
% lit --version
2423
lit 0.8.0dev
2524
```

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 509988
19+
#define LLVM_MAIN_REVISION 510002
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7031,7 +7031,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
70317031
// If ISD::IS_FPCLASS should be expanded, do it right now, because the
70327032
// expansion can use illegal types. Making expansion early allows
70337033
// legalizing these types prior to selection.
7034-
if (!TLI.isOperationLegalOrCustom(ISD::IS_FPCLASS, ArgVT)) {
7034+
if (!TLI.isOperationLegal(ISD::IS_FPCLASS, ArgVT) &&
7035+
!TLI.isOperationCustom(ISD::IS_FPCLASS, ArgVT)) {
70357036
SDValue Result = TLI.expandIS_FPCLASS(DestVT, Op, Test, Flags, sdl, DAG);
70367037
setValue(&I, Result);
70377038
return;

llvm/lib/Support/Z3Solver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ using namespace llvm;
1919
#include "llvm/ADT/Twine.h"
2020

2121
#include <set>
22+
#include <unordered_map>
2223

2324
#include <z3.h>
2425

llvm/lib/Target/AMDGPU/AMDGPU.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ struct AMDGPULowerBufferFatPointersPass
162162
void initializeAMDGPURewriteOutArgumentsPass(PassRegistry &);
163163
extern char &AMDGPURewriteOutArgumentsID;
164164

165-
void initializeGCNDPPCombinePass(PassRegistry &);
166-
extern char &GCNDPPCombineID;
165+
void initializeGCNDPPCombineLegacyPass(PassRegistry &);
166+
extern char &GCNDPPCombineLegacyID;
167167

168168
void initializeSIFoldOperandsLegacyPass(PassRegistry &);
169169
extern char &SIFoldOperandsLegacyID;

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,17 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
426426
// FIXME: These IS_FPCLASS vector fp types are marked custom so it reaches
427427
// scalarization code. Can be removed when IS_FPCLASS expand isn't called by
428428
// default unless marked custom/legal.
429-
setOperationAction(
430-
ISD::IS_FPCLASS,
431-
{MVT::v2f16, MVT::v3f16, MVT::v4f16, MVT::v16f16, MVT::v2f32, MVT::v3f32,
432-
MVT::v4f32, MVT::v5f32, MVT::v6f32, MVT::v7f32, MVT::v8f32, MVT::v16f32,
433-
MVT::v2f64, MVT::v3f64, MVT::v4f64, MVT::v8f64, MVT::v16f64},
434-
Custom);
429+
setOperationAction(ISD::IS_FPCLASS,
430+
{MVT::v2f32, MVT::v3f32, MVT::v4f32, MVT::v5f32,
431+
MVT::v6f32, MVT::v7f32, MVT::v8f32, MVT::v16f32,
432+
MVT::v2f64, MVT::v3f64, MVT::v4f64, MVT::v8f64,
433+
MVT::v16f64},
434+
Custom);
435+
436+
if (isTypeLegal(MVT::f16))
437+
setOperationAction(ISD::IS_FPCLASS,
438+
{MVT::v2f16, MVT::v3f16, MVT::v4f16, MVT::v16f16},
439+
Custom);
435440

436441
// Expand to fneg + fadd.
437442
setOperationAction(ISD::FSUB, MVT::f64, Expand);

llvm/lib/Target/AMDGPU/AMDGPUPassRegistry.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ MACHINE_FUNCTION_PASS("amdgpu-isel", AMDGPUISelDAGToDAGPass(*this))
9898
MACHINE_FUNCTION_PASS("si-fix-sgpr-copies", SIFixSGPRCopiesPass())
9999
MACHINE_FUNCTION_PASS("si-i1-copies", SILowerI1CopiesPass())
100100
MACHINE_FUNCTION_PASS("si-fold-operands", SIFoldOperandsPass());
101+
MACHINE_FUNCTION_PASS("gcn-dpp-combine", GCNDPPCombinePass())
101102
#undef MACHINE_FUNCTION_PASS

0 commit comments

Comments
 (0)