Skip to content

Commit 53e665e

Browse files
authored
merge main into amd-staging (llvm#2889)
2 parents 2327f3f + 55fd1ac commit 53e665e

File tree

27 files changed

+200
-547
lines changed

27 files changed

+200
-547
lines changed

.github/workflows/libcxx-restart-preempted-jobs.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
3333
with:
3434
script: |
35-
const failure_regex = /Process completed with exit code 1./
35+
// The "The run was canceled by" message comes from a user manually canceling a workflow
36+
// the "higher priority" message comes from github canceling a workflow because the user updated the change.
37+
// And the "exit code 1" message indicates a genuine failure.
38+
const failure_regex = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)|(The run was canceled by)/
3639
const preemption_regex = /(The runner has received a shutdown signal)|(The operation was canceled)/
3740
3841
const wf_run = context.payload.workflow_run
@@ -167,7 +170,7 @@ jobs:
167170
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
168171
with:
169172
script: |
170-
const FAILURE_REGEX = /Process completed with exit code 1./
173+
const FAILURE_REGEX = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)|(The run was canceled by)/
171174
const PREEMPTION_REGEX = /(The runner has received a shutdown signal)|(The operation was canceled)/
172175
173176
function log(msg) {

flang/include/flang/Lower/AbstractConverter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "flang/Lower/LoweringOptions.h"
1717
#include "flang/Lower/PFTDefs.h"
18+
#include "flang/Lower/Support/Utils.h"
1819
#include "flang/Optimizer/Builder/BoxValue.h"
1920
#include "flang/Optimizer/Dialect/FIRAttr.h"
2021
#include "flang/Semantics/symbol.h"
@@ -23,6 +24,7 @@
2324
#include "mlir/IR/BuiltinOps.h"
2425
#include "mlir/IR/Operation.h"
2526
#include "llvm/ADT/ArrayRef.h"
27+
#include "llvm/ADT/DenseMap.h"
2628

2729
namespace mlir {
2830
class SymbolTable;

flang/include/flang/Lower/SymbolMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct SymbolBox : public fir::details::matcher<SymbolBox> {
128128
const SymbolBox &symBox);
129129

130130
/// Dump the map. For debugging.
131-
LLVM_DUMP_METHOD void dump() const { llvm::errs() << *this << '\n'; }
131+
LLVM_DUMP_METHOD void dump() const;
132132

133133
private:
134134
VT box;
@@ -293,7 +293,7 @@ class SymMap {
293293
const SymMap &symMap);
294294

295295
/// Dump the map. For debugging.
296-
LLVM_DUMP_METHOD void dump() const { llvm::errs() << *this << '\n'; }
296+
LLVM_DUMP_METHOD void dump() const;
297297

298298
void addVariableDefinition(semantics::SymbolRef symRef,
299299
fir::FortranVariableOpInterface definingOp,

flang/lib/Lower/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ add_flang_library(FortranLower
2323
LoweringOptions.cpp
2424
Mangler.cpp
2525
OpenACC.cpp
26+
OpenMP/Atomic.cpp
2627
OpenMP/ClauseProcessor.cpp
2728
OpenMP/Clauses.cpp
2829
OpenMP/DataSharingProcessor.cpp

flang/lib/Lower/OpenMP/Atomic.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//===-- Atomic.h -- Lowering of atomic constructs -------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
#ifndef FORTRAN_LOWER_OPENMP_ATOMIC_H
9+
#define FORTRAN_LOWER_OPENMP_ATOMIC_H
10+
11+
namespace Fortran {
12+
namespace lower {
13+
class AbstractConverter;
14+
class SymMap;
15+
16+
namespace pft {
17+
struct Evaluation;
18+
}
19+
} // namespace lower
20+
21+
namespace parser {
22+
struct OpenMPAtomicConstruct;
23+
}
24+
25+
namespace semantics {
26+
class SemanticsContext;
27+
}
28+
} // namespace Fortran
29+
30+
namespace Fortran::lower::omp {
31+
void lowerAtomic(AbstractConverter &converter, SymMap &symTable,
32+
semantics::SemanticsContext &semaCtx, pft::Evaluation &eval,
33+
const parser::OpenMPAtomicConstruct &construct);
34+
}
35+
36+
#endif // FORTRAN_LOWER_OPENMP_ATOMIC_H

0 commit comments

Comments
 (0)