
This change introduces the cir-canonicalize pass. This is a simple cir-to-cir transformation that eliminates empty scopes and redundant branches. It will be expanded in future changes to simplify other redundant instruction sequences. MLIR verification and mlir-specific command-line option handling is also introduced here.
13 lines
807 B
C
13 lines
807 B
C
// Clang returns 1 when wrong arguments are given.
|
|
// RUN: not %clang_cc1 -mmlir -mlir-disable-threadingd -mmlir -mlir-print-op-genericd 2>&1 | FileCheck %s --check-prefix=WRONG
|
|
// Test that the driver can pass mlir args to cc1.
|
|
// RUN: %clang -### -mmlir -mlir-disable-threading %s 2>&1 | FileCheck %s --check-prefix=CC1
|
|
|
|
|
|
// WRONG: clang (MLIR option parsing): Unknown command line argument '-mlir-disable-threadingd'. Try: 'clang (MLIR option parsing) --help'
|
|
// WRONG: clang (MLIR option parsing): Did you mean '--mlir-disable-threading'?
|
|
// WRONG: clang (MLIR option parsing): Unknown command line argument '-mlir-print-op-genericd'. Try: 'clang (MLIR option parsing) --help'
|
|
// WRONG: clang (MLIR option parsing): Did you mean '--mlir-print-op-generic'?
|
|
|
|
// CC1: "-mmlir" "-mlir-disable-threading"
|