2016-10-11 08:26:09 +08:00
|
|
|
// RUN: %clang -### -S -o FOO -fsave-optimization-record %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -### -c -o FOO -fsave-optimization-record %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -### -c -fsave-optimization-record %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-O
|
|
|
|
// RUN: %clang -### -fsave-optimization-record %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-O
|
|
|
|
// RUN: %clang -### -S -fsave-optimization-record -x cuda -nocudainc -nocudalib %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-O -check-prefix=CHECK-CUDA-DEV
|
|
|
|
// RUN: %clang -### -fsave-optimization-record -x cuda -nocudainc -nocudalib %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-O -check-prefix=CHECK-CUDA-DEV
|
|
|
|
// RUN: %clang -### -S -o FOO -fsave-optimization-record -foptimization-record-file=BAR.txt %s 2>&1 | FileCheck %s -check-prefix=CHECK-EQ
|
|
|
|
|
|
|
|
// CHECK: "-cc1"
|
|
|
|
// CHECK: "-opt-record-file" "FOO.opt.yaml"
|
|
|
|
|
|
|
|
// CHECK-NO-O: "-cc1"
|
|
|
|
// CHECK-NO-O-DAG: "-opt-record-file" "opt-record.opt.yaml"
|
2016-10-11 09:05:45 +08:00
|
|
|
// CHECK-CUDA-DEV-DAG: "-opt-record-file" "opt-record-device-cuda-{{nvptx64|nvptx}}-nvidia-cuda-sm_20.opt.yaml"
|
2016-10-11 08:26:09 +08:00
|
|
|
|
|
|
|
// CHECK-EQ: "-cc1"
|
|
|
|
// CHECK-EQ: "-opt-record-file" "BAR.txt"
|
|
|
|
|