Skip to content

Commit 5edb129

Browse files
committed
Add -emit-fir as an alias for -emit-mlir
1 parent b644302 commit 5edb129

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4470,6 +4470,7 @@ def fintrinsic_modules_path : Separate<["-"], "fintrinsic-modules-path">, Group
44704470

44714471
def emit_mlir : Flag<["-"], "emit-mlir">, Group<Action_Group>,
44724472
HelpText<"Build the parse tree, then lower it to MLIR and dump">;
4473+
def emit_fir : Flag<["-"], "emit-fir">, Alias<emit_mlir>;
44734474
}
44744475

44754476
def J : JoinedOrSeparate<["-"], "J">,

flang/test/Driver/emit-fir.f90 renamed to flang/test/Driver/emit-mlir.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
! RUN: %flang_fc1 -emit-mlir %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
23

34
! CHECK: module attributes {
45
! CHECK-LABEL: func @_QQmain() {

0 commit comments

Comments
 (0)