Skip to content

Commit 7d7e255

Browse files
jeanPerierchencha3
authored andcommitted
[flang] Enable polymorphic lowering by default (llvm#83285)
Polymorphic entity lowering status is good. The main remaining TODO is to allow lowering of vector subscripted polymorphic entity, but this does not deserve blocking all application using polymorphism. Remove experimental option and enable lowering of polymorphic entity by default.
1 parent 4ca4760 commit 7d7e255

File tree

68 files changed

+63
-107
lines changed

Some content is hidden

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

68 files changed

+63
-107
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6441,11 +6441,6 @@ def flang_deprecated_no_hlfir : Flag<["-"], "flang-deprecated-no-hlfir">,
64416441
Flags<[HelpHidden]>, Visibility<[FlangOption, FC1Option]>,
64426442
HelpText<"Do not use HLFIR lowering (deprecated)">;
64436443

6444-
def flang_experimental_polymorphism : Flag<["-"], "flang-experimental-polymorphism">,
6445-
Flags<[HelpHidden]>, Visibility<[FlangOption, FC1Option]>,
6446-
HelpText<"Enable Fortran 2003 polymorphism (experimental)">;
6447-
6448-
64496444
//===----------------------------------------------------------------------===//
64506445
// FLangOption + CoreOption + NoXarchOption
64516446
//===----------------------------------------------------------------------===//

clang/lib/Driver/ToolChains/Flang.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ void Flang::addCodegenOptions(const ArgList &Args,
148148

149149
Args.addAllArgs(CmdArgs, {options::OPT_flang_experimental_hlfir,
150150
options::OPT_flang_deprecated_no_hlfir,
151-
options::OPT_flang_experimental_polymorphism,
152151
options::OPT_fno_ppc_native_vec_elem_order,
153152
options::OPT_fppc_native_vec_elem_order});
154153
}

flang/include/flang/Lower/LoweringOptions.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ LOWERINGOPT(Name, Bits, Default)
2424
/// If true, lower transpose without a runtime call.
2525
ENUM_LOWERINGOPT(OptimizeTranspose, unsigned, 1, 1)
2626

27-
/// If true, enable polymorphic type lowering feature. On by default.
28-
ENUM_LOWERINGOPT(PolymorphicTypeImpl, unsigned, 1, 1)
29-
3027
/// If true, lower to High level FIR before lowering to FIR. On by default.
3128
ENUM_LOWERINGOPT(LowerToHighLevelFIR, unsigned, 1, 1)
3229

flang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,11 +1191,6 @@ bool CompilerInvocation::createFromArgs(
11911191
invoc.loweringOpts.setLowerToHighLevelFIR(false);
11921192
}
11931193

1194-
if (args.hasArg(
1195-
clang::driver::options::OPT_flang_experimental_polymorphism)) {
1196-
invoc.loweringOpts.setPolymorphicTypeImpl(true);
1197-
}
1198-
11991194
// -fno-ppc-native-vector-element-order
12001195
if (args.hasArg(clang::driver::options::OPT_fno_ppc_native_vec_elem_order)) {
12011196
invoc.loweringOpts.setNoPPCNativeVecElemOrder(true);

flang/lib/Lower/CallInterface.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,12 +1050,6 @@ class Fortran::lower::CallInterfaceImpl {
10501050
Fortran::common::TypeCategory cat = dynamicType.category();
10511051
// DERIVED
10521052
if (cat == Fortran::common::TypeCategory::Derived) {
1053-
// TODO is kept under experimental flag until feature is complete.
1054-
if (dynamicType.IsPolymorphic() &&
1055-
!getConverter().getLoweringOptions().getPolymorphicTypeImpl())
1056-
TODO(interface.converter.getCurrentLocation(),
1057-
"support for polymorphic types");
1058-
10591053
if (dynamicType.IsUnlimitedPolymorphic())
10601054
return mlir::NoneType::get(&mlirContext);
10611055
return getConverter().genType(dynamicType.GetDerivedTypeSpec());

flang/lib/Lower/ConvertType.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,6 @@ struct TypeBuilderImpl {
263263
llvm::SmallVector<Fortran::lower::LenParameterTy> params;
264264
translateLenParameters(params, tySpec->category(), ultimate);
265265
ty = genFIRType(context, tySpec->category(), kind, params);
266-
} else if (type->IsPolymorphic() &&
267-
!converter.getLoweringOptions().getPolymorphicTypeImpl()) {
268-
// TODO is kept under experimental flag until feature is complete.
269-
TODO(loc, "support for polymorphic types");
270266
} else if (type->IsUnlimitedPolymorphic()) {
271267
ty = mlir::NoneType::get(context);
272268
} else if (const Fortran::semantics::DerivedTypeSpec *tySpec =

flang/test/Driver/driver-help-hidden.f90

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
! CHECK-NEXT: Do not use HLFIR lowering (deprecated)
5353
! CHECK-NEXT: -flang-experimental-hlfir
5454
! CHECK-NEXT: Use HLFIR lowering (experimental)
55-
! CHECK-NEXT: -flang-experimental-polymorphism
56-
! CHECK-NEXT: Enable Fortran 2003 polymorphism (experimental)
5755
! CHECK-NEXT: -flarge-sizes Use INTEGER(KIND=8) for the result type in size-related intrinsics
5856
! CHECK-NEXT: -flogical-abbreviations Enable logical abbreviations
5957
! CHECK-NEXT: -flto=auto Enable LTO in 'full' mode

flang/test/Driver/flang-experimental-polymorphism-flag.f90

Lines changed: 0 additions & 10 deletions
This file was deleted.

flang/test/Driver/frontend-forwarding.f90

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
! RUN: -fomit-frame-pointer \
1818
! RUN: -fpass-plugin=Bye%pluginext \
1919
! RUN: -fversion-loops-for-stride \
20-
! RUN: -flang-experimental-polymorphism \
2120
! RUN: -flang-experimental-hlfir \
2221
! RUN: -flang-deprecated-no-hlfir \
2322
! RUN: -fno-ppc-native-vector-element-order \
@@ -49,7 +48,6 @@
4948
! CHECK: "-fconvert=little-endian"
5049
! CHECK: "-fpass-plugin=Bye
5150
! CHECK: "-fversion-loops-for-stride"
52-
! CHECK: "-flang-experimental-polymorphism"
5351
! CHECK: "-flang-experimental-hlfir"
5452
! CHECK: "-flang-deprecated-no-hlfir"
5553
! CHECK: "-fno-ppc-native-vector-element-order"

flang/test/Fir/dispatch.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -polymorphic-type -emit-hlfir %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s
2-
! RUN: bbc -polymorphic-type -emit-hlfir %s -o - | FileCheck %s --check-prefix=BT
1+
! RUN: bbc -emit-hlfir %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s
2+
! RUN: bbc -emit-hlfir %s -o - | FileCheck %s --check-prefix=BT
33

44
! Tests codegen of fir.dispatch operation. This test is intentionally run from
55
! Fortran through bbc and tco so we have all the binding tables lowered to FIR

flang/test/HLFIR/assumed-type-actual-args.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test lowering to FIR of actual arguments that are assumed type
22
! variables (Fortran 2018 7.3.2.2 point 3).
3-
! RUN: bbc --polymorphic-type -emit-hlfir -o - %s | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
44

55
subroutine test1(x)
66
interface

flang/test/HLFIR/boxchar_emboxing.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -polymorphic-type -emit-hlfir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-hlfir %s -o - | FileCheck %s
22

33
! CHECK-LABEL: func.func @_QPtest1(
44
! CHECK-SAME: %[[VAL_0:.*]]: !fir.class<none> {fir.bindc_name = "x"}) {

flang/test/HLFIR/call_with_poly_dummy.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -polymorphic-type -emit-hlfir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-hlfir %s -o - | FileCheck %s
22

33
! Test passing arguments to subprograms with polymorphic dummy arguments.
44

flang/test/Lower/HLFIR/actual_target_for_dummy_pointer.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test actual TARGET argument association to dummy POINTER:
2-
! RUN: bbc -emit-hlfir --polymorphic-type -o - -I nowhere %s 2>&1 | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - -I nowhere %s 2>&1 | FileCheck %s
33

44
module target_to_pointer_types
55
type t1

flang/test/Lower/HLFIR/allocatable-return.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-hlfir --polymorphic-type -I nowhere %s -o - | FileCheck %s
1+
! RUN: bbc -emit-hlfir -I nowhere %s -o - | FileCheck %s
22

33
! Test allocatable return.
44
! Allocatable arrays must have default runtime lbounds after the return.

flang/test/Lower/HLFIR/array-ctor-derived.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of derived type array constructors to HLFIR.
2-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
33

44
module types
55
type simple

flang/test/Lower/HLFIR/call-sequence-associated-descriptors.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! Test lowering of sequence associated arguments (F'2023 15.5.2.12) passed
22
! by descriptor. The descriptor on the caller side is prepared according to
33
! the dummy argument shape.
4-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s | FileCheck %s
4+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
55

66
module bindc_seq_assoc
77
interface

flang/test/Lower/HLFIR/calls-assumed-shape.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test lowering of calls involving assumed shape arrays or arrays with
22
! VALUE attribute.
3-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
44

55
subroutine test_assumed_to_assumed(x)
66
interface

flang/test/Lower/HLFIR/calls-constant-expr-arg-polymorphic.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
1+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
22

33
! Test when constant argument are copied in memory
44
! and passed to polymorphic arguments.

flang/test/Lower/HLFIR/calls-optional.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
! that is syntactically present, but may be absent at runtime (is
33
! an optional or a pointer/allocatable).
44
!
5-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s | FileCheck %s
5+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
66

77
subroutine optional_copy_in_out(x)
88
interface

flang/test/Lower/HLFIR/calls-poly-to-assumed-type.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test passing rank 2 CLASS(*) deferred shape to assumed size assumed type
22
! This requires copy-in/copy-out logic.
3-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
44

55
subroutine pass_poly_to_assumed_type_assumed_size(x)
66
class(*), target :: x(:,:)

flang/test/Lower/HLFIR/convert-mbox-to-value.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test conversion of MutableBoxValue to value.
2-
! RUN: bbc -emit-hlfir -polymorphic-type -I nowhere %s -o - | FileCheck %s
2+
! RUN: bbc -emit-hlfir -I nowhere %s -o - | FileCheck %s
33

44
subroutine test_int_allocatable(a)
55
integer, allocatable :: a

flang/test/Lower/HLFIR/designators-component-ref.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of component reference to HLFIR
2-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
33
module comp_ref
44
type t1
55
integer :: scalar_i

flang/test/Lower/HLFIR/designators-parameter-array-slice.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test non-contiguous slice of parameter array.
2-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
33
subroutine test2(i)
44
integer, parameter :: a(*,*) = reshape( [ 1,2,3,4 ], [ 2,2 ])
55
integer :: x(2)

flang/test/Lower/HLFIR/elemental-array-ops.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of elemental intrinsic operations with array arguments to HLFIR
2-
! RUN: bbc -emit-hlfir --polymorphic-type -I nowhere -o - %s 2>&1 | FileCheck %s
2+
! RUN: bbc -emit-hlfir -I nowhere -o - %s 2>&1 | FileCheck %s
33

44
subroutine binary(x, y)
55
integer :: x(100), y(100)

flang/test/Lower/HLFIR/elemental-polymorphic-merge.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test that the produced hlfir.elemental had proper result type and the mold.
2-
! RUN: bbc --emit-hlfir --polymorphic-type -I nowhere -o - %s | FileCheck %s
2+
! RUN: bbc --emit-hlfir -I nowhere -o - %s | FileCheck %s
33

44
subroutine test_polymorphic_merge(x, y, r, m)
55
type t

flang/test/Lower/HLFIR/elemental-user-procedure-ref-polymorphic.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test lowering of user defined elemental procedure reference to HLFIR
22
! With polymorphic arguments.
3-
! RUN: bbc -emit-hlfir -I nw -polymorphic-type -o - %s 2>&1 | FileCheck %s
3+
! RUN: bbc -emit-hlfir -I nw -o - %s 2>&1 | FileCheck %s
44
module def_some_types
55
type :: t
66
integer :: i

flang/test/Lower/HLFIR/function-return-as-expr.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s -I nowhere 2>&1 | FileCheck %s
1+
! RUN: bbc -emit-hlfir -o - %s -I nowhere 2>&1 | FileCheck %s
22

33
module types
44
type t1

flang/test/Lower/HLFIR/function-return-destroy.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-hlfir -polymorphic-type %s -o - -I nowhere | FileCheck %s
1+
! RUN: bbc -emit-hlfir %s -o - -I nowhere | FileCheck %s
22

33
module types
44
type t1

flang/test/Lower/HLFIR/ignore-rank-unlimited-polymorphic.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test passing mismatching rank arguments to unlimited polymorphic
22
! dummy with IGNORE_TKR(R).
3-
! RUN: bbc -emit-hlfir -polymorphic-type -o - -I nowhere %s 2>&1 | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - -I nowhere %s 2>&1 | FileCheck %s
44

55
module m
66
interface

flang/test/Lower/HLFIR/ignore-type-assumed-shape.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
! dummy has IGNORE_TKR(t). The descriptor should be prepared
33
! according to the actual argument type, but its bounds and
44
! attributes should still be set as expected for the dummy.
5-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
5+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
66

77
module tkr_ifaces
88
interface

flang/test/Lower/HLFIR/intentout-allocatable-components.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test that allocatable components of non pointer/non allocatable INTENT(OUT)
22
! dummy arguments are deallocated.
3-
! RUN: bbc -emit-hlfir -polymorphic-type %s -o - -I nowhere | FileCheck %s
3+
! RUN: bbc -emit-hlfir %s -o - -I nowhere | FileCheck %s
44

55
subroutine test_intentout_component_deallocate(a)
66
type :: t

flang/test/Lower/HLFIR/internal-procedures-polymorphic.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test lowering of internal procedure capturing OPTIONAL polymorphic
22
! objects.
3-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s -I nw | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - %s -I nw | FileCheck %s
44

55

66
module captured_optional_polymorphic

flang/test/Lower/HLFIR/intrinsic-assumed-type.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
! arguments. These are a bit special because semantics do not represent
33
! assumed types actual arguments with an evaluate::Expr like for usual
44
! arguments.
5-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
5+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
66

77
subroutine assumed_type_to_intrinsic(a)
88
type(*) :: a(:)

flang/test/Lower/HLFIR/parent-component-ref.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of parent component references to HLFIR.
2-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s -I nw | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s -I nw | FileCheck %s
33

44
module pc_types
55
type t

flang/test/Lower/HLFIR/poly_expr_for_nonpoly_dummy.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test passing polymorphic expression for non-polymorphic contiguous
22
! dummy argument:
3-
! RUN: bbc -emit-hlfir --polymorphic-type -o - -I nowhere %s | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - -I nowhere %s | FileCheck %s
44

55
module types
66
type t

flang/test/Lower/HLFIR/polymorphic-expressions.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s -I nowhere | FileCheck %s
1+
! RUN: bbc -emit-hlfir -o - %s -I nowhere | FileCheck %s
22

33
module polymorphic_expressions_types
44
type t

flang/test/Lower/HLFIR/proc-pointer-comp-nopass.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of NOPASS procedure pointers components.
2-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
33

44
module proc_comp_defs
55
interface

flang/test/Lower/HLFIR/proc-pointer-comp-pass.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of PASS procedure pointers components.
2-
! RUN: bbc -emit-hlfir -polymorphic-type -o - %s | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
33

44
module m
55
type t

flang/test/Lower/HLFIR/select-type-selector.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
! (16.9.109) applied to the corresponding dimension of selector. The upper bound of each dimension is one less
1515
! than the sum of the lower bound and the extent.
1616

17-
! RUN: bbc -emit-hlfir -polymorphic-type -I nowhere -o - %s | FileCheck %s
17+
! RUN: bbc -emit-hlfir -I nowhere -o - %s | FileCheck %s
1818

1919
subroutine test()
2020
type t

flang/test/Lower/HLFIR/transpose.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test lowering of TRANSPOSE intrinsic to HLFIR
2-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s 2>&1 | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s 2>&1 | FileCheck %s
33

44
subroutine transpose1(m, res)
55
integer :: m(1,2), res(2, 1)

flang/test/Lower/HLFIR/type-bound-call-mismatch.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test interface that lowering handles small interface mismatch with
22
! type bound procedures.
3-
! RUN: bbc -emit-hlfir --polymorphic-type %s -o - -I nw | FileCheck %s
3+
! RUN: bbc -emit-hlfir %s -o - -I nw | FileCheck %s
44

55
module dispatch_mismatch
66
type t

flang/test/Lower/HLFIR/vector-subscript-as-value.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Test lowering of vector subscript designators outside of the
22
! assignment left-and side and input IO context.
3-
! RUN: bbc -emit-hlfir -o - -I nw %s --polymorphic-type 2>&1 | FileCheck %s
3+
! RUN: bbc -emit-hlfir -o - -I nw %s 2>&1 | FileCheck %s
44

55
subroutine foo(x, y)
66
integer :: x(100)

flang/test/Lower/Intrinsics/extends_type_of.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
module extends_type_of_mod
44

flang/test/Lower/Intrinsics/same_type_as.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
module same_type_as_mod
44

flang/test/Lower/Intrinsics/sizeof.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test SIZEOF lowering for polymorphic entities.
2-
! RUN: bbc -emit-hlfir --polymorphic-type -o - %s | FileCheck %s
2+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
33

44
integer(8) function test1(x)
55
class(*) :: x

flang/test/Lower/Intrinsics/spread.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
module spread_mod
44

flang/test/Lower/Intrinsics/storage_size.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
module storage_size_test
44
type :: p1

flang/test/Lower/allocatable-polymorphic.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-hlfir %s -o - | FileCheck %s
2-
! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-hlfir %s -o - | tco | FileCheck %s --check-prefix=LLVM
1+
! RUN: bbc --use-desc-for-alloc=false -emit-hlfir %s -o - | FileCheck %s
2+
! RUN: bbc --use-desc-for-alloc=false -emit-hlfir %s -o - | tco | FileCheck %s --check-prefix=LLVM
33

44
module poly
55
type p1

flang/test/Lower/allocatable-return.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -hlfir=false --polymorphic-type -I nowhere %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false -I nowhere %s -o - | FileCheck %s
22

33
! Test allocatable return.
44
! Allocatable arrays must have default runtime lbounds after the return.

0 commit comments

Comments
 (0)