Index: test/CodeGen/MIR/AArch64/cfi-def-cfa.mir =================================================================== --- test/CodeGen/MIR/AArch64/cfi-def-cfa.mir +++ test/CodeGen/MIR/AArch64/cfi-def-cfa.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=aarch64-none-linux-gnu -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the .cfi_def_cfa operands # correctly. Index: test/CodeGen/MIR/AArch64/expected-target-flag-name.mir =================================================================== --- test/CodeGen/MIR/AArch64/expected-target-flag-name.mir +++ test/CodeGen/MIR/AArch64/expected-target-flag-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -mtriple=aarch64-none-linux-gnu -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -mtriple=aarch64-none-linux-gnu -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir =================================================================== --- test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir +++ test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -mtriple=aarch64-apple-ios -start-after machine-sink -stop-after machine-sink -o - %s 2> %t.log \ +# RUN: not llc -mtriple=aarch64-apple-ios -run-pass none -o - %s 2> %t.log \ # RUN: | FileCheck %s --check-prefix=CHECK # RUN: FileCheck %s -input-file=%t.log --check-prefix=ERR # RUN: rm -f %t.log Index: test/CodeGen/MIR/AArch64/invalid-target-flag-name.mir =================================================================== --- test/CodeGen/MIR/AArch64/invalid-target-flag-name.mir +++ test/CodeGen/MIR/AArch64/invalid-target-flag-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -mtriple=aarch64-none-linux-gnu -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -mtriple=aarch64-none-linux-gnu -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/AArch64/multiple-lhs-operands.mir =================================================================== --- test/CodeGen/MIR/AArch64/multiple-lhs-operands.mir +++ test/CodeGen/MIR/AArch64/multiple-lhs-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=aarch64-none-linux-gnu -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser can parse multiple register machine # operands before '='. Index: test/CodeGen/MIR/AArch64/stack-object-local-offset.mir =================================================================== --- test/CodeGen/MIR/AArch64/stack-object-local-offset.mir +++ test/CodeGen/MIR/AArch64/stack-object-local-offset.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=aarch64-none-linux-gnu -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s --- | @var = global i64 0 Index: test/CodeGen/MIR/AArch64/target-flags.mir =================================================================== --- test/CodeGen/MIR/AArch64/target-flags.mir +++ test/CodeGen/MIR/AArch64/target-flags.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=aarch64-none-linux-gnu -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s --- | Index: test/CodeGen/MIR/AMDGPU/expected-target-index-name.mir =================================================================== --- test/CodeGen/MIR/AMDGPU/expected-target-index-name.mir +++ test/CodeGen/MIR/AMDGPU/expected-target-index-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=amdgcn -mcpu=SI -start-after postrapseudos -stop-after postrapseudos -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=amdgcn -mcpu=SI -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir =================================================================== --- test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir +++ test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=amdgcn -mcpu=SI -start-after postrapseudos -stop-after postrapseudos -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=amdgcn -mcpu=SI -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/AMDGPU/target-index-operands.mir =================================================================== --- test/CodeGen/MIR/AMDGPU/target-index-operands.mir +++ test/CodeGen/MIR/AMDGPU/target-index-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -mcpu=SI -start-after postrapseudos -stop-after postrapseudos -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -mcpu=SI -run-pass none -o - %s | FileCheck %s # This test verifies that the MIR parser can parse target index operands. --- | Index: test/CodeGen/MIR/ARM/bundled-instructions.mir =================================================================== --- test/CodeGen/MIR/ARM/bundled-instructions.mir +++ test/CodeGen/MIR/ARM/bundled-instructions.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple thumbv7-apple-ios -start-after block-placement -stop-after block-placement -o - %s | FileCheck %s +# RUN: llc -mtriple thumbv7-apple-ios -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the bundled machine instructions # and 'internal' register flags correctly. Index: test/CodeGen/MIR/ARM/cfi-same-value.mir =================================================================== --- test/CodeGen/MIR/ARM/cfi-same-value.mir +++ test/CodeGen/MIR/ARM/cfi-same-value.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=arm-linux-unknown-gnueabi -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -mtriple=arm-linux-unknown-gnueabi -run-pass none -o - %s | FileCheck %s --- | declare void @dummy_use(i32*, i32) Index: test/CodeGen/MIR/ARM/expected-closing-brace.mir =================================================================== --- test/CodeGen/MIR/ARM/expected-closing-brace.mir +++ test/CodeGen/MIR/ARM/expected-closing-brace.mir @@ -1,4 +1,4 @@ -# RUN: not llc -mtriple thumbv7-apple-ios -start-after block-placement -stop-after block-placement -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -mtriple thumbv7-apple-ios -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | @G = external global i32 Index: test/CodeGen/MIR/ARM/extraneous-closing-brace-error.mir =================================================================== --- test/CodeGen/MIR/ARM/extraneous-closing-brace-error.mir +++ test/CodeGen/MIR/ARM/extraneous-closing-brace-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -mtriple thumbv7-apple-ios -start-after block-placement -stop-after block-placement -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -mtriple thumbv7-apple-ios -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test1(i32 %a) { Index: test/CodeGen/MIR/ARM/nested-instruction-bundle-error.mir =================================================================== --- test/CodeGen/MIR/ARM/nested-instruction-bundle-error.mir +++ test/CodeGen/MIR/ARM/nested-instruction-bundle-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -mtriple thumbv7-apple-ios -start-after block-placement -stop-after block-placement -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -mtriple thumbv7-apple-ios -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test1(i32 %a) { Index: test/CodeGen/MIR/Generic/basic-blocks.mir =================================================================== --- test/CodeGen/MIR/Generic/basic-blocks.mir +++ test/CodeGen/MIR/Generic/basic-blocks.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses machine functions correctly. --- | Index: test/CodeGen/MIR/Generic/expected-colon-after-basic-block.mir =================================================================== --- test/CodeGen/MIR/Generic/expected-colon-after-basic-block.mir +++ test/CodeGen/MIR/Generic/expected-colon-after-basic-block.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/Generic/expected-mbb-reference-for-successor-mbb.mir =================================================================== --- test/CodeGen/MIR/Generic/expected-mbb-reference-for-successor-mbb.mir +++ test/CodeGen/MIR/Generic/expected-mbb-reference-for-successor-mbb.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/Generic/frame-info.mir =================================================================== --- test/CodeGen/MIR/Generic/frame-info.mir +++ test/CodeGen/MIR/Generic/frame-info.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses machine frame info properties # correctly. Index: test/CodeGen/MIR/Generic/function-missing-machine-function.mir =================================================================== --- test/CodeGen/MIR/Generic/function-missing-machine-function.mir +++ test/CodeGen/MIR/Generic/function-missing-machine-function.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test verifies that an error is reported when a MIR file has some # function but is missing a corresponding machine function. Index: test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir =================================================================== --- test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir +++ test/CodeGen/MIR/Generic/invalid-jump-table-kind.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir =================================================================== --- test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir +++ test/CodeGen/MIR/Generic/llvm-ir-error-reported.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures an error is reported if the embedded LLVM IR contains an # error. Index: test/CodeGen/MIR/Generic/llvmIR.mir =================================================================== --- test/CodeGen/MIR/Generic/llvmIR.mir +++ test/CodeGen/MIR/Generic/llvmIR.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -run-pass none -o - %s | FileCheck %s # This test ensures that the LLVM IR that's embedded with MIR is parsed # correctly. Index: test/CodeGen/MIR/Generic/llvmIRMissing.mir =================================================================== --- test/CodeGen/MIR/Generic/llvmIRMissing.mir +++ test/CodeGen/MIR/Generic/llvmIRMissing.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s 2>&1 | FileCheck %s +# RUN: llc -run-pass none -o - %s 2>&1 | FileCheck %s # This test ensures that the MIR parser accepts files without the LLVM IR. --- Index: test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir +++ test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s 2>&1 | FileCheck %s +# RUN: llc -run-pass none -o - %s 2>&1 | FileCheck %s # This test ensures that the MIR parser preserves unnamed LLVM IR block # references. Index: test/CodeGen/MIR/Generic/machine-basic-block-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-basic-block-redefinition-error.mir +++ test/CodeGen/MIR/Generic/machine-basic-block-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/Generic/machine-basic-block-undefined-ir-block.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-basic-block-undefined-ir-block.mir +++ test/CodeGen/MIR/Generic/machine-basic-block-undefined-ir-block.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/Generic/machine-basic-block-unknown-name.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-basic-block-unknown-name.mir +++ test/CodeGen/MIR/Generic/machine-basic-block-unknown-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported whenever the MIR parser can't find # a basic block with the machine basis block's name. Index: test/CodeGen/MIR/Generic/machine-function-missing-body-error.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-function-missing-body-error.mir +++ test/CodeGen/MIR/Generic/machine-function-missing-body-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when it encounters a # machine function with an empty body. Index: test/CodeGen/MIR/Generic/machine-function-missing-function.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-function-missing-function.mir +++ test/CodeGen/MIR/Generic/machine-function-missing-function.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when the mir file has LLVM IR and # one of the machine functions has a name that doesn't match any function in # the LLVM IR. Index: test/CodeGen/MIR/Generic/machine-function-missing-name.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-function-missing-name.mir +++ test/CodeGen/MIR/Generic/machine-function-missing-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when a machine function doesn't # have a name attribute. Index: test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir +++ test/CodeGen/MIR/Generic/machine-function-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the machine function errors are reported correctly. --- Index: test/CodeGen/MIR/Generic/machine-function.mir =================================================================== --- test/CodeGen/MIR/Generic/machine-function.mir +++ test/CodeGen/MIR/Generic/machine-function.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses machine functions correctly. --- | Index: test/CodeGen/MIR/Generic/register-info.mir =================================================================== --- test/CodeGen/MIR/Generic/register-info.mir +++ test/CodeGen/MIR/Generic/register-info.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses machine register info properties # correctly. Index: test/CodeGen/MIR/Mips/expected-global-value-or-symbol-after-call-entry.mir =================================================================== --- test/CodeGen/MIR/Mips/expected-global-value-or-symbol-after-call-entry.mir +++ test/CodeGen/MIR/Mips/expected-global-value-or-symbol-after-call-entry.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=mipsel -mattr=mips16 -relocation-model=pic -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=mipsel -mattr=mips16 -relocation-model=pic -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test(i32 %a) { entry: Index: test/CodeGen/MIR/Mips/memory-operands.mir =================================================================== --- test/CodeGen/MIR/Mips/memory-operands.mir +++ test/CodeGen/MIR/Mips/memory-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the call entry pseudo source # values in memory operands correctly. Index: test/CodeGen/MIR/NVPTX/expected-floating-point-literal.mir =================================================================== --- test/CodeGen/MIR/NVPTX/expected-floating-point-literal.mir +++ test/CodeGen/MIR/NVPTX/expected-floating-point-literal.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=nvptx -mcpu=sm_20 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=nvptx -mcpu=sm_20 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/NVPTX/floating-point-immediate-operands.mir =================================================================== --- test/CodeGen/MIR/NVPTX/floating-point-immediate-operands.mir +++ test/CodeGen/MIR/NVPTX/floating-point-immediate-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=nvptx -mcpu=sm_20 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=nvptx -mcpu=sm_20 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses floating point constant operands # correctly. Index: test/CodeGen/MIR/NVPTX/floating-point-invalid-type-error.mir =================================================================== --- test/CodeGen/MIR/NVPTX/floating-point-invalid-type-error.mir +++ test/CodeGen/MIR/NVPTX/floating-point-invalid-type-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=nvptx -mcpu=sm_20 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=nvptx -mcpu=sm_20 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/PowerPC/unordered-implicit-registers.mir =================================================================== --- test/CodeGen/MIR/PowerPC/unordered-implicit-registers.mir +++ test/CodeGen/MIR/PowerPC/unordered-implicit-registers.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=powerpc64-unknown-linux-gnu -start-after machine-combiner -stop-after machine-combiner -o - %s | FileCheck %s +# RUN: llc -mtriple=powerpc64-unknown-linux-gnu -run-pass none -o - %s | FileCheck %s # PR24724 --- | Index: test/CodeGen/MIR/X86/basic-block-liveins.mir =================================================================== --- test/CodeGen/MIR/X86/basic-block-liveins.mir +++ test/CodeGen/MIR/X86/basic-block-liveins.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses basic block liveins correctly. --- | Index: test/CodeGen/MIR/X86/basic-block-not-at-start-of-line-error.mir =================================================================== --- test/CodeGen/MIR/X86/basic-block-not-at-start-of-line-error.mir +++ test/CodeGen/MIR/X86/basic-block-not-at-start-of-line-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/block-address-operands.mir =================================================================== --- test/CodeGen/MIR/X86/block-address-operands.mir +++ test/CodeGen/MIR/X86/block-address-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the block address operands # correctly. Index: test/CodeGen/MIR/X86/callee-saved-info.mir =================================================================== --- test/CodeGen/MIR/X86/callee-saved-info.mir +++ test/CodeGen/MIR/X86/callee-saved-info.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after prologepilog -stop-after prologepilog -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses callee saved information in the # stack objects correctly. Index: test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir =================================================================== --- test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir +++ test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the .cfi_def_cfa_offset operands # correctly. Index: test/CodeGen/MIR/X86/cfi-def-cfa-register.mir =================================================================== --- test/CodeGen/MIR/X86/cfi-def-cfa-register.mir +++ test/CodeGen/MIR/X86/cfi-def-cfa-register.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the .cfi_def_cfa_register # operands correctly. Index: test/CodeGen/MIR/X86/cfi-offset.mir =================================================================== --- test/CodeGen/MIR/X86/cfi-offset.mir +++ test/CodeGen/MIR/X86/cfi-offset.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the .cfi_offset operands # correctly. Index: test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir +++ test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/constant-pool.mir =================================================================== --- test/CodeGen/MIR/X86/constant-pool.mir +++ test/CodeGen/MIR/X86/constant-pool.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses constant pool constants and # constant pool operands correctly. Index: test/CodeGen/MIR/X86/constant-value-error.mir =================================================================== --- test/CodeGen/MIR/X86/constant-value-error.mir +++ test/CodeGen/MIR/X86/constant-value-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when parsing an invalid # constant value. Index: test/CodeGen/MIR/X86/dead-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/dead-register-flag.mir +++ test/CodeGen/MIR/X86/dead-register-flag.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the 'dead' register flags # correctly. Index: test/CodeGen/MIR/X86/def-register-already-tied-error.mir =================================================================== --- test/CodeGen/MIR/X86/def-register-already-tied-error.mir +++ test/CodeGen/MIR/X86/def-register-already-tied-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i64 @test(i64 %x) #0 { entry: Index: test/CodeGen/MIR/X86/duplicate-memory-operand-flag.mir =================================================================== --- test/CodeGen/MIR/X86/duplicate-memory-operand-flag.mir +++ test/CodeGen/MIR/X86/duplicate-memory-operand-flag.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/duplicate-register-flag-error.mir =================================================================== --- test/CodeGen/MIR/X86/duplicate-register-flag-error.mir +++ test/CodeGen/MIR/X86/duplicate-register-flag-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/early-clobber-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/early-clobber-register-flag.mir +++ test/CodeGen/MIR/X86/early-clobber-register-flag.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the 'early-clobber' register # flags correctly. Index: test/CodeGen/MIR/X86/expected-align-in-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-align-in-memory-operand.mir +++ test/CodeGen/MIR/X86/expected-align-in-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-alignment-after-align-in-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-alignment-after-align-in-memory-operand.mir +++ test/CodeGen/MIR/X86/expected-alignment-after-align-in-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-basic-block-at-start-of-body.mir =================================================================== --- test/CodeGen/MIR/X86/expected-basic-block-at-start-of-body.mir +++ test/CodeGen/MIR/X86/expected-basic-block-at-start-of-body.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-block-reference-in-blockaddress.mir =================================================================== --- test/CodeGen/MIR/X86/expected-block-reference-in-blockaddress.mir +++ test/CodeGen/MIR/X86/expected-block-reference-in-blockaddress.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir =================================================================== --- test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir +++ test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-comma-after-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-comma-after-memory-operand.mir +++ test/CodeGen/MIR/X86/expected-comma-after-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-different-implicit-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-different-implicit-operand.mir +++ test/CodeGen/MIR/X86/expected-different-implicit-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-different-implicit-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/expected-different-implicit-register-flag.mir +++ test/CodeGen/MIR/X86/expected-different-implicit-register-flag.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-function-reference-after-blockaddress.mir =================================================================== --- test/CodeGen/MIR/X86/expected-function-reference-after-blockaddress.mir +++ test/CodeGen/MIR/X86/expected-function-reference-after-blockaddress.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-global-value-after-blockaddress.mir =================================================================== --- test/CodeGen/MIR/X86/expected-global-value-after-blockaddress.mir +++ test/CodeGen/MIR/X86/expected-global-value-after-blockaddress.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-integer-after-offset-sign.mir =================================================================== --- test/CodeGen/MIR/X86/expected-integer-after-offset-sign.mir +++ test/CodeGen/MIR/X86/expected-integer-after-offset-sign.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-integer-after-tied-def.mir =================================================================== --- test/CodeGen/MIR/X86/expected-integer-after-tied-def.mir +++ test/CodeGen/MIR/X86/expected-integer-after-tied-def.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i64 @test(i64 %x) #0 { entry: Index: test/CodeGen/MIR/X86/expected-integer-in-successor-weight.mir =================================================================== --- test/CodeGen/MIR/X86/expected-integer-in-successor-weight.mir +++ test/CodeGen/MIR/X86/expected-integer-in-successor-weight.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-load-or-store-in-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-load-or-store-in-memory-operand.mir +++ test/CodeGen/MIR/X86/expected-load-or-store-in-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-machine-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-machine-operand.mir +++ test/CodeGen/MIR/X86/expected-machine-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-metadata-node-after-debug-location.mir =================================================================== --- test/CodeGen/MIR/X86/expected-metadata-node-after-debug-location.mir +++ test/CodeGen/MIR/X86/expected-metadata-node-after-debug-location.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-metadata-node-after-exclaim.mir =================================================================== --- test/CodeGen/MIR/X86/expected-metadata-node-after-exclaim.mir +++ test/CodeGen/MIR/X86/expected-metadata-node-after-exclaim.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-metadata-node-in-stack-object.mir =================================================================== --- test/CodeGen/MIR/X86/expected-metadata-node-in-stack-object.mir +++ test/CodeGen/MIR/X86/expected-metadata-node-in-stack-object.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test(i32 %x) { entry: Index: test/CodeGen/MIR/X86/expected-named-register-in-allocation-hint.mir =================================================================== --- test/CodeGen/MIR/X86/expected-named-register-in-allocation-hint.mir +++ test/CodeGen/MIR/X86/expected-named-register-in-allocation-hint.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-scheduler -stop-after machine-scheduler -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-named-register-in-callee-saved-register.mir =================================================================== --- test/CodeGen/MIR/X86/expected-named-register-in-callee-saved-register.mir +++ test/CodeGen/MIR/X86/expected-named-register-in-callee-saved-register.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after prologepilog -stop-after prologepilog -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-named-register-in-functions-livein.mir =================================================================== --- test/CodeGen/MIR/X86/expected-named-register-in-functions-livein.mir +++ test/CodeGen/MIR/X86/expected-named-register-in-functions-livein.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-named-register-livein.mir =================================================================== --- test/CodeGen/MIR/X86/expected-named-register-livein.mir +++ test/CodeGen/MIR/X86/expected-named-register-livein.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-newline-at-end-of-list.mir =================================================================== --- test/CodeGen/MIR/X86/expected-newline-at-end-of-list.mir +++ test/CodeGen/MIR/X86/expected-newline-at-end-of-list.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-number-after-bb.mir =================================================================== --- test/CodeGen/MIR/X86/expected-number-after-bb.mir +++ test/CodeGen/MIR/X86/expected-number-after-bb.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir +++ test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-pointer-value-in-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-pointer-value-in-memory-operand.mir +++ test/CodeGen/MIR/X86/expected-pointer-value-in-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-positive-alignment-after-align.mir =================================================================== --- test/CodeGen/MIR/X86/expected-positive-alignment-after-align.mir +++ test/CodeGen/MIR/X86/expected-positive-alignment-after-align.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir +++ test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-register-after-flags.mir =================================================================== --- test/CodeGen/MIR/X86/expected-register-after-flags.mir +++ test/CodeGen/MIR/X86/expected-register-after-flags.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when a register operand doesn't # follow register flags. Index: test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir =================================================================== --- test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir +++ test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-stack-object.mir =================================================================== --- test/CodeGen/MIR/X86/expected-stack-object.mir +++ test/CodeGen/MIR/X86/expected-stack-object.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-subregister-after-colon.mir =================================================================== --- test/CodeGen/MIR/X86/expected-subregister-after-colon.mir +++ test/CodeGen/MIR/X86/expected-subregister-after-colon.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-target-flag-name.mir =================================================================== --- test/CodeGen/MIR/X86/expected-target-flag-name.mir +++ test/CodeGen/MIR/X86/expected-target-flag-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-tied-def-after-lparen.mir =================================================================== --- test/CodeGen/MIR/X86/expected-tied-def-after-lparen.mir +++ test/CodeGen/MIR/X86/expected-tied-def-after-lparen.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i64 @test(i64 %x) #0 { entry: Index: test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir +++ test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/expected-virtual-register-in-functions-livein.mir =================================================================== --- test/CodeGen/MIR/X86/expected-virtual-register-in-functions-livein.mir +++ test/CodeGen/MIR/X86/expected-virtual-register-in-functions-livein.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/external-symbol-operands.mir =================================================================== --- test/CodeGen/MIR/X86/external-symbol-operands.mir +++ test/CodeGen/MIR/X86/external-symbol-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the external symbol machine # operands correctly. Index: test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir =================================================================== --- test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir +++ test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses fixed stack memory operands # correctly. Index: test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir +++ test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/fixed-stack-objects.mir =================================================================== --- test/CodeGen/MIR/X86/fixed-stack-objects.mir +++ test/CodeGen/MIR/X86/fixed-stack-objects.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses fixed stack objects correctly. --- | Index: test/CodeGen/MIR/X86/frame-info-save-restore-points.mir =================================================================== --- test/CodeGen/MIR/X86/frame-info-save-restore-points.mir +++ test/CodeGen/MIR/X86/frame-info-save-restore-points.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -enable-shrink-wrap=true -start-after shrink-wrap -stop-after shrink-wrap -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the save and restore points in # the machine frame info correctly. Index: test/CodeGen/MIR/X86/frame-info-stack-references.mir =================================================================== --- test/CodeGen/MIR/X86/frame-info-stack-references.mir +++ test/CodeGen/MIR/X86/frame-info-stack-references.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the stack protector stack # object reference in the machine frame info correctly. Index: test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir =================================================================== --- test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir +++ test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the frame setup instruction flag. --- | Index: test/CodeGen/MIR/X86/function-liveins.mir =================================================================== --- test/CodeGen/MIR/X86/function-liveins.mir +++ test/CodeGen/MIR/X86/function-liveins.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses machine function's liveins # correctly. Index: test/CodeGen/MIR/X86/generic-instr-type-error.mir =================================================================== --- test/CodeGen/MIR/X86/generic-instr-type-error.mir +++ test/CodeGen/MIR/X86/generic-instr-type-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser report an error for # opaque types used on generic instruction. Index: test/CodeGen/MIR/X86/generic-virtual-registers.mir =================================================================== --- test/CodeGen/MIR/X86/generic-virtual-registers.mir +++ test/CodeGen/MIR/X86/generic-virtual-registers.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # REQUIRES: global-isel # This test ensures that the MIR parser parses generic virtual # register definitions correctly. Index: test/CodeGen/MIR/X86/global-value-operands.mir =================================================================== --- test/CodeGen/MIR/X86/global-value-operands.mir +++ test/CodeGen/MIR/X86/global-value-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses global value operands correctly. --- | Index: test/CodeGen/MIR/X86/immediate-operands.mir =================================================================== --- test/CodeGen/MIR/X86/immediate-operands.mir +++ test/CodeGen/MIR/X86/immediate-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses immediate machine operands. --- | Index: test/CodeGen/MIR/X86/implicit-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/implicit-register-flag.mir +++ test/CodeGen/MIR/X86/implicit-register-flag.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the 'implicit' and 'implicit-def' # register flags correctly. Index: test/CodeGen/MIR/X86/inline-asm-registers.mir =================================================================== --- test/CodeGen/MIR/X86/inline-asm-registers.mir +++ test/CodeGen/MIR/X86/inline-asm-registers.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after block-placement -stop-after block-placement -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s --- | define i64 @test(i64 %x, i64 %y) #0 { Index: test/CodeGen/MIR/X86/instructions-debug-location.mir =================================================================== --- test/CodeGen/MIR/X86/instructions-debug-location.mir +++ test/CodeGen/MIR/X86/instructions-debug-location.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the machine instruction's # debug location metadata correctly. Index: test/CodeGen/MIR/X86/invalid-constant-pool-item.mir =================================================================== --- test/CodeGen/MIR/X86/invalid-constant-pool-item.mir +++ test/CodeGen/MIR/X86/invalid-constant-pool-item.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when parsing an invalid # constant pool item operand. Index: test/CodeGen/MIR/X86/invalid-metadata-node-type.mir =================================================================== --- test/CodeGen/MIR/X86/invalid-metadata-node-type.mir +++ test/CodeGen/MIR/X86/invalid-metadata-node-type.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | declare void @llvm.dbg.declare(metadata, metadata, metadata) #0 Index: test/CodeGen/MIR/X86/invalid-target-flag-name.mir =================================================================== --- test/CodeGen/MIR/X86/invalid-target-flag-name.mir +++ test/CodeGen/MIR/X86/invalid-target-flag-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/invalid-tied-def-index-error.mir =================================================================== --- test/CodeGen/MIR/X86/invalid-tied-def-index-error.mir +++ test/CodeGen/MIR/X86/invalid-tied-def-index-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i64 @test(i64 %x) #0 { entry: Index: test/CodeGen/MIR/X86/jump-table-info.mir =================================================================== --- test/CodeGen/MIR/X86/jump-table-info.mir +++ test/CodeGen/MIR/X86/jump-table-info.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the jump table info and jump # table operands correctly. Index: test/CodeGen/MIR/X86/jump-table-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/X86/jump-table-redefinition-error.mir +++ test/CodeGen/MIR/X86/jump-table-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/killed-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/killed-register-flag.mir +++ test/CodeGen/MIR/X86/killed-register-flag.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the 'killed' register flags # correctly. Index: test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir =================================================================== --- test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir +++ test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/large-immediate-operand-error.mir =================================================================== --- test/CodeGen/MIR/X86/large-immediate-operand-error.mir +++ test/CodeGen/MIR/X86/large-immediate-operand-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/large-index-number-error.mir =================================================================== --- test/CodeGen/MIR/X86/large-index-number-error.mir +++ test/CodeGen/MIR/X86/large-index-number-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/large-offset-number-error.mir =================================================================== --- test/CodeGen/MIR/X86/large-offset-number-error.mir +++ test/CodeGen/MIR/X86/large-offset-number-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/large-size-in-memory-operand-error.mir =================================================================== --- test/CodeGen/MIR/X86/large-size-in-memory-operand-error.mir +++ test/CodeGen/MIR/X86/large-size-in-memory-operand-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/liveout-register-mask.mir =================================================================== --- test/CodeGen/MIR/X86/liveout-register-mask.mir +++ test/CodeGen/MIR/X86/liveout-register-mask.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after stackmap-liveness -stop-after stackmap-liveness -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the liveout register mask # machine operands correctly. Index: test/CodeGen/MIR/X86/machine-basic-block-operands.mir =================================================================== --- test/CodeGen/MIR/X86/machine-basic-block-operands.mir +++ test/CodeGen/MIR/X86/machine-basic-block-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses machine basic block operands. --- | Index: test/CodeGen/MIR/X86/machine-instructions.mir =================================================================== --- test/CodeGen/MIR/X86/machine-instructions.mir +++ test/CodeGen/MIR/X86/machine-instructions.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses X86 machine instructions # correctly. Index: test/CodeGen/MIR/X86/machine-verifier.mir =================================================================== --- test/CodeGen/MIR/X86/machine-verifier.mir +++ test/CodeGen/MIR/X86/machine-verifier.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser runs the machine verifier after parsing. --- | Index: test/CodeGen/MIR/X86/memory-operands.mir =================================================================== --- test/CodeGen/MIR/X86/memory-operands.mir +++ test/CodeGen/MIR/X86/memory-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the machine memory operands # correctly. Index: test/CodeGen/MIR/X86/metadata-operands.mir =================================================================== --- test/CodeGen/MIR/X86/metadata-operands.mir +++ test/CodeGen/MIR/X86/metadata-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the metadata machine operands # correctly. Index: test/CodeGen/MIR/X86/missing-closing-quote.mir =================================================================== --- test/CodeGen/MIR/X86/missing-closing-quote.mir +++ test/CodeGen/MIR/X86/missing-closing-quote.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/missing-comma.mir =================================================================== --- test/CodeGen/MIR/X86/missing-comma.mir +++ test/CodeGen/MIR/X86/missing-comma.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/missing-implicit-operand.mir =================================================================== --- test/CodeGen/MIR/X86/missing-implicit-operand.mir +++ test/CodeGen/MIR/X86/missing-implicit-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when an instruction # is missing one of its implicit register operands. Index: test/CodeGen/MIR/X86/named-registers.mir =================================================================== --- test/CodeGen/MIR/X86/named-registers.mir +++ test/CodeGen/MIR/X86/named-registers.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses X86 registers correctly. --- | Index: test/CodeGen/MIR/X86/newline-handling.mir =================================================================== --- test/CodeGen/MIR/X86/newline-handling.mir +++ test/CodeGen/MIR/X86/newline-handling.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s --- | Index: test/CodeGen/MIR/X86/null-register-operands.mir =================================================================== --- test/CodeGen/MIR/X86/null-register-operands.mir +++ test/CodeGen/MIR/X86/null-register-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses null register operands correctly. --- | Index: test/CodeGen/MIR/X86/register-mask-operands.mir =================================================================== --- test/CodeGen/MIR/X86/register-mask-operands.mir +++ test/CodeGen/MIR/X86/register-mask-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses register mask operands correctly. --- | Index: test/CodeGen/MIR/X86/register-operands-target-flag-error.mir =================================================================== --- test/CodeGen/MIR/X86/register-operands-target-flag-error.mir +++ test/CodeGen/MIR/X86/register-operands-target-flag-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/simple-register-allocation-hints.mir =================================================================== --- test/CodeGen/MIR/X86/simple-register-allocation-hints.mir +++ test/CodeGen/MIR/X86/simple-register-allocation-hints.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-scheduler -stop-after machine-scheduler -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses simple register allocation hints # correctly. Index: test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir =================================================================== --- test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir +++ test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir =================================================================== --- test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir +++ test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/spill-slot-fixed-stack-objects.mir =================================================================== --- test/CodeGen/MIR/X86/spill-slot-fixed-stack-objects.mir +++ test/CodeGen/MIR/X86/spill-slot-fixed-stack-objects.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses fixed stack objects correctly. --- | Index: test/CodeGen/MIR/X86/stack-object-debug-info.mir =================================================================== --- test/CodeGen/MIR/X86/stack-object-debug-info.mir +++ test/CodeGen/MIR/X86/stack-object-debug-info.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the stack object's debug info # correctly. --- | Index: test/CodeGen/MIR/X86/stack-object-invalid-name.mir =================================================================== --- test/CodeGen/MIR/X86/stack-object-invalid-name.mir +++ test/CodeGen/MIR/X86/stack-object-invalid-name.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when it encounters a # stack object with a name that can't be associated with an alloca instruction. Index: test/CodeGen/MIR/X86/stack-object-operand-name-mismatch-error.mir =================================================================== --- test/CodeGen/MIR/X86/stack-object-operand-name-mismatch-error.mir +++ test/CodeGen/MIR/X86/stack-object-operand-name-mismatch-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an stack object reference # uses a different name then the stack object definition. Index: test/CodeGen/MIR/X86/stack-object-operands.mir =================================================================== --- test/CodeGen/MIR/X86/stack-object-operands.mir +++ test/CodeGen/MIR/X86/stack-object-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses stack object machine operands # correctly. Index: test/CodeGen/MIR/X86/stack-object-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/X86/stack-object-redefinition-error.mir +++ test/CodeGen/MIR/X86/stack-object-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/stack-objects.mir =================================================================== --- test/CodeGen/MIR/X86/stack-objects.mir +++ test/CodeGen/MIR/X86/stack-objects.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses stack objects correctly. --- | Index: test/CodeGen/MIR/X86/standalone-register-error.mir =================================================================== --- test/CodeGen/MIR/X86/standalone-register-error.mir +++ test/CodeGen/MIR/X86/standalone-register-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test(i32 %a) { body: Index: test/CodeGen/MIR/X86/subreg-on-physreg.mir =================================================================== --- test/CodeGen/MIR/X86/subreg-on-physreg.mir +++ test/CodeGen/MIR/X86/subreg-on-physreg.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported for subreg index on a physreg. --- | define void @t() { ret void } Index: test/CodeGen/MIR/X86/subregister-index-operands.mir =================================================================== --- test/CodeGen/MIR/X86/subregister-index-operands.mir +++ test/CodeGen/MIR/X86/subregister-index-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses and prints subregisters index # operands correctly. Index: test/CodeGen/MIR/X86/subregister-operands.mir =================================================================== --- test/CodeGen/MIR/X86/subregister-operands.mir +++ test/CodeGen/MIR/X86/subregister-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses subregisters in register operands # correctly. Index: test/CodeGen/MIR/X86/successor-basic-blocks-weights.mir =================================================================== --- test/CodeGen/MIR/X86/successor-basic-blocks-weights.mir +++ test/CodeGen/MIR/X86/successor-basic-blocks-weights.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses basic block successors and # probabilities correctly. Index: test/CodeGen/MIR/X86/successor-basic-blocks.mir =================================================================== --- test/CodeGen/MIR/X86/successor-basic-blocks.mir +++ test/CodeGen/MIR/X86/successor-basic-blocks.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses basic block successors correctly. --- | Index: test/CodeGen/MIR/X86/tied-def-operand-invalid.mir =================================================================== --- test/CodeGen/MIR/X86/tied-def-operand-invalid.mir +++ test/CodeGen/MIR/X86/tied-def-operand-invalid.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i64 @test(i64 %x) #0 { entry: Index: test/CodeGen/MIR/X86/undef-register-flag.mir =================================================================== --- test/CodeGen/MIR/X86/undef-register-flag.mir +++ test/CodeGen/MIR/X86/undef-register-flag.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the 'undef' register flags # correctly. Index: test/CodeGen/MIR/X86/undefined-fixed-stack-object.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-fixed-stack-object.mir +++ test/CodeGen/MIR/X86/undefined-fixed-stack-object.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test(i32 %a) { Index: test/CodeGen/MIR/X86/undefined-global-value.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-global-value.mir +++ test/CodeGen/MIR/X86/undefined-global-value.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an invalid global value index # is used. Index: test/CodeGen/MIR/X86/undefined-ir-block-in-blockaddress.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-ir-block-in-blockaddress.mir +++ test/CodeGen/MIR/X86/undefined-ir-block-in-blockaddress.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/undefined-ir-block-slot-in-blockaddress.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-ir-block-slot-in-blockaddress.mir +++ test/CodeGen/MIR/X86/undefined-ir-block-slot-in-blockaddress.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/undefined-jump-table-id.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-jump-table-id.mir +++ test/CodeGen/MIR/X86/undefined-jump-table-id.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/undefined-named-global-value.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-named-global-value.mir +++ test/CodeGen/MIR/X86/undefined-named-global-value.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an undefined global value is # used. Index: test/CodeGen/MIR/X86/undefined-register-class.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-register-class.mir +++ test/CodeGen/MIR/X86/undefined-register-class.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when it encounters an # unknown register class. Index: test/CodeGen/MIR/X86/undefined-stack-object.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-stack-object.mir +++ test/CodeGen/MIR/X86/undefined-stack-object.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test(i32 %a) { Index: test/CodeGen/MIR/X86/undefined-value-in-memory-operand.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-value-in-memory-operand.mir +++ test/CodeGen/MIR/X86/undefined-value-in-memory-operand.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/undefined-virtual-register.mir =================================================================== --- test/CodeGen/MIR/X86/undefined-virtual-register.mir +++ test/CodeGen/MIR/X86/undefined-virtual-register.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that the MIR parser reports an error when parsing a # reference to an undefined virtual register. Index: test/CodeGen/MIR/X86/unknown-instruction.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-instruction.mir +++ test/CodeGen/MIR/X86/unknown-instruction.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an unknown instruction is # encountered. Index: test/CodeGen/MIR/X86/unknown-machine-basic-block.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-machine-basic-block.mir +++ test/CodeGen/MIR/X86/unknown-machine-basic-block.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an invalid machine basic # block index is used. Index: test/CodeGen/MIR/X86/unknown-metadata-keyword.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-metadata-keyword.mir +++ test/CodeGen/MIR/X86/unknown-metadata-keyword.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @inc(i32* %x) { Index: test/CodeGen/MIR/X86/unknown-metadata-node.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-metadata-node.mir +++ test/CodeGen/MIR/X86/unknown-metadata-node.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/unknown-named-machine-basic-block.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-named-machine-basic-block.mir +++ test/CodeGen/MIR/X86/unknown-named-machine-basic-block.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an unknown named machine # basic block is encountered. Index: test/CodeGen/MIR/X86/unknown-register.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-register.mir +++ test/CodeGen/MIR/X86/unknown-register.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an unknown register is # encountered. Index: test/CodeGen/MIR/X86/unknown-subregister-index-op.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-subregister-index-op.mir +++ test/CodeGen/MIR/X86/unknown-subregister-index-op.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an unknown subregister index # is encountered. Index: test/CodeGen/MIR/X86/unknown-subregister-index.mir =================================================================== --- test/CodeGen/MIR/X86/unknown-subregister-index.mir +++ test/CodeGen/MIR/X86/unknown-subregister-index.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s # This test ensures that an error is reported when an unknown subregister index # is encountered. Index: test/CodeGen/MIR/X86/unrecognized-character.mir =================================================================== --- test/CodeGen/MIR/X86/unrecognized-character.mir +++ test/CodeGen/MIR/X86/unrecognized-character.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/used-physical-register-info.mir =================================================================== --- test/CodeGen/MIR/X86/used-physical-register-info.mir +++ test/CodeGen/MIR/X86/used-physical-register-info.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses the callee saved register mask # correctly and that the MIR parser can infer it as well. Index: test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir =================================================================== --- test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir +++ test/CodeGen/MIR/X86/variable-sized-stack-object-size-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | define i32 @test(i32 %a) { Index: test/CodeGen/MIR/X86/variable-sized-stack-objects.mir =================================================================== --- test/CodeGen/MIR/X86/variable-sized-stack-objects.mir +++ test/CodeGen/MIR/X86/variable-sized-stack-objects.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses variable sized stack objects # correctly. Index: test/CodeGen/MIR/X86/virtual-register-redefinition-error.mir =================================================================== --- test/CodeGen/MIR/X86/virtual-register-redefinition-error.mir +++ test/CodeGen/MIR/X86/virtual-register-redefinition-error.mir @@ -1,4 +1,4 @@ -# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s +# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s --- | Index: test/CodeGen/MIR/X86/virtual-registers.mir =================================================================== --- test/CodeGen/MIR/X86/virtual-registers.mir +++ test/CodeGen/MIR/X86/virtual-registers.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o - %s | FileCheck %s +# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s # This test ensures that the MIR parser parses virtual register definitions and # references correctly. Index: tools/llc/llc.cpp =================================================================== --- tools/llc/llc.cpp +++ tools/llc/llc.cpp @@ -267,6 +267,34 @@ return 0; } +static bool addPass(PassManagerBase &PM, const char *argv0, + StringRef PassName, TargetPassConfig &TPC) { + if (PassName == "none") + return false; + + const PassRegistry *PR = PassRegistry::getPassRegistry(); + const PassInfo *PI = PR->getPassInfo(PassName); + if (!PI) { + errs() << argv0 << ": run-pass " << PassName << " is not registered.\n"; + return true; + } + + Pass *P; + if (PI->getTargetMachineCtor()) + P = PI->getTargetMachineCtor()(&TPC.getTM()); + else if (PI->getNormalCtor()) + P = PI->getNormalCtor()(); + else { + errs() << argv0 << ": cannot create pass: " << PI->getPassName() << "\n"; + return true; + } + std::string Banner = std::string("After ") + std::string(P->getPassName()); + PM.add(P); + TPC.printAndVerify(Banner); + + return false; +} + static int compileModule(char **argv, LLVMContext &Context) { // Load the module to be compiled... SMDiagnostic Err; @@ -412,33 +440,15 @@ return 1; } LLVMTargetMachine &LLVMTM = static_cast(*Target); - TargetPassConfig *TPC = LLVMTM.createPassConfig(PM); - PM.add(TPC); + TargetPassConfig &TPC = *LLVMTM.createPassConfig(PM); + PM.add(&TPC); LLVMTM.addMachineModuleInfo(PM); LLVMTM.addMachineFunctionAnalysis(PM, MIR.get()); - TPC->printAndVerify(""); + TPC.printAndVerify(""); - for (std::string &RunPassName : *RunPassNames) { - const PassInfo *PI = PR->getPassInfo(RunPassName); - if (!PI) { - errs() << argv[0] << ": run-pass " << RunPassName << " is not registered.\n"; + for (const std::string &RunPassName : *RunPassNames) { + if (addPass(PM, argv[0], RunPassName, TPC)) return 1; - } - - Pass *P; - if (PI->getTargetMachineCtor()) - P = PI->getTargetMachineCtor()(Target.get()); - else if (PI->getNormalCtor()) - P = PI->getNormalCtor()(); - else { - errs() << argv[0] << ": cannot create pass: " - << PI->getPassName() << "\n"; - return 1; - } - std::string Banner - = std::string("After ") + std::string(P->getPassName()); - PM.add(P); - TPC->printAndVerify(Banner); } PM.add(createPrintMIRPass(*OS)); } else {