Skip to content

Commit ab0b829

Browse files
authored
merge main into amd-staging (#571)
2 parents 82a6eaa + 312a2f5 commit ab0b829

File tree

79 files changed

+3116
-1373
lines changed

Some content is hidden

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

79 files changed

+3116
-1373
lines changed

clang/include/clang/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ class FunctionDecl : public DeclaratorDecl,
23352335
}
23362336

23372337
void setDefaultedOrDeletedInfo(DefaultedOrDeletedFunctionInfo *Info);
2338-
DefaultedOrDeletedFunctionInfo *getDefalutedOrDeletedInfo() const;
2338+
DefaultedOrDeletedFunctionInfo *getDefaultedOrDeletedInfo() const;
23392339

23402340
/// Whether this function is variadic.
23412341
bool isVariadic() const;

clang/lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3180,7 +3180,7 @@ void FunctionDecl::DefaultedOrDeletedFunctionInfo::setDeletedMessage(
31803180
}
31813181

31823182
FunctionDecl::DefaultedOrDeletedFunctionInfo *
3183-
FunctionDecl::getDefalutedOrDeletedInfo() const {
3183+
FunctionDecl::getDefaultedOrDeletedInfo() const {
31843184
return FunctionDeclBits.HasDefaultedOrDeletedInfo ? DefaultedOrDeletedInfo
31853185
: nullptr;
31863186
}

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8035,7 +8035,7 @@ class DefaultedComparisonVisitor {
80358035
DefaultedComparisonVisitor(Sema &S, CXXRecordDecl *RD, FunctionDecl *FD,
80368036
DefaultedComparisonKind DCK)
80378037
: S(S), RD(RD), FD(FD), DCK(DCK) {
8038-
if (auto *Info = FD->getDefalutedOrDeletedInfo()) {
8038+
if (auto *Info = FD->getDefaultedOrDeletedInfo()) {
80398039
// FIXME: Change CreateOverloadedBinOp to take an ArrayRef instead of an
80408040
// UnresolvedSet to avoid this copy.
80418041
Fns.assign(Info->getUnqualifiedLookups().begin(),

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5465,7 +5465,7 @@ TemplateDeclInstantiator::InitMethodInstantiation(CXXMethodDecl *New,
54655465
bool TemplateDeclInstantiator::SubstDefaultedFunction(FunctionDecl *New,
54665466
FunctionDecl *Tmpl) {
54675467
// Transfer across any unqualified lookups.
5468-
if (auto *DFI = Tmpl->getDefalutedOrDeletedInfo()) {
5468+
if (auto *DFI = Tmpl->getDefaultedOrDeletedInfo()) {
54695469
SmallVector<DeclAccessPair, 32> Lookups;
54705470
Lookups.reserve(DFI->getUnqualifiedLookups().size());
54715471
bool AnyChanged = false;

clang/lib/Serialization/ASTWriterDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) {
903903
Record.push_back(D->getODRHash());
904904

905905
if (D->isDefaulted() || D->isDeletedAsWritten()) {
906-
if (auto *FDI = D->getDefalutedOrDeletedInfo()) {
906+
if (auto *FDI = D->getDefaultedOrDeletedInfo()) {
907907
// Store both that there is an DefaultedOrDeletedInfo and whether it
908908
// contains a DeletedMessage.
909909
StringLiteral *DeletedMessage = FDI->getDeletedMessage();

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,8 +1789,6 @@ static void genTaskloopClauses(
17891789
cp.processPriority(stmtCtx, clauseOps);
17901790
cp.processReduction(loc, clauseOps, reductionSyms);
17911791
cp.processUntied(clauseOps);
1792-
1793-
cp.processTODO<clause::Collapse>(loc, llvm::omp::Directive::OMPD_taskloop);
17941792
}
17951793

17961794
static void genTaskwaitClauses(lower::AbstractConverter &converter,

flang/test/Lower/HLFIR/charconvert.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ subroutine charconvert3(c, c4)
5656
end subroutine
5757

5858
! CHECK-LABEL: func.func @_QPcharconvert3
59-
! CHECK-SAME: %[[ARG0:.*]]: !fir.boxchar<1> {{.*}}, %[[ARG1:.*]]: !fir.boxchar<4>
59+
! CHECK-SAME: %[[ARG0:.*]]: !fir.boxchar<1> {{.*}}, %[[ARG1:.*]]: !fir.boxchar<4>
6060
! CHECK: %[[VAL_0:.*]]:2 = fir.unboxchar %[[ARG0]] : (!fir.boxchar<1>) -> (!fir.ref<!fir.char<1,?>>, index)
6161
! CHECK: %[[VAL_1:.*]]:2 = hlfir.declare %[[VAL_0]]#0 typeparams %[[VAL_0]]#1 dummy_scope %{{[0-9]+}} arg {{[0-9]+}} {uniq_name = "_QFcharconvert3Ec"} : (!fir.ref<!fir.char<1,?>>, index, !fir.dscope) -> (!fir.boxchar<1>, !fir.ref<!fir.char<1,?>>)
6262
! CHECK: %[[VAL_2:.*]]:2 = fir.unboxchar %[[ARG1]] : (!fir.boxchar<4>) -> (!fir.ref<!fir.char<4,?>>, index)

flang/test/Lower/HLFIR/procedure-pointer-component-default-init.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test procedure pointer component default initialization when the size
2-
! of the derived type is 32 bytes and larger.
2+
! of the derived type is 32 bytes and larger.
33
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
44

55
interface

flang/test/Lower/HLFIR/procedure-pointer.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ real function real_func(x)
1111
real :: x
1212
end function
1313
character(:) function char_func(x)
14-
pointer :: char_func
14+
pointer :: char_func
1515
integer :: x
1616
end function
1717
subroutine sub(x)
@@ -148,7 +148,7 @@ subroutine sub5()
148148
use m
149149
procedure(real), pointer :: p3
150150

151-
p3 => real_func
151+
p3 => real_func
152152
! CHECK: %[[VAL_0:.*]] = fir.alloca !fir.boxproc<() -> f32> {bindc_name = "p3", uniq_name = "_QFsub5Ep3"}
153153
! CHECK: %[[VAL_1:.*]] = fir.zero_bits () -> f32
154154
! CHECK: %[[VAL_2:.*]] = fir.emboxproc %[[VAL_1]] : (() -> f32) -> !fir.boxproc<() -> f32>
@@ -165,7 +165,7 @@ subroutine sub6()
165165
procedure(), pointer :: p4
166166
real :: r
167167

168-
p4 => sub
168+
p4 => sub
169169
! CHECK: %[[VAL_0:.*]] = fir.alloca !fir.boxproc<() -> ()> {bindc_name = "p4", uniq_name = "_QFsub6Ep4"}
170170
! CHECK: %[[VAL_1:.*]] = fir.zero_bits () -> ()
171171
! CHECK: %[[VAL_2:.*]] = fir.emboxproc %[[VAL_1]] : (() -> ()) -> !fir.boxproc<() -> ()>
@@ -197,7 +197,7 @@ subroutine sub7(p1, p2)
197197

198198
call foo2(p2)
199199
! CHECK: fir.call @_QPfoo2(%[[VAL_1]]#0) fastmath<contract> : (!fir.ref<!fir.boxproc<() -> ()>>) -> ()
200-
end
200+
end
201201

202202
subroutine sub8()
203203
use m
@@ -338,7 +338,7 @@ subroutine sub12()
338338
! CHECK: %[[VAL_16:.*]]:2 = hlfir.declare %[[VAL_0]] {uniq_name = ".tmp.intrinsic_result"} : (!fir.ref<!fir.boxproc<(!fir.ref<i32>) -> !fir.box<!fir.ptr<!fir.char<1,?>>>>>) -> (!fir.ref<!fir.boxproc<(!fir.ref<i32>) -> !fir.box<!fir.ptr<!fir.char<1,?>>>>>, !fir.ref<!fir.boxproc<(!fir.ref<i32>) -> !fir.box<!fir.ptr<!fir.char<1,?>>>>>)
339339
! CHECK: %[[VAL_17:.*]] = fir.convert %[[VAL_16]]#0 : (!fir.ref<!fir.boxproc<(!fir.ref<i32>) -> !fir.box<!fir.ptr<!fir.char<1,?>>>>>) -> !fir.ref<!fir.boxproc<() -> ()>>
340340
! CHECK: fir.call @_QPfoo2(%[[VAL_17]]) fastmath<contract> : (!fir.ref<!fir.boxproc<() -> ()>>) -> ()
341-
end
341+
end
342342

343343
subroutine test_opt_pointer()
344344
interface

flang/test/Lower/HLFIR/reshape.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end subroutine reshape_test_nopad
4949
! CHECK: %[[VAL_10:.*]]:2 = hlfir.declare {{.*}}{uniq_name = "_QFreshape_test_nopadEsh"} : (!fir.ref<!fir.array<2xi32>>, !fir.shape<1>, !fir.dscope) -> (!fir.ref<!fir.array<2xi32>>, !fir.ref<!fir.array<2xi32>>)
5050
! CHECK: %[[VAL_11:.*]]:2 = hlfir.declare {{.*}}{uniq_name = "_QFreshape_test_nopadEsource"} : (!fir.box<!fir.array<?x?x?xi32>>, !fir.dscope) -> (!fir.box<!fir.array<?x?x?xi32>>, !fir.box<!fir.array<?x?x?xi32>>)
5151
! CHECK: %[[VAL_13:.*]] = hlfir.reshape %[[VAL_11]]#0 %[[VAL_10]]#0 order %[[VAL_7]]#0 : (!fir.box<!fir.array<?x?x?xi32>>, !fir.ref<!fir.array<2xi32>>, !fir.ref<!fir.array<2xi32>>) -> !hlfir.expr<?x?xi32>
52-
52+
5353
subroutine test_reshape_optional1(pad, order, source, shape)
5454
real, pointer :: pad(:, :)
5555
integer, pointer :: order(:)

0 commit comments

Comments
 (0)