Skip to content

Commit b9cb3cb

Browse files
authored
Merge branch 'main' into nfc_specialize_unit_tests
2 parents 60d3d02 + 89ed525 commit b9cb3cb

File tree

20 files changed

+879
-419
lines changed

20 files changed

+879
-419
lines changed

clang/docs/OpenMPSupport.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,12 @@ implementation.
580580
| need_device_addr modifier for adjust_args clause | :part:`partial` | :none:`unclaimed` | Parsing/Sema: https://github.com/llvm/llvm-project/pull/143442 |
581581
| | | | https://github.com/llvm/llvm-project/pull/149586 |
582582
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
583-
| Prescriptive num_threads | :part:`In Progress` | :none:`unclaimed` | ro-i |
583+
| Prescriptive num_threads | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/160659 |
584+
| | | | https://github.com/llvm/llvm-project/pull/146403 |
585+
| | | | https://github.com/llvm/llvm-project/pull/146404 |
586+
| | | | https://github.com/llvm/llvm-project/pull/146405 |
584587
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
585-
| Message and severity clauses | :part:`In Progress` | :none:`unclaimed` | ro-i |
588+
| Message and severity clauses | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/146093 |
586589
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
587590
| Local clause on declare target | :part:`In Progress` | :none:`unclaimed` | |
588591
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+

clang/test/Driver/riscv-cpus.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@
462462
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+ziccif"
463463
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicclsm"
464464
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+ziccrse"
465-
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicntr"
466465
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicsr"
467466
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zifencei"
468467
// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zihintntl"
@@ -492,7 +491,6 @@
492491
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+ziccif"
493492
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+zicclsm"
494493
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+ziccrse"
495-
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+zicntr"
496494
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+zicsr"
497495
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+zifencei"
498496
// MCPU-SIFIVE-P470-SAME: "-target-feature" "+zihintntl"
@@ -555,7 +553,6 @@
555553
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+ziccif"
556554
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+zicclsm"
557555
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+ziccrse"
558-
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+zicntr"
559556
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+zicsr"
560557
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+zifencei"
561558
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+zihintntl"

flang/include/flang/Evaluate/tools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ bool IsVarSubexpressionOf(
15221522
std::optional<Expr<SomeType>> GetConvertInput(const Expr<SomeType> &x);
15231523

15241524
// How many ancestors does have a derived type have?
1525-
std::optional<int> DerivedTypeDepth(const semantics::Scope &);
1525+
std::optional<int> CountDerivedTypeAncestors(const semantics::Scope &);
15261526

15271527
} // namespace Fortran::evaluate
15281528

flang/lib/Evaluate/constant.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "flang/Evaluate/constant.h"
1010
#include "flang/Evaluate/expression.h"
1111
#include "flang/Evaluate/shape.h"
12+
#include "flang/Evaluate/tools.h"
1213
#include "flang/Evaluate/type.h"
1314
#include <string>
1415

@@ -392,8 +393,8 @@ std::size_t Constant<SomeDerived>::CopyFrom(const Constant<SomeDerived> &source,
392393
bool ComponentCompare::operator()(SymbolRef x, SymbolRef y) const {
393394
if (&x->owner() != &y->owner()) {
394395
// Not components of the same derived type; put ancestors' components first.
395-
if (auto xDepth{DerivedTypeDepth(x->owner())}) {
396-
if (auto yDepth{DerivedTypeDepth(y->owner())}) {
396+
if (auto xDepth{CountDerivedTypeAncestors(x->owner())}) {
397+
if (auto yDepth{CountDerivedTypeAncestors(y->owner())}) {
397398
if (*xDepth != *yDepth) {
398399
return *xDepth < *yDepth;
399400
}

flang/lib/Evaluate/tools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ bool IsVarSubexpressionOf(
19501950
return VariableFinder{sub}(super);
19511951
}
19521952

1953-
std::optional<int> DerivedTypeDepth(const semantics::Scope &scope) {
1953+
std::optional<int> CountDerivedTypeAncestors(const semantics::Scope &scope) {
19541954
if (scope.IsDerivedType()) {
19551955
for (auto iter{scope.cbegin()}; iter != scope.cend(); ++iter) {
19561956
const Symbol &symbol{*iter->second};
@@ -1962,7 +1962,7 @@ std::optional<int> DerivedTypeDepth(const semantics::Scope &scope) {
19621962
parent = derived->typeSymbol().scope();
19631963
}
19641964
if (parent) {
1965-
if (auto parentDepth{DerivedTypeDepth(*parent)}) {
1965+
if (auto parentDepth{CountDerivedTypeAncestors(*parent)}) {
19661966
return 1 + *parentDepth;
19671967
}
19681968
}

llvm/docs/CodingStandards.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,12 @@ would help to avoid running into a "dangling else" situation.
17901790
markAsIgnored(D);
17911791
}
17921792
1793+
Use Unix line endings for files
1794+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1795+
1796+
Use Unix line endings for all files. CRLF line endings are allowed as an
1797+
exception for test files that intend to test CRLF handling or when the file
1798+
format requires it (like ``.bat`` or ``.rc`` files).
17931799

17941800
See Also
17951801
========

llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,7 @@ Expected<std::unique_ptr<LinkGraph>> createLinkGraphFromMachOObject_arm64(
599599
}
600600

601601
static Error applyPACSigningToModInitPointers(LinkGraph &G) {
602-
assert(G.getTargetTriple().getSubArch() == Triple::AArch64SubArch_arm64e &&
603-
"PAC signing only valid for arm64e");
602+
assert(G.getTargetTriple().isArm64e() && "PAC signing only valid for arm64e");
604603

605604
if (auto *ModInitSec = G.findSectionByName("__DATA,__mod_init_func")) {
606605
for (auto *B : ModInitSec->blocks()) {

0 commit comments

Comments
 (0)