diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 96860154ef762..0863fc0b30350 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -7553,11 +7553,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, false)) CmdArgs.push_back("-fmodules-debuginfo"); +#ifndef INTEL_SYCL_OPAQUEPOINTER_READY if (!CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL) CmdArgs.push_back("-no-opaque-pointers"); else if ((Triple.isSPIRV() || Triple.isSPIR()) && !SPIRV_ENABLE_OPAQUE_POINTERS) CmdArgs.push_back("-no-opaque-pointers"); +#endif ObjCRuntime Runtime = AddObjCRuntimeArgs(Args, Inputs, CmdArgs, rewriteKind); RenderObjCOptions(TC, D, RawTriple, Args, Runtime, rewriteKind != RK_None, diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp index 5de3a7b8b256b..ed1f50323155a 100644 --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp @@ -690,9 +690,10 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args, CmdArgs.push_back( Args.MakeArgString(Twine(PluginOptPrefix) + "jobs=" + Parallelism)); +#ifndef INTEL_SYCL_OPAQUEPOINTER_READY if (!CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL) CmdArgs.push_back(Args.MakeArgString("-plugin-opt=no-opaque-pointers")); - +#endif // If an explicit debugger tuning argument appeared, pass it along. if (Arg *A = Args.getLastArg(options::OPT_gTune_Group, options::OPT_ggdbN_Group)) { diff --git a/clang/lib/Driver/ToolChains/SYCL.cpp b/clang/lib/Driver/ToolChains/SYCL.cpp index 273dfa296c2d0..eda1c487e9612 100644 --- a/clang/lib/Driver/ToolChains/SYCL.cpp +++ b/clang/lib/Driver/ToolChains/SYCL.cpp @@ -240,10 +240,12 @@ const char *SYCL::Linker::constructLLVMLinkCommand( // know it is an unbundled generated list. if (LinkSYCLDeviceLibs) { Opts.push_back("-only-needed"); +#ifndef INTEL_SYCL_OPAQUEPOINTER_READY // FIXME remove this when opaque pointers are supported for SPIR-V if (!this->getToolChain().getTriple().isSPIR()) { Opts.push_back("-opaque-pointers"); } +#endif } for (const auto &II : InputFiles) { std::string FileName = getToolChain().getInputFilename(II); diff --git a/clang/test/CodeGenCXX/matrix-type-builtins.cpp b/clang/test/CodeGenCXX/matrix-type-builtins.cpp index 410844fa2bda4..732fe1a18db3b 100644 --- a/clang/test/CodeGenCXX/matrix-type-builtins.cpp +++ b/clang/test/CodeGenCXX/matrix-type-builtins.cpp @@ -1,5 +1,3 @@ - -// XFAIL:* // RUN: %clang_cc1 -fenable-matrix -triple x86_64-apple-darwin %s -emit-llvm -disable-llvm-passes -o - -std=c++17 | FileCheck %s // Tests for the matrix type builtins. diff --git a/clang/test/Driver/sycl-device-lib-opaque-pointers.cpp b/clang/test/Driver/sycl-device-lib-opaque-pointers.cpp deleted file mode 100644 index bada330f181b9..0000000000000 --- a/clang/test/Driver/sycl-device-lib-opaque-pointers.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/// -/// Checks that opaque-pointers are being used to llvm-link non SPIR-V devicelib -/// bundles -/// -/// FIXME remove once opaque pointers are supported for SPIR-V targets -/// - -// UNSUPPORTED: system-windows - -/// ########################################################################### - -// RUN: %clangxx -fsycl -nocudalib -fsycl-targets=nvptx64-nvidia-cuda %s --sysroot=%S/Inputs/SYCL -### 2>&1 \ -// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_OPAQUE_NON_SPIRV -// RUN: %clangxx -fsycl %s --sysroot=%S/Inputs/SYCL -### 2>&1 \ -// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_OPAQUE_SPIRV -// SYCL_DEVICE_LIB_OPAQUE_NON_SPIRV: llvm-link -// SYCL_DEVICE_LIB_OPAQUE_NON_SPIRV-NOT: "-opaque-pointers" -// SYCL_DEVICE_LIB_OPAQUE_NON_SPIRV: llvm-link{{.*}}"-opaque-pointers"{{.*}}libsycl-crt{{.*}}libsycl-complex{{.*}}libsycl-complex-fp64{{.*}}libsycl-cmath{{.*}}libsycl-cmath-fp64{{.*}}libsycl-imf{{.*}}libsycl-imf-fp64{{.*}}libsycl-imf-bf16{{.*}}libsycl-fallback-cassert{{.*}}libsycl-fallback-cstring{{.*}}libsycl-fallback-complex{{.*}}libsycl-fallback-complex-fp64{{.*}}libsycl-fallback-cmath -// SYCL_DEVICE_LIB_OPAQUE_SPIRV: llvm-link -// SYCL_DEVICE_LIB_OPAQUE_SPIRV-NOT: "-opaque-pointers" -// SYCL_DEVICE_LIB_OPAQUE_SPIRV-NOT: llvm-link{{.*}}"-opaque-pointers"{{.*}}libsycl-crt{{.*}}libsycl-complex{{.*}}libsycl-complex-fp64{{.*}}libsycl-cmath{{.*}}libsycl-cmath-fp64{{.*}}libsycl-imf{{.*}}libsycl-imf-fp64{{.*}}libsycl-imf-bf16{{.*}}libsycl-fallback-cassert{{.*}}libsycl-fallback-cstring{{.*}}libsycl-fallback-complex{{.*}}libsycl-fallback-complex-fp64{{.*}}libsycl-fallback-cmath -// SYCL_DEVICE_LIB_OPAQUE_SPIRV: llvm-link{{.*}}libsycl-crt{{.*}}libsycl-complex{{.*}}libsycl-complex-fp64{{.*}}libsycl-cmath{{.*}}libsycl-cmath-fp64{{.*}}libsycl-imf{{.*}}libsycl-imf-fp64{{.*}}libsycl-imf-bf16{{.*}}libsycl-fallback-cassert{{.*}}libsycl-fallback-cstring{{.*}}libsycl-fallback-complex{{.*}}libsycl-fallback-complex-fp64{{.*}}libsycl-fallback-cmath -/// ########################################################################### diff --git a/clang/test/Driver/sycl-no-gpu-rdc-opaque-pointers.cpp b/clang/test/Driver/sycl-no-gpu-rdc-opaque-pointers.cpp deleted file mode 100644 index 0d998efc85606..0000000000000 --- a/clang/test/Driver/sycl-no-gpu-rdc-opaque-pointers.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/// -/// Checks that the SYCL libraries modules are first linked with opaque-pointers, -/// when no GPU Relocatable Device Code mode is used. -/// - -// UNSUPPORTED: system-windows - -// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fno-gpu-rdc %s --sysroot=%S/Inputs/SYCL -### 2>&1 \ -// RUN: | FileCheck %s -check-prefix=CHECK_NORDC_OPAQUE_PTR -// CHECK_NORDC_OPAQUE_PTR: clang{{.*}} -// CHECK_NORDC_OPAQUE_PTR-NOT: llvm-link -// CHECK_NORDC_OPAQUE_PTR: clang-offload-bundler -// CHECK_NORDC_OPAQUE_PTR: llvm-link{{.*}}"-only-needed"{{.*}}"-opaque-pointers"{{.*}}libsycl-crt{{.*}}libsycl-complex{{.*}}libsycl-complex-fp64{{.*}}libsycl-cmath{{.*}}libsycl-cmath-fp64{{.*}}libsycl-imf{{.*}}libsycl-imf-fp64{{.*}}libsycl-imf-bf16{{.*}}libsycl-fallback-cassert{{.*}}libsycl-fallback-cstring{{.*}}libsycl-fallback-complex{{.*}}libsycl-fallback-complex-fp64{{.*}}libsycl-fallback-cmath -// CHECK_NORDC_OPAQUE_PTR-NOT: "opaque-pointers" -// CHECK_NORDC_OPAQUE_PTR-NEXT: llvm-link{{.*}}sycl-no-gpu-rdc-opaque-pointers{{.*}}libsycl-crt -// CHECK_NORDC_OPAQUE_PTR-NEXT: sycl-post-link diff --git a/clang/test/Modules/merge-extension-ivars.m b/clang/test/Modules/merge-extension-ivars.m index 46d3edad3ee33..d9e58bb49d1fe 100644 --- a/clang/test/Modules/merge-extension-ivars.m +++ b/clang/test/Modules/merge-extension-ivars.m @@ -2,19 +2,19 @@ // RUN: rm -rf %t // RUN: split-file %s %t // RUN: %clang_cc1 -emit-llvm -o %t/test-compatible-extensions.ll -fobjc-runtime=macosx-10.9 -F%t/Frameworks %t/test-compatible-extensions.m \ -// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -fmodule-name=InterfaceAndExtension -opaque-pointers +// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -fmodule-name=InterfaceAndExtension // RUN: FileCheck --input-file=%t/test-compatible-extensions.ll %t/test-compatible-extensions.m // RUN: %clang_cc1 -emit-llvm -o %t/test-access-extension-ivar.ll -fobjc-runtime=macosx-10.9 -F%t/Frameworks %t/test-access-extension-ivar.m \ -// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -opaque-pointers +// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache // RUN: FileCheck --input-file=%t/test-access-extension-ivar.ll %t/test-access-extension-ivar.m // RUN: %clang_cc1 -emit-llvm -o %t/test-synthesized-ivar.ll -fobjc-runtime=macosx-10.9 -F%t/Frameworks %t/test-synthesized-ivar.m \ -// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -opaque-pointers +// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache // RUN: FileCheck --input-file=%t/test-synthesized-ivar.ll %t/test-synthesized-ivar.m // RUN: %clang_cc1 -emit-llvm -o %t/test-synthesized-ivar-extension.ll -fobjc-runtime=macosx-10.9 -F%t/Frameworks %t/test-synthesized-ivar.m \ // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache \ -// RUN: -DIMPORT_EXTENSION=1 -opaque-pointers +// RUN: -DIMPORT_EXTENSION=1 // RUN: FileCheck --input-file=%t/test-synthesized-ivar-extension.ll %t/test-synthesized-ivar.m // Test various scenarios where we can end up with the same-name ivars coming from multiple modules. diff --git a/llvm-spirv/test/DebugInfo/Generic/c-and-cpp-mixed.ll b/llvm-spirv/test/DebugInfo/Generic/c-and-cpp-mixed.ll index 0b64042ddb489..18634e9bc1eb9 100644 --- a/llvm-spirv/test/DebugInfo/Generic/c-and-cpp-mixed.ll +++ b/llvm-spirv/test/DebugInfo/Generic/c-and-cpp-mixed.ll @@ -1,11 +1,7 @@ ;; This test checks that two DICompileUnits resulted in a link of C and C++ ;; object files are being translated correctly -; ifdef INTEL_SYCL_OPAQUEPOINTER_READY -; COM: llvm-as < %s -o %t.bc -; else -; RUN: llvm-as -opaque-pointers < %s -o %t.bc -; endif +; RUN: llvm-as < %s -o %t.bc ; RUN: llvm-spirv %t.bc -o %t.spv ; RUN: llvm-spirv --to-text %t.spv -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll diff --git a/llvm-spirv/test/EnqueueEmptyKernel.ll b/llvm-spirv/test/EnqueueEmptyKernel.ll index 211ecdcd0a1bf..79404eefd5eb5 100644 --- a/llvm-spirv/test/EnqueueEmptyKernel.ll +++ b/llvm-spirv/test/EnqueueEmptyKernel.ll @@ -13,8 +13,8 @@ ;; ^(){}); ;; } ; RUN: llvm-as < %s > %t.bc -; RUN: llvm-spirv -opaque-pointers=1 %t.bc -o - -spirv-text | FileCheck %s --check-prefix=CHECK-SPIRV -; RUN: llvm-spirv -opaque-pointers=1 %t.bc -o %t.spv +; RUN: llvm-spirv %t.bc -o - -spirv-text | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llvm-spirv %t.bc -o %t.spv ; RUN: spirv-val %t.spv target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64" diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/IntelFPGAMemoryAccesses.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/IntelFPGAMemoryAccesses.ll index 1b5e04da35349..4e6d9e0396adf 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/IntelFPGAMemoryAccesses.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/IntelFPGAMemoryAccesses.ll @@ -41,7 +41,7 @@ ; return 0; ; } -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses -o %t.spv ; RUN: llvm-spirv %t.spv -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/intel_fpga_lsu_optimized.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/intel_fpga_lsu_optimized.ll index 3fa0ae09afc1c..83b60aef93aca 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/intel_fpga_lsu_optimized.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/intel_fpga_lsu_optimized.ll @@ -49,7 +49,7 @@ ; } ; Check that translation of optimized IR doesn't crash: -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses -o %t.spv ; Check that reverse translation restore ptr.annotations correctly: diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributes.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributes.ll index 25121fc94e52f..1183c4c13f59f 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributes.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributes.ll @@ -205,7 +205,7 @@ ; LLVM IR compilation command: ; clang -cc1 -triple spir -disable-llvm-passes -fsycl-is-device -emit-llvm intel-fpga-local-var.cpp -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_attributes -o %t.spv ; RUN: llvm-spirv %t.spv --spirv-ext=+SPV_INTEL_fpga_memory_attributes -to-text -o %t.spt ; RUN: FileCheck < %t.spt %s --check-prefix=CHECK-SPIRV diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributesForStruct.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributesForStruct.ll index f40418daa3729..90b975ea6a78e 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributesForStruct.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributesForStruct.ll @@ -181,7 +181,7 @@ ; LLVM IR compilation command: ; clang -cc1 -triple spir -disable-llvm-passes -fsycl-is-device -emit-llvm intel-fpga-local-var.cpp -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_attributes -o %t.spv ; RUN: llvm-spirv %t.spv --spirv-ext=+SPV_INTEL_fpga_memory_attributes -to-text -o %t.spt ; RUN: FileCheck < %t.spt %s --check-prefix=CHECK-SPIRV diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_reg/IntelFPGAReg.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_reg/IntelFPGAReg.ll index 868d540e0606b..6eaf65db600f9 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_reg/IntelFPGAReg.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_reg/IntelFPGAReg.ll @@ -54,7 +54,7 @@ ; A ca(213); ; A cb = __builtin_intel_fpga_reg(ca); -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; FIXME: add more negative test cases ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_reg -o %t.spv ; RUN: llvm-spirv %t.spv -to-text -o %t.spt diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/alias.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/alias.ll index f775e91b3832f..4938f004f2799 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/alias.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/alias.ll @@ -1,6 +1,6 @@ ; XFAIL: * -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv -spirv-ext=+SPV_INTEL_function_pointers -spirv-text %t.bc -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv -spirv-ext=+SPV_INTEL_function_pointers %t.bc -o %t.spv ; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o - | FileCheck %s --check-prefix=CHECK-LLVM diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/global-function-pointer.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/global-function-pointer.ll index 42d4db4582868..0702c99973e2e 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/global-function-pointer.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_function_pointers/global-function-pointer.ll @@ -1,6 +1,6 @@ -; RUN: llvm-as -opaque-pointers=1 < %s | llvm-spirv -spirv-ext=+SPV_INTEL_function_pointers -o %t.spv +; RUN: llvm-as < %s | llvm-spirv -spirv-ext=+SPV_INTEL_function_pointers -o %t.spv ; RUN: llvm-spirv %t.spv -spirv-ext=+SPV_INTEL_function_pointers -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV -; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -opaque-pointers=1 | FileCheck %s --check-prefix=CHECK-LLVM +; RUN: llvm-spirv -r %t.spv -o - | llvm-dis | FileCheck %s --check-prefix=CHECK-LLVM target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64" target triple = "spir64" diff --git a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_io_pipes/PipeStorageIOINTEL.ll b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_io_pipes/PipeStorageIOINTEL.ll index 20609efde6012..89d3ceb8effc9 100644 --- a/llvm-spirv/test/extensions/INTEL/SPV_INTEL_io_pipes/PipeStorageIOINTEL.ll +++ b/llvm-spirv/test/extensions/INTEL/SPV_INTEL_io_pipes/PipeStorageIOINTEL.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_io_pipes -o %t.spv ; RUN: llvm-spirv %t.spv -to-text -o %t.spt ; RUN: FileCheck < %t.spt %s --check-prefix=CHECK-SPIRV diff --git a/llvm-spirv/test/image.ll b/llvm-spirv/test/image.ll index ba38b443c3d7c..76c80fb9d605d 100644 --- a/llvm-spirv/test/image.ll +++ b/llvm-spirv/test/image.ll @@ -1,6 +1,6 @@ ; XFAIL: * -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv %t.bc -o %t.spv ; RUN: llvm-spirv -r %t.spv -o %t.rev.bc diff --git a/llvm-spirv/test/layout.ll b/llvm-spirv/test/layout.ll index b7cb64a84a27c..046e9e00de9e5 100644 --- a/llvm-spirv/test/layout.ll +++ b/llvm-spirv/test/layout.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o %t ; RUN: FileCheck < %t %s ; RUN: llvm-spirv %t.bc -o %t.spv diff --git a/llvm-spirv/test/llvm-intrinsics/memmove.ll b/llvm-spirv/test/llvm-intrinsics/memmove.ll index d8949134198f9..0e6f5bca6727f 100644 --- a/llvm-spirv/test/llvm-intrinsics/memmove.ll +++ b/llvm-spirv/test/llvm-intrinsics/memmove.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o %t.txt ; RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv %t.bc -o %t.spv diff --git a/llvm-spirv/test/transcoding/PipeStorage.ll b/llvm-spirv/test/transcoding/PipeStorage.ll index 01dfc4068522d..2bb3a2a84851c 100644 --- a/llvm-spirv/test/transcoding/PipeStorage.ll +++ b/llvm-spirv/test/transcoding/PipeStorage.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o %t.txt ; RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv %t.bc -o %t.spv diff --git a/llvm-spirv/test/transcoding/annotate_attribute.ll b/llvm-spirv/test/transcoding/annotate_attribute.ll index 69ee1378d5f81..303a196583b86 100644 --- a/llvm-spirv/test/transcoding/annotate_attribute.ll +++ b/llvm-spirv/test/transcoding/annotate_attribute.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv %t.bc -o %t.spv @@ -7,7 +7,7 @@ ; Check that even when FPGA memory extensions are enabled - yet we have ; UserSemantic decoration be generated -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses,+SPV_INTEL_fpga_memory_attributes -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; Check SPIR-V versions in a format magic number + version diff --git a/llvm-spirv/test/transcoding/annotation_generic_decoration.ll b/llvm-spirv/test/transcoding/annotation_generic_decoration.ll index 5fe69d1ab450e..94e252318f8cc 100644 --- a/llvm-spirv/test/transcoding/annotation_generic_decoration.ll +++ b/llvm-spirv/test/transcoding/annotation_generic_decoration.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_attributes -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_attributes -o %t.spv ; RUN: llvm-spirv -r %t.spv -o %t.rev.bc diff --git a/llvm-spirv/test/transcoding/multiple_user_semantic_nonopaque.ll b/llvm-spirv/test/transcoding/multiple_user_semantic_nonopaque.ll index ce07b971c00cb..c95f7f1e8f1e3 100644 --- a/llvm-spirv/test/transcoding/multiple_user_semantic_nonopaque.ll +++ b/llvm-spirv/test/transcoding/multiple_user_semantic_nonopaque.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv %t.bc -o %t.spv @@ -7,7 +7,7 @@ ; Check that even when FPGA memory extensions are enabled - yet we have ; UserSemantic decoration be generated -; RUN: llvm-as -opaque-pointers=1 %s -o %t.bc +; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses,+SPV_INTEL_fpga_memory_attributes -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: Name [[#ClassMember:]] "class.Sample" diff --git a/llvm-spirv/test/transcoding/spirv-private-array-initialization.ll b/llvm-spirv/test/transcoding/spirv-private-array-initialization.ll index 8b8b9430c2583..ae9994085fc49 100644 --- a/llvm-spirv/test/transcoding/spirv-private-array-initialization.ll +++ b/llvm-spirv/test/transcoding/spirv-private-array-initialization.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers=1 <%s -o %t.bc +; RUN: llvm-as <%s -o %t.bc ; RUN: llvm-spirv %t.bc -o %t.spv ; RUN: llvm-spirv %t.spv -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; RUN: llvm-spirv -r %t.spv -o %t_4mspirv.bc diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index fefd37e156be4..75d115f5f246e 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -909,6 +909,7 @@ set(DPCPP_ENABLE_OPAQUE_POINTERS TRUE CACHE BOOL "Enable opaque pointers by default.") if (DPCPP_ENABLE_OPAQUE_POINTERS) add_definitions("-DENABLE_OPAQUE_POINTERS=1") + add_definitions("-DINTEL_SYCL_OPAQUEPOINTER_READY=1") endif(DPCPP_ENABLE_OPAQUE_POINTERS) set(SPIRV_ENABLE_OPAQUE_POINTERS TRUE CACHE BOOL "Enable opaque pointers for SPIR-V offload by default.") diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake index 7fd6628ef55d3..3bdd3a67be942 100644 --- a/llvm/cmake/modules/TableGen.cmake +++ b/llvm/cmake/modules/TableGen.cmake @@ -4,6 +4,8 @@ # Adds the name of the generated file to TABLEGEN_OUTPUT. include(LLVMDistributionSupport) +list(APPEND LLVM_TABLEGEN_FLAGS "-DINTEL_SYCL_OPAQUEPOINTER_READY") + function(tablegen project ofn) cmake_parse_arguments(ARG "" "" "DEPENDS;EXTRA_INCLUDES" ${ARGN}) diff --git a/llvm/lib/SYCLLowerIR/CMakeLists.txt b/llvm/lib/SYCLLowerIR/CMakeLists.txt index 8214e9c372f04..eedb1fd7f880f 100644 --- a/llvm/lib/SYCLLowerIR/CMakeLists.txt +++ b/llvm/lib/SYCLLowerIR/CMakeLists.txt @@ -13,10 +13,10 @@ endif() if (NOT TARGET LLVMGenXIntrinsics) if (NOT DEFINED LLVMGenXIntrinsics_SOURCE_DIR) set(LLVMGenXIntrinsics_GIT_REPO https://github.com/intel/vc-intrinsics.git) - # Author: Gorban, Igor - # Date: Tue Jun 6 23:56:43 2023 +0000 - # Mark llvm15 tests failures - set(LLVMGenXIntrinsics_GIT_TAG 910db4801d4a029834606e3e42a8d60358e74fdf) + # Author: Jinsong Ji + # Date: Thu Aug 10 14:41:52 2023 +0000 + # Guard removed typed pointer enum within version macro + set(LLVMGenXIntrinsics_GIT_TAG 17a53f4304463b8e7e639d57ef17479040a8a2ad) message(STATUS "vc-intrinsics repo is missing. Will try to download it from ${LLVMGenXIntrinsics_GIT_REPO}") include(FetchContent) diff --git a/llvm/test/Analysis/LoopCacheAnalysis/compute-cost.ll b/llvm/test/Analysis/LoopCacheAnalysis/compute-cost.ll index d4584fd010dcf..04f31b3845db0 100644 --- a/llvm/test/Analysis/LoopCacheAnalysis/compute-cost.ll +++ b/llvm/test/Analysis/LoopCacheAnalysis/compute-cost.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -opaque-pointers -cache-line-size=32 -passes='print' -disable-output 2>&1 | FileCheck -check-prefix=SMALLER-CACHELINE %s -; RUN: opt < %s -opaque-pointers -cache-line-size=256 -passes='print' -disable-output 2>&1 | FileCheck -check-prefix=LARGER-CACHELINE %s +; RUN: opt < %s -cache-line-size=32 -passes='print' -disable-output 2>&1 | FileCheck -check-prefix=SMALLER-CACHELINE %s +; RUN: opt < %s -cache-line-size=256 -passes='print' -disable-output 2>&1 | FileCheck -check-prefix=LARGER-CACHELINE %s ;; This test is similar to test/Analysis/LoopCacheAnalysis/PowerPC/compute-cost.ll, ;; with differences that it tests the scenarios where an option for cache line size is diff --git a/llvm/test/Analysis/MemorySSA/pr43641.ll b/llvm/test/Analysis/MemorySSA/pr43641.ll index 2f8fb3336a1d5..d4b3531b7e0e1 100644 --- a/llvm/test/Analysis/MemorySSA/pr43641.ll +++ b/llvm/test/Analysis/MemorySSA/pr43641.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -passes=simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s +; RUN: opt -passes=simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s ; REQUIRES: asserts ; CHECK-LABEL: @c diff --git a/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/loads-gmir.mir b/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/loads-gmir.mir index 5423a223da3fb..4f20f4b433e1b 100644 --- a/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/loads-gmir.mir +++ b/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/loads-gmir.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -mtriple=amdgcn-- -run-pass=print-machine-uniformity -o - %s 2>&1 | FileCheck %s +# RUN: llc -mtriple=amdgcn-- -run-pass=print-machine-uniformity -o - %s 2>&1 | FileCheck %s --- name: loads diff --git a/llvm/test/Assembler/autoupgrade-invalid-name-mangling.ll b/llvm/test/Assembler/autoupgrade-invalid-name-mangling.ll index 189cbbb420549..9b3ae99594d60 100644 --- a/llvm/test/Assembler/autoupgrade-invalid-name-mangling.ll +++ b/llvm/test/Assembler/autoupgrade-invalid-name-mangling.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers < %s 2>&1 | FileCheck %s +; RUN: not llvm-as < %s 2>&1 | FileCheck %s ; CHECK: Intrinsic called with incompatible signature ; CHECK-NEXT: %reg = call i32 @llvm.read_register.i64( diff --git a/llvm/test/Assembler/comment.ll b/llvm/test/Assembler/comment.ll index 5d139ad2f36c0..ed58fbd05b204 100644 --- a/llvm/test/Assembler/comment.ll +++ b/llvm/test/Assembler/comment.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as -opaque-pointers < %s | llvm-dis -show-annotations | FileCheck -check-prefix=ANNOT %s -; RUN: llvm-as -opaque-pointers < %s | llvm-dis | FileCheck -check-prefix=BARE %s +; RUN: llvm-as < %s | llvm-dis -show-annotations | FileCheck -check-prefix=ANNOT %s +; RUN: llvm-as < %s | llvm-dis | FileCheck -check-prefix=BARE %s ; RUN: verify-uselistorder %s ; The bare version of this file should not have any #uses lines. diff --git a/llvm/test/Assembler/invalid-vecreduce.ll b/llvm/test/Assembler/invalid-vecreduce.ll index 9cb3d2d0af1d2..1a2b866dd003f 100644 --- a/llvm/test/Assembler/invalid-vecreduce.ll +++ b/llvm/test/Assembler/invalid-vecreduce.ll @@ -1,4 +1,4 @@ -; RUN: not opt -opaque-pointers -S < %s 2>&1 | FileCheck %s +; RUN: not opt -S < %s 2>&1 | FileCheck %s ; CHECK: Intrinsic has incorrect return type! ; CHECK-NEXT: ptr @llvm.vector.reduce.fadd.f32.f64.v2f64 diff --git a/llvm/test/Assembler/scalable-vector-struct.ll b/llvm/test/Assembler/scalable-vector-struct.ll index 54923428fbbd3..d0b49b11b7fad 100644 --- a/llvm/test/Assembler/scalable-vector-struct.ll +++ b/llvm/test/Assembler/scalable-vector-struct.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: opt -opaque-pointers -passes=verify -S < %s 2>&1 | FileCheck %s +; RUN: opt -passes=verify -S < %s 2>&1 | FileCheck %s ; endif %struct.test = type { , } diff --git a/llvm/test/Bindings/llvm-c/globals.ll b/llvm/test/Bindings/llvm-c/globals.ll index ca73dd5682eb3..813cf5f32d82d 100644 --- a/llvm/test/Bindings/llvm-c/globals.ll +++ b/llvm/test/Bindings/llvm-c/globals.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers < %s | llvm-c-test --module-list-globals | FileCheck %s +; RUN: llvm-as < %s | llvm-c-test --module-list-globals | FileCheck %s @foo = constant [7 x i8] c"foobar\00", align 1 ;CHECK: GlobalDefinition: foo ptr diff --git a/llvm/test/Bitcode/alloca-addrspace.ll b/llvm/test/Bitcode/alloca-addrspace.ll index 5a65f89f7342c..7ae7cc05d147d 100644 --- a/llvm/test/Bitcode/alloca-addrspace.ll +++ b/llvm/test/Bitcode/alloca-addrspace.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s target datalayout = "A2" diff --git a/llvm/test/Bitcode/arm-intrinsics.ll b/llvm/test/Bitcode/arm-intrinsics.ll index 8d19b46acafcc..be52c59b5518b 100644 --- a/llvm/test/Bitcode/arm-intrinsics.ll +++ b/llvm/test/Bitcode/arm-intrinsics.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %S/arm-intrinsics.bc | FileCheck %s +; RUN: llvm-dis < %S/arm-intrinsics.bc | FileCheck %s define void @f(i32* %p) { ; CHECK: call i32 @llvm.arm.ldrex.p0(ptr elementtype(i32) diff --git a/llvm/test/Bitcode/atomic-no-syncscope.ll b/llvm/test/Bitcode/atomic-no-syncscope.ll index 245d6126ad5f4..8dd0a9eaffe65 100644 --- a/llvm/test/Bitcode/atomic-no-syncscope.ll +++ b/llvm/test/Bitcode/atomic-no-syncscope.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers -o - %s.bc | FileCheck %s +; RUN: llvm-dis -o - %s.bc | FileCheck %s ; Backwards compatibility test: make sure we can process bitcode without ; synchronization scope names encoded in it. diff --git a/llvm/test/Bitcode/atomic.ll b/llvm/test/Bitcode/atomic.ll index d679c3bc31c07..3c9ddbd6446ee 100644 --- a/llvm/test/Bitcode/atomic.ll +++ b/llvm/test/Bitcode/atomic.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as %s -o - | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s ; RUN: verify-uselistorder < %s define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) { diff --git a/llvm/test/Bitcode/atomicrmw-upgrade.ll b/llvm/test/Bitcode/atomicrmw-upgrade.ll index 1f1d39c7fed05..4cbc96c18fc4b 100644 --- a/llvm/test/Bitcode/atomicrmw-upgrade.ll +++ b/llvm/test/Bitcode/atomicrmw-upgrade.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder < %s.bc ; atomicrmw-upgrade.ll.bc was produced by running a version of llvm-as from just diff --git a/llvm/test/Bitcode/attributes-3.3.ll b/llvm/test/Bitcode/attributes-3.3.ll index 485c8328f43fa..b471c52d2609c 100644 --- a/llvm/test/Bitcode/attributes-3.3.ll +++ b/llvm/test/Bitcode/attributes-3.3.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; RUN: verify-uselistorder < %s.bc ; attributes-3.3.ll.bc was generated by passing this file to llvm-as-3.3. diff --git a/llvm/test/Bitcode/blockaddress-addrspace.ll b/llvm/test/Bitcode/blockaddress-addrspace.ll index 7bfc32b533593..8567417098ea0 100644 --- a/llvm/test/Bitcode/blockaddress-addrspace.ll +++ b/llvm/test/Bitcode/blockaddress-addrspace.ll @@ -9,8 +9,8 @@ ; RUN: not llvm-as %t/return-self-bad.ll -o /dev/null 2>&1 | FileCheck %t/return-self-bad.ll ; RUN: not llvm-as %t/return-self-bad-2.ll -o /dev/null 2>&1 | FileCheck %t/return-self-bad-2.ll ; RUN: not llvm-as %t/return-unknown-fn-bad.ll -o /dev/null 2>&1 | FileCheck %t/return-unknown-fn-bad.ll -; RUN: llvm-as -opaque-pointers %t/call-fwddecl-good.ll -o - | llvm-dis -o /dev/null -; RUN: not llvm-as -opaque-pointers %t/call-fwddecl-bad.ll -o /dev/null 2>&1 | FileCheck %t/call-fwddecl-bad.ll +; RUN: llvm-as %t/call-fwddecl-good.ll -o - | llvm-dis -o /dev/null +; RUN: not llvm-as %t/call-fwddecl-bad.ll -o /dev/null 2>&1 | FileCheck %t/call-fwddecl-bad.ll ; RUN: llvm-as %t/phi-good.ll -o - | llvm-dis -o /dev/null ; RUN: not llvm-as %t/phi-bad.ll -o /dev/null 2>&1 | FileCheck %t/phi-bad.ll ; RUN: llvm-as %t/fwddecl-phi-good.ll -o - | llvm-dis -o /dev/null diff --git a/llvm/test/Bitcode/byval-upgrade.test b/llvm/test/Bitcode/byval-upgrade.test index 5803261bd1f85..f44e5d348c2bb 100644 --- a/llvm/test/Bitcode/byval-upgrade.test +++ b/llvm/test/Bitcode/byval-upgrade.test @@ -1,4 +1,4 @@ -RUN: llvm-dis -opaque-pointers %p/Inputs/byval-upgrade.bc -o - | FileCheck %s +RUN: llvm-dis %p/Inputs/byval-upgrade.bc -o - | FileCheck %s Make sure we upgrade old-stile IntAttribute byval records to a fully typed version correctly. diff --git a/llvm/test/Bitcode/callbr.ll b/llvm/test/Bitcode/callbr.ll index 33c83135314d9..5f6283dd035d6 100644 --- a/llvm/test/Bitcode/callbr.ll +++ b/llvm/test/Bitcode/callbr.ll @@ -1,7 +1,7 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; callbr.ll.bc was generated by passing this file to llvm-as. -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s define i32 @test_asm_goto(i32 %x){ entry: diff --git a/llvm/test/Bitcode/cmpxchg-upgrade.ll b/llvm/test/Bitcode/cmpxchg-upgrade.ll index 16b32ec2321cd..c00b3c014660b 100644 --- a/llvm/test/Bitcode/cmpxchg-upgrade.ll +++ b/llvm/test/Bitcode/cmpxchg-upgrade.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder < %s.bc ; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just diff --git a/llvm/test/Bitcode/cmpxchg.3.6.ll b/llvm/test/Bitcode/cmpxchg.3.6.ll index 8d962fba4f3ef..f3cc77f4b1b5c 100644 --- a/llvm/test/Bitcode/cmpxchg.3.6.ll +++ b/llvm/test/Bitcode/cmpxchg.3.6.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s define void @f2(i32* %x, i32 %y.orig, i32 %z) { entry: diff --git a/llvm/test/Bitcode/compatibility-3.6.ll b/llvm/test/Bitcode/compatibility-3.6.ll index e5bc0292bb040..7fc28c5175c1b 100644 --- a/llvm/test/Bitcode/compatibility-3.6.ll +++ b/llvm/test/Bitcode/compatibility-3.6.ll @@ -4,7 +4,7 @@ ; the IR used to generate the bitcode, and may need to be updated. These ; locations are tagged with an 'XXX'. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/compatibility-3.7.ll b/llvm/test/Bitcode/compatibility-3.7.ll index 4554d31c5f4da..c9ca841fdf327 100644 --- a/llvm/test/Bitcode/compatibility-3.7.ll +++ b/llvm/test/Bitcode/compatibility-3.7.ll @@ -4,7 +4,7 @@ ; the IR used to generate the bitcode, and may need to be updated. These ; locations are tagged with an 'XXX'. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/compatibility-3.8.ll b/llvm/test/Bitcode/compatibility-3.8.ll index 0aa2b0b3bec12..2d87fbb2f3148 100644 --- a/llvm/test/Bitcode/compatibility-3.8.ll +++ b/llvm/test/Bitcode/compatibility-3.8.ll @@ -3,7 +3,7 @@ ; N.b: This is 3.8-compatible IR. The CHECK lines occasionally differ from ; the IR used to generate the bitcode, and may need to be updated. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/compatibility-3.9.ll b/llvm/test/Bitcode/compatibility-3.9.ll index 016c8cc15b062..a43bd79e42788 100644 --- a/llvm/test/Bitcode/compatibility-3.9.ll +++ b/llvm/test/Bitcode/compatibility-3.9.ll @@ -3,7 +3,7 @@ ; N.b: This is 3.9-compatible IR. The CHECK lines occasionally differ from ; the IR used to generate the bitcode, and may need to be updated. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/compatibility-4.0.ll b/llvm/test/Bitcode/compatibility-4.0.ll index f4e3ec60de705..a73628772bcee 100644 --- a/llvm/test/Bitcode/compatibility-4.0.ll +++ b/llvm/test/Bitcode/compatibility-4.0.ll @@ -3,7 +3,7 @@ ; N.b: This is 4.0-compatible IR. The CHECK lines occasionally differ from ; the IR used to generate the bitcode, and may need to be updated. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/compatibility-5.0.ll b/llvm/test/Bitcode/compatibility-5.0.ll index 68401c75585bc..e440ed0d49086 100644 --- a/llvm/test/Bitcode/compatibility-5.0.ll +++ b/llvm/test/Bitcode/compatibility-5.0.ll @@ -3,7 +3,7 @@ ; N.b: This is 5.0-compatible IR. The CHECK lines occasionally differ from ; the IR used to generate the bitcode, and may need to be updated. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/compatibility-6.0.ll b/llvm/test/Bitcode/compatibility-6.0.ll index d4ff350cf570b..227672da489dc 100644 --- a/llvm/test/Bitcode/compatibility-6.0.ll +++ b/llvm/test/Bitcode/compatibility-6.0.ll @@ -3,7 +3,7 @@ ; N.b: This is 6.0-compatible IR. The CHECK lines occasionally differ from ; the IR used to generate the bitcode, and may need to be updated. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s target datalayout = "E" ; CHECK: target datalayout = "E" diff --git a/llvm/test/Bitcode/constantsTest.3.2.ll b/llvm/test/Bitcode/constantsTest.3.2.ll index c4f8a1de7d4a4..f20b1b20c1544 100644 --- a/llvm/test/Bitcode/constantsTest.3.2.ll +++ b/llvm/test/Bitcode/constantsTest.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; constantsTest.3.2.ll.bc was generated by passing this file to llvm-as-3.2. ; The test checks that LLVM does not misread binary float instructions of diff --git a/llvm/test/Bitcode/conversionInstructions.3.2.ll b/llvm/test/Bitcode/conversionInstructions.3.2.ll index e1c1cad19928b..3f0aa02f395d9 100644 --- a/llvm/test/Bitcode/conversionInstructions.3.2.ll +++ b/llvm/test/Bitcode/conversionInstructions.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; conversionInstructions.3.2.ll.bc was generated by passing this file to llvm-as-3.2. ; The test checks that LLVM does not misread conversion instructions from diff --git a/llvm/test/Bitcode/dityperefs-3.8.ll b/llvm/test/Bitcode/dityperefs-3.8.ll index 25fa62c9d3cb5..b14bcf7b04a78 100644 --- a/llvm/test/Bitcode/dityperefs-3.8.ll +++ b/llvm/test/Bitcode/dityperefs-3.8.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder %s.bc ; Establish a stable order. diff --git a/llvm/test/Bitcode/dso_location.ll b/llvm/test/Bitcode/dso_location.ll index 71ce19e4a8627..d4375bc83ab5a 100644 --- a/llvm/test/Bitcode/dso_location.ll +++ b/llvm/test/Bitcode/dso_location.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; Tests parsing for the dso_local keyword as well as the serialization/ ; deserialization of the dso_local value on GlobalValues. diff --git a/llvm/test/Bitcode/function-address-space-fwd-decl.ll b/llvm/test/Bitcode/function-address-space-fwd-decl.ll index 78b137c80374f..36c07ec3eaaba 100644 --- a/llvm/test/Bitcode/function-address-space-fwd-decl.ll +++ b/llvm/test/Bitcode/function-address-space-fwd-decl.ll @@ -1,5 +1,5 @@ ; Verify that forward declarations from call instructions work even with non-zero AS -; RUN: llvm-as %s -o - | llvm-dis -opaque-pointers - | FileCheck %s +; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s define void @call_named() { entry: diff --git a/llvm/test/Bitcode/getelementptr-zero-indices.ll b/llvm/test/Bitcode/getelementptr-zero-indices.ll index 7e265accbac19..2b386901617d6 100644 --- a/llvm/test/Bitcode/getelementptr-zero-indices.ll +++ b/llvm/test/Bitcode/getelementptr-zero-indices.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; CHECK: %g = getelementptr i8, ptr %p diff --git a/llvm/test/Bitcode/global-variables.3.2.ll b/llvm/test/Bitcode/global-variables.3.2.ll index 974135ed44e7a..cc951312b4ed1 100644 --- a/llvm/test/Bitcode/global-variables.3.2.ll +++ b/llvm/test/Bitcode/global-variables.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; RUN: verify-uselistorder < %s.bc ; global-variables.3.2.ll.bc was generated by passing this file to llvm-as-3.2. diff --git a/llvm/test/Bitcode/highLevelStructure.3.2.ll b/llvm/test/Bitcode/highLevelStructure.3.2.ll index 26d260f075219..d9797b3202cd8 100644 --- a/llvm/test/Bitcode/highLevelStructure.3.2.ll +++ b/llvm/test/Bitcode/highLevelStructure.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; highLevelStructure.3.2.ll.bc was generated by passing this file to llvm-as-3.2. ; The test checks that LLVM does not misread binary float instructions of diff --git a/llvm/test/Bitcode/inalloca-upgrade.test b/llvm/test/Bitcode/inalloca-upgrade.test index c83c2ab244e65..b7678c34fcac5 100644 --- a/llvm/test/Bitcode/inalloca-upgrade.test +++ b/llvm/test/Bitcode/inalloca-upgrade.test @@ -1,4 +1,4 @@ -RUN: llvm-dis -opaque-pointers %p/Inputs/inalloca-upgrade.bc -o - | FileCheck %s +RUN: llvm-dis %p/Inputs/inalloca-upgrade.bc -o - | FileCheck %s Make sure we upgrade old-style IntAttribute inalloca records to a fully typed version correctly. diff --git a/llvm/test/Bitcode/inalloca.ll b/llvm/test/Bitcode/inalloca.ll index b7e1005c792e1..294f44e61e437 100644 --- a/llvm/test/Bitcode/inalloca.ll +++ b/llvm/test/Bitcode/inalloca.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; RUN: verify-uselistorder < %s ; inalloca should roundtrip. diff --git a/llvm/test/Bitcode/intrinsics-struct-upgrade.ll b/llvm/test/Bitcode/intrinsics-struct-upgrade.ll index 3bfbf09805b59..e7e944ed13121 100644 --- a/llvm/test/Bitcode/intrinsics-struct-upgrade.ll +++ b/llvm/test/Bitcode/intrinsics-struct-upgrade.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s %struct.__neon_int8x8x2_t = type { <8 x i8>, <8 x i8> } diff --git a/llvm/test/Bitcode/intrinsics-with-unnamed-types.ll b/llvm/test/Bitcode/intrinsics-with-unnamed-types.ll index 315c378f3265a..59567e31caec5 100644 --- a/llvm/test/Bitcode/intrinsics-with-unnamed-types.ll +++ b/llvm/test/Bitcode/intrinsics-with-unnamed-types.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -o - %s | llvm-dis -opaque-pointers -o - 2>&1 | FileCheck %s +; RUN: llvm-as -o - %s | llvm-dis -o - 2>&1 | FileCheck %s ; Make sure we can assemble and disassemble IR containing intrinsics with ; unnamed types. diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test index c45d07d952c1f..cf5dccb469d7d 100644 --- a/llvm/test/Bitcode/invalid.test +++ b/llvm/test/Bitcode/invalid.test @@ -1,26 +1,26 @@ RUN: export LSAN_OPTIONS=detect_leaks=0 RUN: not llvm-dis -disable-output %p/Inputs/invalid-empty.bc 2>&1 | \ -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-empty.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-empty.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-EMPTY %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-ENCODING %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-abbrev.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev.bc 2>&1 | \ RUN: FileCheck --check-prefix=BAD-ABBREV %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-unexpected-eof.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-unexpected-eof.bc 2>&1 | \ RUN: FileCheck --check-prefix=UNEXPECTED-EOF %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-bad-abbrev-number.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-bad-abbrev-number.bc 2>&1 | \ RUN: FileCheck --check-prefix=BAD-ABBREV-NUMBER %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-type-table-forward-ref.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-type-table-forward-ref.bc 2>&1 | \ RUN: FileCheck --check-prefix=BAD-TYPE-TABLE-FORWARD-REF %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-bitwidth.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-bitwidth.bc 2>&1 | \ RUN: FileCheck --check-prefix=BAD-BITWIDTH %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-align.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-align.bc 2>&1 | \ RUN: FileCheck --check-prefix=BAD-ALIGN %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-call-non-function-explicit-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-non-function-explicit-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-CALL %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-invoke-mismatched-explicit-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-invoke-mismatched-explicit-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-INVOKE %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-invoke-non-function-explicit-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-invoke-non-function-explicit-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-INVOKE %s INVALID-EMPTY: error: file too small to contain bitcode header @@ -35,17 +35,17 @@ NON-FUNCTION-EXPLICIT-CALL: Explicit call type is not a function type MISMATCHED-EXPLICIT-INVOKE: Insufficient operands to call NON-FUNCTION-EXPLICIT-INVOKE: Explicit invoke type is not a function type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-extractval-array-idx.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-array-idx.bc 2>&1 | \ RUN: FileCheck --check-prefix=EXTRACT-ARRAY %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-extractval-struct-idx.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-struct-idx.bc 2>&1 | \ RUN: FileCheck --check-prefix=EXTRACT-STRUCT %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-extractval-too-many-idxs.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-too-many-idxs.bc 2>&1 | \ RUN: FileCheck --check-prefix=EXTRACT-IDXS %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-insertval-array-idx.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-array-idx.bc 2>&1 | \ RUN: FileCheck --check-prefix=INSERT-ARRAY %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-insertval-struct-idx.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-struct-idx.bc 2>&1 | \ RUN: FileCheck --check-prefix=INSERT-STRUCT %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-insertval-too-many-idxs.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-too-many-idxs.bc 2>&1 | \ RUN: FileCheck --check-prefix=INSERT-IDXS %s @@ -56,233 +56,233 @@ INSERT-ARRAY: INSERTVAL: Invalid array index INSERT-STRUCT: INSERTVAL: Invalid struct index INSERT-IDXS: INSERTVAL: Invalid type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-fp-shift.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-fp-shift.bc 2>&1 | \ RUN: FileCheck --check-prefix=FP-SHIFT %s FP-SHIFT: Invalid record -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-abbrev-vbr-size-too-big.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-vbr-size-too-big.bc 2>&1 | \ RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-abbrev-fixed-size-too-big.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-fixed-size-too-big.bc 2>&1 | \ RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s HUGE-ABBREV-OP: Fixed or VBR abbrev record with size > MaxChunkData -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-array-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=ARRAY-TYPE %s ARRAY-TYPE: Array element type can't be an Array or a Blob -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-non-vector-extractelement.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-extractelement.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-TYPE %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-non-vector-insertelement.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-insertelement.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-TYPE %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-non-vector-shufflevector.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-shufflevector.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-TYPE %s INVALID-TYPE: Invalid type for value -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-fwdref-type-mismatch.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-fwdref-type-mismatch.bc 2>&1 | \ RUN: FileCheck --check-prefix=FWDREF-TYPE %s FWDREF-TYPE: Invalid record -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-fwdref-type-mismatch-2.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-fwdref-type-mismatch-2.bc 2>&1 | \ RUN: FileCheck --check-prefix=FWDREF-TYPE-MISMATCH %s FWDREF-TYPE-MISMATCH: Malformed block -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-array-element-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-element-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=ELEMENT-TYPE %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-vector-element-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-vector-element-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=ELEMENT-TYPE %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-pointer-element-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-pointer-element-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=ELEMENT-TYPE %s ELEMENT-TYPE: Invalid type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-cast.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-cast.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-CAST %s INVALID-CAST: Invalid cast -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-array-op-not-2nd-to-last.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-op-not-2nd-to-last.bc 2>&1 | \ RUN: FileCheck --check-prefix=ARRAY-NOT-2LAST %s ARRAY-NOT-2LAST: Array op not second to last -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-too-big-fwdref.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-too-big-fwdref.bc 2>&1 | \ RUN: FileCheck --check-prefix=HUGE-FWDREF %s HUGE-FWDREF: Invalid record -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-load-pointer-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-pointer-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=LOAD-BAD-TYPE %s LOAD-BAD-TYPE: Load operand is not a pointer type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-GCTable-overflow.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-GCTable-overflow.bc 2>&1 | \ RUN: FileCheck --check-prefix=GCTABLE-OFLOW %s GCTABLE-OFLOW: Invalid ID -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-insert-0-indices.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-insert-0-indices.bc 2>&1 | \ RUN: FileCheck --check-prefix=INSERT-0-IDXS %s INSERT-0-IDXS: INSERTVAL: Invalid instruction with 0 indices -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-extract-0-indices.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-extract-0-indices.bc 2>&1 | \ RUN: FileCheck --check-prefix=EXTRACT-0-IDXS %s EXTRACT-0-IDXS: EXTRACTVAL: Invalid instruction with 0 indices -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-load-ptr-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-ptr-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=BAD-LOAD-PTR-TYPE %s BAD-LOAD-PTR-TYPE: error: can't skip to bit -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-inserted-value-type-mismatch.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-inserted-value-type-mismatch.bc 2>&1 | \ RUN: FileCheck --check-prefix=INSERT-TYPE-MISMATCH %s INSERT-TYPE-MISMATCH: Inserted value type doesn't match aggregate type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-code-len-width.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-code-len-width.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-CODELENWIDTH %s INVALID-CODELENWIDTH: error: can't skip to bit -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-function-argument-type.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-function-argument-type.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-ARGUMENT-TYPE %s INVALID-ARGUMENT-TYPE: Invalid function argument type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-function-comdat-id.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-function-comdat-id.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-FCOMDAT-ID %s INVALID-FCOMDAT-ID: Malformed block -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-global-var-comdat-id.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-global-var-comdat-id.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-GVCOMDAT-ID %s INVALID-GVCOMDAT-ID: Invalid global variable comdat ID -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-abbrev-no-operands.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-no-operands.bc 2>&1 | \ RUN: FileCheck --check-prefix=ABBREV-NO-OPS %s ABBREV-NO-OPS: Abbrev record with no operands -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-array-operand-encoding.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-operand-encoding.bc 2>&1 | \ RUN: FileCheck --check-prefix=ARRAY-OP-ENC %s ARRAY-OP-ENC: Malformed block -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-metadata-not-followed-named-node.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-metadata-not-followed-named-node.bc 2>&1 | \ RUN: FileCheck --check-prefix=META-NOT-FOLLOWED-BY-NAMED-META %s META-NOT-FOLLOWED-BY-NAMED-META: Malformed block -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-vector-length.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-vector-length.bc 2>&1 | \ RUN: FileCheck --check-prefix=VECTOR-LENGTH %s VECTOR-LENGTH: Invalid vector length -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-alias-type-mismatch.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-alias-type-mismatch.bc 2>&1 | \ RUN: FileCheck --check-prefix=ALIAS-TYPE-MISMATCH %s ALIAS-TYPE-MISMATCH: Insufficient function protos -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-no-function-block.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-no-function-block.bc 2>&1 | \ RUN: FileCheck --check-prefix=NO-FUNCTION-BLOCK %s NO-FUNCTION-BLOCK: Trying to materialize functions before seeing function blocks (Producer: 'LLVM3.8.0git' Reader: 'LLVM -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-name-with-0-byte.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-name-with-0-byte.bc 2>&1 | \ RUN: FileCheck --check-prefix=NAME-WITH-0 %s NAME-WITH-0: Malformed block -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-void-constant.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-void-constant.bc 2>&1 | \ RUN: FileCheck --check-prefix=VOID-CONSTANT-TYPE %s VOID-CONSTANT-TYPE: Invalid constant type -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-gep-no-operands.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-gep-no-operands.bc 2>&1 | \ RUN: FileCheck --check-prefix=GEP-NO-OPERANDS %s GEP-NO-OPERANDS: Constant GEP record must have at least two elements -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-constant-gep.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-constant-gep.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-CONSTANT-GEP %s INVALID-CONSTANT-GEP: Constant GEP record must have at least two elements -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-nonpointer-storeatomic.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-nonpointer-storeatomic.bc 2>&1 | \ RUN: FileCheck --check-prefix=NONPOINTER-STOREATOMIC %s NONPOINTER-STOREATOMIC: Invalid record -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-nonpointer-atomicrmw.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-nonpointer-atomicrmw.bc 2>&1 | \ RUN: FileCheck --check-prefix=NONPOINTER-ATOMICRMW %s NONPOINTER-ATOMICRMW: Invalid record -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-fcmp-opnum.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-fcmp-opnum.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-FCMP-OPNUM %s INVALID-FCMP-OPNUM: Invalid record: operand number exceeded available operands -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-cmpxchg-ordering.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-cmpxchg-ordering.bc 2>&1 | \ RUN: FileCheck --check-prefix=CMPXCHG-ORDERING %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-cmpxchg-ordering-2.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-cmpxchg-ordering-2.bc 2>&1 | \ RUN: FileCheck --check-prefix=CMPXCHG-ORDERING %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-cmpxchg-ordering-3.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-cmpxchg-ordering-3.bc 2>&1 | \ RUN: FileCheck --check-prefix=CMPXCHG-ORDERING %s -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-cmpxchg-ordering-4.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-cmpxchg-ordering-4.bc 2>&1 | \ RUN: FileCheck --check-prefix=CMPXCHG-ORDERING %s CMPXCHG-ORDERING: Invalid cmpxchg {{failure|success}} ordering -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-abbrev-number.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-number.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-ABBREV-NUMBER %s INVALID-ABBREV-NUMBER: Invalid abbrev number -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-attribute-group-entry.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-attribute-group-entry.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-ATTRIBUTE-GROUP-ENTRY %s INVALID-ATTRIBUTE-GROUP-ENTRY: Invalid attribute group entry -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/unterminated-blob.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/unterminated-blob.bc 2>&1 | \ RUN: FileCheck --check-prefix=UNTERMINATED-BLOB %s UNTERMINATED-BLOB: Blob ends too soon -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-value-symbol-table.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-value-symbol-table.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-VALUE-SYMBOL-TABLE %s INVALID-VALUE-SYMBOL-TABLE: Invalid value reference in symbol table -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/unterminated-vbr.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/unterminated-vbr.bc 2>&1 | \ RUN: FileCheck --check-prefix=UNTERMINATED-VBR %s UNTERMINATED-VBR: Failed to read size: Unterminated VBR -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/comdat-name-too-large.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/comdat-name-too-large.bc 2>&1 | \ RUN: FileCheck --check-prefix=COMDAT-NAME-TOO-LARGE %s COMDAT-NAME-TOO-LARGE: Comdat name size too large -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-chunk-size.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-chunk-size.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-CHUNK-SIZE %s INVALID-CHUNK-SIZE: Fixed or VBR abbrev record with size > MaxChunkData -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-diimportedentity-record.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-diimportedentity-record.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-DIIMPORTEDENTITY-RECORD %s INVALID-DIIMPORTEDENTITY-RECORD: Invalid DIImportedEntity record -RUN: not llvm-dis -opaque-pointers -disable-output %p/Inputs/invalid-forward-declare.bc 2>&1 | \ +RUN: not llvm-dis -disable-output %p/Inputs/invalid-forward-declare.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-FORWARD-DECLARE %s INVALID-FORWARD-DECLARE: Assigned value does not match type of forward declaration diff --git a/llvm/test/Bitcode/local-linkage-default-visibility.3.4.ll b/llvm/test/Bitcode/local-linkage-default-visibility.3.4.ll index f6aa2f748b00a..2204407056e73 100644 --- a/llvm/test/Bitcode/local-linkage-default-visibility.3.4.ll +++ b/llvm/test/Bitcode/local-linkage-default-visibility.3.4.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder < %s.bc ; local-linkage-default-visibility.3.4.ll.bc was generated by passing this file diff --git a/llvm/test/Bitcode/memInstructions.3.2.ll b/llvm/test/Bitcode/memInstructions.3.2.ll index b67a15c578d8a..756f0dc983a3a 100644 --- a/llvm/test/Bitcode/memInstructions.3.2.ll +++ b/llvm/test/Bitcode/memInstructions.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; RUN: verify-uselistorder < %s.bc ; memOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2. diff --git a/llvm/test/Bitcode/metadata.3.5.ll b/llvm/test/Bitcode/metadata.3.5.ll index 991ac8994cf76..ca09b756dd64c 100644 --- a/llvm/test/Bitcode/metadata.3.5.ll +++ b/llvm/test/Bitcode/metadata.3.5.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; Check that metadata encoded in 3.5 is correctly understood going forward. ; diff --git a/llvm/test/Bitcode/miscInstructions.3.2.ll b/llvm/test/Bitcode/miscInstructions.3.2.ll index a3564ebb4b500..a1fb3663d0adb 100644 --- a/llvm/test/Bitcode/miscInstructions.3.2.ll +++ b/llvm/test/Bitcode/miscInstructions.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; miscInstructions.3.2.ll.bc was generated by passing this file to llvm-as-3.2. ; The test checks that LLVM does not misread miscellaneous instructions of diff --git a/llvm/test/Bitcode/nocfivalue.ll b/llvm/test/Bitcode/nocfivalue.ll index dcab27f871ddd..c689a160407de 100644 --- a/llvm/test/Bitcode/nocfivalue.ll +++ b/llvm/test/Bitcode/nocfivalue.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; RUN: verify-uselistorder %s ; CHECK: @a = global [4 x ptr] [ptr no_cfi @f1, ptr @f1, ptr @f2, ptr no_cfi @f2] diff --git a/llvm/test/Bitcode/objectsize-upgrade-7.0.ll b/llvm/test/Bitcode/objectsize-upgrade-7.0.ll index 89143bd03a051..5390fc91f2b26 100644 --- a/llvm/test/Bitcode/objectsize-upgrade-7.0.ll +++ b/llvm/test/Bitcode/objectsize-upgrade-7.0.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; Bitcode compatibility test for 'dynamic' parameter to llvm.objectsize. diff --git a/llvm/test/Bitcode/old-aliases.ll b/llvm/test/Bitcode/old-aliases.ll index f949408a867f5..a9db8ccd45f60 100644 --- a/llvm/test/Bitcode/old-aliases.ll +++ b/llvm/test/Bitcode/old-aliases.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder < %s.bc ; old-aliases.bc consist of this file assembled with an old llvm-as (3.5 trunk) diff --git a/llvm/test/Bitcode/sret-only-on-declaration.ll b/llvm/test/Bitcode/sret-only-on-declaration.ll index bc3e61352dfee..935883bea3717 100644 --- a/llvm/test/Bitcode/sret-only-on-declaration.ll +++ b/llvm/test/Bitcode/sret-only-on-declaration.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; CHECK: declare void @decl(ptr sret(i64)) ; CHECK: call void @decl(ptr %arg) diff --git a/llvm/test/Bitcode/standardCIntrinsic.3.2.ll b/llvm/test/Bitcode/standardCIntrinsic.3.2.ll index 5149db1fa6d3f..34ac6c49202de 100644 --- a/llvm/test/Bitcode/standardCIntrinsic.3.2.ll +++ b/llvm/test/Bitcode/standardCIntrinsic.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; standardCIntrinsic.3.2.ll.bc was generated by passing this file to llvm-as-3.2. ; The test checks that LLVM does not misread standard C library intrinsic functions diff --git a/llvm/test/Bitcode/terminatorInstructions.3.2.ll b/llvm/test/Bitcode/terminatorInstructions.3.2.ll index 4cc4361b4734e..6c8b4947e5be0 100644 --- a/llvm/test/Bitcode/terminatorInstructions.3.2.ll +++ b/llvm/test/Bitcode/terminatorInstructions.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; TerminatorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2. ; The test checks that LLVM does not misread terminator instructions from diff --git a/llvm/test/Bitcode/thinlto-summary-local-5.0.ll b/llvm/test/Bitcode/thinlto-summary-local-5.0.ll index 9d152232e7b46..08b7e8a57037e 100644 --- a/llvm/test/Bitcode/thinlto-summary-local-5.0.ll +++ b/llvm/test/Bitcode/thinlto-summary-local-5.0.ll @@ -2,7 +2,7 @@ ; Checks that older bitcode summaries without the dso_local op are still ; properly parsed and don't set GlobalValues as dso_local. -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: llvm-bcanalyzer -dump %s.bc | FileCheck %s --check-prefix=BCAN define void @foo() { diff --git a/llvm/test/Bitcode/upgrade-aarch64-ldstxr.ll b/llvm/test/Bitcode/upgrade-aarch64-ldstxr.ll index 7d4164749d304..cd5f32ec68e4e 100644 --- a/llvm/test/Bitcode/upgrade-aarch64-ldstxr.ll +++ b/llvm/test/Bitcode/upgrade-aarch64-ldstxr.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %S/upgrade-aarch64-ldstxr.bc | FileCheck %s +; RUN: llvm-dis < %S/upgrade-aarch64-ldstxr.bc | FileCheck %s define void @f(i32* %p) { ; CHECK: call i64 @llvm.aarch64.ldxr.p0(ptr elementtype(i32) diff --git a/llvm/test/Bitcode/upgrade-aarch64-sve-intrinsics.ll b/llvm/test/Bitcode/upgrade-aarch64-sve-intrinsics.ll index c60a3f1bda6a8..a2d171c173089 100644 --- a/llvm/test/Bitcode/upgrade-aarch64-sve-intrinsics.ll +++ b/llvm/test/Bitcode/upgrade-aarch64-sve-intrinsics.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as %s -o - | llvm-dis -opaque-pointers - | FileCheck %s +; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s define @ld2.nxv32i8( %Pg, i8 *%base_ptr) { ; CHECK: %1 = call { , } @llvm.aarch64.sve.ld2.sret.nxv16i8( %Pg, ptr %base_ptr) diff --git a/llvm/test/Bitcode/upgrade-annotation.ll b/llvm/test/Bitcode/upgrade-annotation.ll index 46d1c42fe4ede..0240d45d04194 100644 --- a/llvm/test/Bitcode/upgrade-annotation.ll +++ b/llvm/test/Bitcode/upgrade-annotation.ll @@ -1,7 +1,7 @@ ; Test upgrade of llvm.annotation intrinsics. ; -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; TYPED: define i32 @f(i32 [[ARG0:%.*]], ptr [[ARG1:%.*]], ptr [[ARG2:%.*]], i32 [[ARG3:%.*]]) diff --git a/llvm/test/Bitcode/upgrade-arc-attachedcall-bundle.ll b/llvm/test/Bitcode/upgrade-arc-attachedcall-bundle.ll index c7c495a84b11d..635c8dd449bec 100644 --- a/llvm/test/Bitcode/upgrade-arc-attachedcall-bundle.ll +++ b/llvm/test/Bitcode/upgrade-arc-attachedcall-bundle.ll @@ -1,6 +1,6 @@ ; Test that nullary clang.arc.attachedcall operand bundles are "upgraded". -; RUN: llvm-dis -opaque-pointers %s.bc -o - | FileCheck %s +; RUN: llvm-dis %s.bc -o - | FileCheck %s ; RUN: verify-uselistorder %s.bc define i8* @invalid() { diff --git a/llvm/test/Bitcode/upgrade-arc-runtime-calls-bitcast.ll b/llvm/test/Bitcode/upgrade-arc-runtime-calls-bitcast.ll index 2215cf5c8efc6..944b98288634d 100644 --- a/llvm/test/Bitcode/upgrade-arc-runtime-calls-bitcast.ll +++ b/llvm/test/Bitcode/upgrade-arc-runtime-calls-bitcast.ll @@ -1,6 +1,6 @@ target triple = "arm64-apple-ios7.0" -; RUN: llvm-dis -opaque-pointers < %S/upgrade-arc-runtime-calls-bitcast.bc | FileCheck %s +; RUN: llvm-dis < %S/upgrade-arc-runtime-calls-bitcast.bc | FileCheck %s ; CHECK: tail call ptr @objc_retain(i32 1) ; CHECK: tail call ptr @objc_storeStrong( diff --git a/llvm/test/Bitcode/upgrade-arc-runtime-calls.ll b/llvm/test/Bitcode/upgrade-arc-runtime-calls.ll index 503c9cc31c20e..19f25f98953fa 100644 --- a/llvm/test/Bitcode/upgrade-arc-runtime-calls.ll +++ b/llvm/test/Bitcode/upgrade-arc-runtime-calls.ll @@ -6,9 +6,9 @@ ; metadata. upgrade-arc-runtime-calls-new.bc has the new module flag format of ; marker, it should not be upgraded. -; RUN: llvm-dis -opaque-pointers < %S/upgrade-arc-runtime-calls.bc | FileCheck -check-prefixes=ARC %s -; RUN: llvm-dis -opaque-pointers < %S/upgrade-mrr-runtime-calls.bc | FileCheck -check-prefixes=NOUPGRADE %s -; RUN: llvm-dis -opaque-pointers < %S/upgrade-arc-runtime-calls-new.bc | FileCheck -check-prefixes=NOUPGRADE %s +; RUN: llvm-dis < %S/upgrade-arc-runtime-calls.bc | FileCheck -check-prefixes=ARC %s +; RUN: llvm-dis < %S/upgrade-mrr-runtime-calls.bc | FileCheck -check-prefixes=NOUPGRADE %s +; RUN: llvm-dis < %S/upgrade-arc-runtime-calls-new.bc | FileCheck -check-prefixes=NOUPGRADE %s define void @testRuntimeCalls(i8* %a, i8** %b, i8** %c, i32* %d, i32** %e) personality i32 (...)* @__gxx_personality_v0 { entry: diff --git a/llvm/test/Bitcode/upgrade-elementtype.ll b/llvm/test/Bitcode/upgrade-elementtype.ll index babfda40d3339..aa3a8bba065de 100644 --- a/llvm/test/Bitcode/upgrade-elementtype.ll +++ b/llvm/test/Bitcode/upgrade-elementtype.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -S < %s.bc | FileCheck %s +; RUN: opt -S < %s.bc | FileCheck %s %struct.s = type { i32, i32 } diff --git a/llvm/test/Bitcode/upgrade-global-ctors.ll b/llvm/test/Bitcode/upgrade-global-ctors.ll index 1c082a35cf45a..7c3776da41f56 100644 --- a/llvm/test/Bitcode/upgrade-global-ctors.ll +++ b/llvm/test/Bitcode/upgrade-global-ctors.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; RUN: verify-uselistorder < %s.bc ; The 2-field form @llvm.global_ctors will be upgraded when reading bitcode. diff --git a/llvm/test/Bitcode/upgrade-global-dtors.ll b/llvm/test/Bitcode/upgrade-global-dtors.ll index 3c1f055723d0a..5b5741de1f470 100644 --- a/llvm/test/Bitcode/upgrade-global-dtors.ll +++ b/llvm/test/Bitcode/upgrade-global-dtors.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder < %s.bc ; The 2-field form @llvm.global_dtors will be upgraded when reading bitcode. diff --git a/llvm/test/Bitcode/upgrade-inline-asm-elementtype.ll b/llvm/test/Bitcode/upgrade-inline-asm-elementtype.ll index 05156a9556f2a..f12a54fe62287 100644 --- a/llvm/test/Bitcode/upgrade-inline-asm-elementtype.ll +++ b/llvm/test/Bitcode/upgrade-inline-asm-elementtype.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; CHECK: call void asm "", "=*rm,r"(ptr elementtype(i32) %p1, ptr %p2) define void @test_call(i32* %p1, i32* %p2) { diff --git a/llvm/test/Bitcode/upgrade-ptr-annotation.ll b/llvm/test/Bitcode/upgrade-ptr-annotation.ll index 66355a95ae8f0..8ce3213279d68 100644 --- a/llvm/test/Bitcode/upgrade-ptr-annotation.ll +++ b/llvm/test/Bitcode/upgrade-ptr-annotation.ll @@ -1,7 +1,7 @@ ; Test upgrade of ptr.annotation intrinsics. ; -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; Unused return values ; The arguments passed to the intrinisic wouldn't normally be arguments to diff --git a/llvm/test/Bitcode/upgrade-tbaa.ll b/llvm/test/Bitcode/upgrade-tbaa.ll index 4d2d94398091e..7a70d9993df60 100644 --- a/llvm/test/Bitcode/upgrade-tbaa.ll +++ b/llvm/test/Bitcode/upgrade-tbaa.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; RUN: verify-uselistorder < %s ; Function Attrs: nounwind diff --git a/llvm/test/Bitcode/upgrade-var-annotation.ll b/llvm/test/Bitcode/upgrade-var-annotation.ll index 6470727870afa..2248b304fd6a5 100644 --- a/llvm/test/Bitcode/upgrade-var-annotation.ll +++ b/llvm/test/Bitcode/upgrade-var-annotation.ll @@ -1,7 +1,7 @@ ; Test upgrade of var.annotation intrinsics. ; -; RUN: llvm-as < %s | llvm-dis -opaque-pointers | FileCheck %s -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s define void @f(i8* %arg0, i8* %arg1, i8* %arg2, i32 %arg3) { diff --git a/llvm/test/Bitcode/variableArgumentIntrinsic.3.2.ll b/llvm/test/Bitcode/variableArgumentIntrinsic.3.2.ll index fa0a953b64258..fad7b8ea6a58b 100644 --- a/llvm/test/Bitcode/variableArgumentIntrinsic.3.2.ll +++ b/llvm/test/Bitcode/variableArgumentIntrinsic.3.2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc| FileCheck %s +; RUN: llvm-dis < %s.bc| FileCheck %s ; RUN: verify-uselistorder < %s.bc ; vaArgIntrinsic.3.2.ll.bc was generated by passing this file to llvm-as-3.2. diff --git a/llvm/test/Bitcode/weak-cmpxchg-upgrade.ll b/llvm/test/Bitcode/weak-cmpxchg-upgrade.ll index 88a4888406846..9e75fb93dc50e 100644 --- a/llvm/test/Bitcode/weak-cmpxchg-upgrade.ll +++ b/llvm/test/Bitcode/weak-cmpxchg-upgrade.ll @@ -1,4 +1,4 @@ -; RUN: llvm-dis -opaque-pointers < %s.bc | FileCheck %s +; RUN: llvm-dis < %s.bc | FileCheck %s ; RUN: verify-uselistorder < %s.bc ; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just diff --git a/llvm/test/Bitcode/x86_intr-upgrade.test b/llvm/test/Bitcode/x86_intr-upgrade.test index 92bae5cca8f88..61bc4ea8f2c32 100644 --- a/llvm/test/Bitcode/x86_intr-upgrade.test +++ b/llvm/test/Bitcode/x86_intr-upgrade.test @@ -1,4 +1,4 @@ -RUN: llvm-dis -opaque-pointers=1 %p/Inputs/x86_intrcc_upgrade.bc -o - | FileCheck %s +RUN: llvm-dis %p/Inputs/x86_intrcc_upgrade.bc -o - | FileCheck %s Make sure we upgrade x86_intrcc to a byval with explicit type diff --git a/llvm/test/BugPoint/attr-crash.ll b/llvm/test/BugPoint/attr-crash.ll index 04add41d6dd8d..c87cdf476761c 100644 --- a/llvm/test/BugPoint/attr-crash.ll +++ b/llvm/test/BugPoint/attr-crash.ll @@ -1,4 +1,4 @@ -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashfuncattr -opt-args -opaque-pointers 2>&1 | FileCheck %s +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashfuncattr -opt-args 2>&1 | FileCheck %s ; REQUIRES: plugins ; ; ModuleID = 'attr-crash.ll' diff --git a/llvm/test/BugPoint/metadata.ll b/llvm/test/BugPoint/metadata.ll index f3f12dbe16b28..29ab74bb656c6 100644 --- a/llvm/test/BugPoint/metadata.ll +++ b/llvm/test/BugPoint/metadata.ll @@ -1,12 +1,12 @@ ; REQUIRES: plugins -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -silence-passes -disable-namedmd-remove -disable-strip-debuginfo -disable-strip-debug-types -opt-args -opaque-pointers > /dev/null -; RUN: llvm-dis -opaque-pointers %t-reduced-simplified.bc -o - | FileCheck %s +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -silence-passes -disable-namedmd-remove -disable-strip-debuginfo -disable-strip-debug-types -opt-args > /dev/null +; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s ; -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t-nodebug -bugpoint-crashcalls -silence-passes -disable-namedmd-remove -opt-args -opaque-pointers > /dev/null -; RUN: llvm-dis -opaque-pointers %t-nodebug-reduced-simplified.bc -o - | FileCheck %s --check-prefix=NODEBUG +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t-nodebug -bugpoint-crashcalls -silence-passes -disable-namedmd-remove -opt-args > /dev/null +; RUN: llvm-dis %t-nodebug-reduced-simplified.bc -o - | FileCheck %s --check-prefix=NODEBUG ; -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t-notype -bugpoint-crashcalls -silence-passes -disable-namedmd-remove -disable-strip-debuginfo -opt-args -opaque-pointers > /dev/null -; RUN: llvm-dis -opaque-pointers %t-notype-reduced-simplified.bc -o - | FileCheck %s --check-prefix=NOTYPE +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t-notype -bugpoint-crashcalls -silence-passes -disable-namedmd-remove -disable-strip-debuginfo -opt-args > /dev/null +; RUN: llvm-dis %t-notype-reduced-simplified.bc -o - | FileCheck %s --check-prefix=NOTYPE ; ; Bugpoint can drop the metadata on the call, as it does not contrinute to the crash. diff --git a/llvm/test/BugPoint/remove_arguments_test.ll b/llvm/test/BugPoint/remove_arguments_test.ll index 66c3621ac8ac8..9e9c51eaafc38 100644 --- a/llvm/test/BugPoint/remove_arguments_test.ll +++ b/llvm/test/BugPoint/remove_arguments_test.ll @@ -1,5 +1,5 @@ -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -silence-passes -opt-args -opaque-pointers -; RUN: llvm-dis -opaque-pointers %t-reduced-simplified.bc -o - | FileCheck %s +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -silence-passes +; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s ; REQUIRES: plugins ; Test to make sure that arguments are removed from the function if they are diff --git a/llvm/test/BugPoint/replace-funcs-with-null.ll b/llvm/test/BugPoint/replace-funcs-with-null.ll index 5b19f9d099632..783c8a07911c0 100644 --- a/llvm/test/BugPoint/replace-funcs-with-null.ll +++ b/llvm/test/BugPoint/replace-funcs-with-null.ll @@ -1,6 +1,6 @@ ; Test that bugpoint can reduce the set of functions by replacing them with null. ; -; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc -opt-args -opaque-pointers +; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc ; REQUIRES: plugins @foo2 = alias i32 (), ptr @foo diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-divrem.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-divrem.mir index 385532ca60614..faa47312d99ce 100644 --- a/llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-divrem.mir +++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-divrem.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=amdgpu-prelegalizer-combiner -opaque-pointers=1 -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=amdgpu-prelegalizer-combiner -verify-machineinstrs -o - %s | FileCheck %s --- name: test_sdiv_srem diff --git a/llvm/test/CodeGen/AMDGPU/clamp-omod-special-case.mir b/llvm/test/CodeGen/AMDGPU/clamp-omod-special-case.mir index 93bb4612bed48..3bebc640ac116 100644 --- a/llvm/test/CodeGen/AMDGPU/clamp-omod-special-case.mir +++ b/llvm/test/CodeGen/AMDGPU/clamp-omod-special-case.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -verify-machineinstrs -run-pass si-fold-operands %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass si-fold-operands %s -o - | FileCheck -check-prefix=GCN %s --- # GCN-LABEL: name: v_max_self_clamp_not_set_f32 # GCN: %20:vgpr_32 = V_ADD_F32_e64 0, killed %17, 0, 1065353216, 0, 0, implicit $mode, implicit $exec diff --git a/llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir b/llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir index 2549e51b1d0b0..c347860570ba8 100644 --- a/llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir +++ b/llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -mtriple=amdgcn--amdhsa -mcpu=gfx900 -verify-machineinstrs -run-pass si-fold-operands,dead-mi-elimination -o - %s | FileCheck -enable-var-scope -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx900 -verify-machineinstrs -run-pass si-fold-operands,dead-mi-elimination -o - %s | FileCheck -enable-var-scope -check-prefix=GCN %s ... # GCN-LABEL: name: s_fold_and_imm_regimm_32{{$}} diff --git a/llvm/test/CodeGen/AMDGPU/fp-atomic-to-s_denormmode.mir b/llvm/test/CodeGen/AMDGPU/fp-atomic-to-s_denormmode.mir index cec3679b10497..5a33425623659 100644 --- a/llvm/test/CodeGen/AMDGPU/fp-atomic-to-s_denormmode.mir +++ b/llvm/test/CodeGen/AMDGPU/fp-atomic-to-s_denormmode.mir @@ -1,5 +1,5 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass post-RA-hazard-rec -o - %s | FileCheck -check-prefixes=GCN,GFX10 %s -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs -run-pass post-RA-hazard-rec -o - %s | FileCheck -check-prefixes=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass post-RA-hazard-rec -o - %s | FileCheck -check-prefixes=GCN,GFX10 %s +# RUN: llc -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs -run-pass post-RA-hazard-rec -o - %s | FileCheck -check-prefixes=GCN %s # GCN-LABEL: name: flat_atomic_fcmpswap_to_s_denorm_mode # GCN: FLAT_ATOMIC_FCMPSWAP diff --git a/llvm/test/CodeGen/AMDGPU/lds-dma-waitcnt.mir b/llvm/test/CodeGen/AMDGPU/lds-dma-waitcnt.mir index 64e1625571fb9..1e4618b7eebe2 100644 --- a/llvm/test/CodeGen/AMDGPU/lds-dma-waitcnt.mir +++ b/llvm/test/CodeGen/AMDGPU/lds-dma-waitcnt.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx940 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx940 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefix=GCN %s # GCN-LABEL: name: buffer_load_dword_lds_ds_read # GCN: BUFFER_LOAD_DWORD_LDS_IDXEN diff --git a/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-triple.ll b/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-triple.ll index 1104cc96d214c..9b1d5305a7696 100644 --- a/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-triple.ll +++ b/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-triple.ll @@ -1,8 +1,8 @@ ; This test checks that the Local Accessor to Shared Memory pass runs with the ; `amdgcn-amd-amdhsa` triple, but not with `amdgcn-amd-amdpal`. ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers -mtriple=amdgcn-amd-amdhsa < %s | FileCheck --check-prefix=CHECK-VALID %s -; RUN: llc -opaque-pointers -mtriple=amdgcn-amd-amdpal < %s | FileCheck --check-prefix=CHECK-INVALID %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa < %s | FileCheck --check-prefix=CHECK-VALID %s +; RUN: llc -mtriple=amdgcn-amd-amdpal < %s | FileCheck --check-prefix=CHECK-INVALID %s ; end ; ModuleID = 'local-accessor-to-shared-memory-triple.ll' diff --git a/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-valid-triple.ll b/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-valid-triple.ll index 94ed4aeb63eb2..e47851320ff1c 100644 --- a/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-valid-triple.ll +++ b/llvm/test/CodeGen/AMDGPU/local-accessor-to-shared-memory-valid-triple.ll @@ -1,8 +1,8 @@ ; This test checks that the Local Accessor to Shared Memory pass runs with the ; `amdgcn-amd-amdhsa` triple and does not if the option is not present. ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers -mtriple=amdgcn-amd-amdhsa < %s | FileCheck --check-prefix=CHECK-OPT %s -; RUN: llc -opaque-pointers -mtriple=amdgcn-amd-amdhsa < %s | FileCheck --check-prefix=CHECK-OPT %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa < %s | FileCheck --check-prefix=CHECK-OPT %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa < %s | FileCheck --check-prefix=CHECK-OPT %s ; end ; ModuleID = 'local-accessor-to-shared-memory-valid-triple.ll' diff --git a/llvm/test/CodeGen/AMDGPU/memory-legalizer-invalid-addrspace.mir b/llvm/test/CodeGen/AMDGPU/memory-legalizer-invalid-addrspace.mir index 17d72ac698257..abf74d3efd144 100644 --- a/llvm/test/CodeGen/AMDGPU/memory-legalizer-invalid-addrspace.mir +++ b/llvm/test/CodeGen/AMDGPU/memory-legalizer-invalid-addrspace.mir @@ -1,4 +1,4 @@ -# RUN: not llc --opaque-pointers -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - 2>&1 | FileCheck -check-prefix=GCN %s +# RUN: not llc -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - 2>&1 | FileCheck -check-prefix=GCN %s --- diff --git a/llvm/test/CodeGen/AMDGPU/memory-legalizer-local.mir b/llvm/test/CodeGen/AMDGPU/memory-legalizer-local.mir index cdf3c29a33735..af4feb9634cb2 100644 --- a/llvm/test/CodeGen/AMDGPU/memory-legalizer-local.mir +++ b/llvm/test/CodeGen/AMDGPU/memory-legalizer-local.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - | FileCheck -check-prefix=GCN %s --- diff --git a/llvm/test/CodeGen/AMDGPU/memory-legalizer-multiple-mem-operands-atomics.mir b/llvm/test/CodeGen/AMDGPU/memory-legalizer-multiple-mem-operands-atomics.mir index c16f569ee341c..3223a4bf2bb72 100644 --- a/llvm/test/CodeGen/AMDGPU/memory-legalizer-multiple-mem-operands-atomics.mir +++ b/llvm/test/CodeGen/AMDGPU/memory-legalizer-multiple-mem-operands-atomics.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - | FileCheck -check-prefix=GCN %s --- diff --git a/llvm/test/CodeGen/AMDGPU/memory-legalizer-region.mir b/llvm/test/CodeGen/AMDGPU/memory-legalizer-region.mir index b8a131e7bfee2..13133de8fd537 100644 --- a/llvm/test/CodeGen/AMDGPU/memory-legalizer-region.mir +++ b/llvm/test/CodeGen/AMDGPU/memory-legalizer-region.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass si-memory-legalizer %s -o - | FileCheck -check-prefix=GCN %s --- diff --git a/llvm/test/CodeGen/AMDGPU/merge-flat-load-store.mir b/llvm/test/CodeGen/AMDGPU/merge-flat-load-store.mir index f5dc2f5efc33b..f9801a50dfd74 100644 --- a/llvm/test/CodeGen/AMDGPU/merge-flat-load-store.mir +++ b/llvm/test/CodeGen/AMDGPU/merge-flat-load-store.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -run-pass=si-load-store-opt -opaque-pointers=1 -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -run-pass=si-load-store-opt -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s --- name: merge_flat_load_dword_2 diff --git a/llvm/test/CodeGen/AMDGPU/merge-flat-with-global-load-store.mir b/llvm/test/CodeGen/AMDGPU/merge-flat-with-global-load-store.mir index e5ccda5b36b32..3a0c973d12456 100644 --- a/llvm/test/CodeGen/AMDGPU/merge-flat-with-global-load-store.mir +++ b/llvm/test/CodeGen/AMDGPU/merge-flat-with-global-load-store.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -run-pass=si-load-store-opt -opaque-pointers=1 -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -run-pass=si-load-store-opt -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s --- name: merge_flat_global_load_dword_2 diff --git a/llvm/test/CodeGen/AMDGPU/merge-global-load-store.mir b/llvm/test/CodeGen/AMDGPU/merge-global-load-store.mir index 43e9c548e3248..32d7e4afbaf9d 100644 --- a/llvm/test/CodeGen/AMDGPU/merge-global-load-store.mir +++ b/llvm/test/CodeGen/AMDGPU/merge-global-load-store.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -run-pass=si-load-store-opt -opaque-pointers=1 -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -run-pass=si-load-store-opt -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s --- name: merge_global_load_dword_2 diff --git a/llvm/test/CodeGen/AMDGPU/merge-load-store-agpr.mir b/llvm/test/CodeGen/AMDGPU/merge-load-store-agpr.mir index 2506edcc33fbe..4feede7fc919f 100644 --- a/llvm/test/CodeGen/AMDGPU/merge-load-store-agpr.mir +++ b/llvm/test/CodeGen/AMDGPU/merge-load-store-agpr.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx90a -verify-machineinstrs -run-pass si-load-store-opt -o - %s | FileCheck -enable-var-scope -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx90a -verify-machineinstrs -run-pass si-load-store-opt -o - %s | FileCheck -enable-var-scope -check-prefix=GCN %s # GCN-LABEL: name: ds_read_b32_v_v # GCN: vreg_64_align2 = DS_READ2_B32 diff --git a/llvm/test/CodeGen/AMDGPU/merge-out-of-order-ldst.mir b/llvm/test/CodeGen/AMDGPU/merge-out-of-order-ldst.mir index 24e114bcd0dab..83e841e22c60f 100644 --- a/llvm/test/CodeGen/AMDGPU/merge-out-of-order-ldst.mir +++ b/llvm/test/CodeGen/AMDGPU/merge-out-of-order-ldst.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs -run-pass si-load-store-opt %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs -run-pass si-load-store-opt %s -o - | FileCheck -check-prefix=GCN %s # GCN-LABEL: name: out_of_order_merge # GCN: DS_READ2_B64_gfx9 diff --git a/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir b/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir index ce968a70e31b3..83c30507ce3ce 100644 --- a/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir +++ b/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -mtriple amdgcn -run-pass livevars -run-pass phi-node-elimination -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -mtriple amdgcn -run-pass livevars -run-pass phi-node-elimination -verify-machineinstrs -o - %s | FileCheck %s # CHECK-LABEL: phi-cf-test # CHECK: bb.0: diff --git a/llvm/test/CodeGen/AMDGPU/schedule-regpressure.mir b/llvm/test/CodeGen/AMDGPU/schedule-regpressure.mir index 49fc66eaa2b07..b4755c3b51b41 100644 --- a/llvm/test/CodeGen/AMDGPU/schedule-regpressure.mir +++ b/llvm/test/CodeGen/AMDGPU/schedule-regpressure.mir @@ -1,5 +1,5 @@ -# RUN: llc --opaque-pointers -march=amdgcn -misched=converge -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s -# RUN: llc --opaque-pointers -march=amdgcn -misched-regpressure=false -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s --check-prefix=NORP +# RUN: llc -march=amdgcn -misched=converge -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s +# RUN: llc -march=amdgcn -misched-regpressure=false -run-pass machine-scheduler %s -o - -debug-only=machine-scheduler 2>&1 | FileCheck %s --check-prefix=NORP # REQUIRES: asserts diff --git a/llvm/test/CodeGen/AMDGPU/smem-no-clause-coalesced.mir b/llvm/test/CodeGen/AMDGPU/smem-no-clause-coalesced.mir index b71ca2a84e2ae..a0e20da9cf77a 100644 --- a/llvm/test/CodeGen/AMDGPU/smem-no-clause-coalesced.mir +++ b/llvm/test/CodeGen/AMDGPU/smem-no-clause-coalesced.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx902 -o - %s -run-pass si-form-memory-clauses -verify-machineinstrs | FileCheck -check-prefix=XNACK %s +# RUN: llc -march=amdgcn -mcpu=gfx902 -o - %s -run-pass si-form-memory-clauses -verify-machineinstrs | FileCheck -check-prefix=XNACK %s # The SIFormMemoryClauses pass must not form a clause (indicated by BUNDLE) # from the two adjacent smem instructions, because the first one has its diff --git a/llvm/test/CodeGen/AMDGPU/undefined-physreg-sgpr-spill.mir b/llvm/test/CodeGen/AMDGPU/undefined-physreg-sgpr-spill.mir index deb112f32599a..f9853017b9d3f 100644 --- a/llvm/test/CodeGen/AMDGPU/undefined-physreg-sgpr-spill.mir +++ b/llvm/test/CodeGen/AMDGPU/undefined-physreg-sgpr-spill.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -mtriple=amdgcn--amdhsa -mcpu=gfx900 -run-pass si-optimize-exec-masking -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx900 -run-pass si-optimize-exec-masking -verify-machineinstrs -o - %s | FileCheck %s --- | define amdgpu_kernel void @undefined_physreg_sgpr_spill() #0 { unreachable diff --git a/llvm/test/CodeGen/AMDGPU/waitcnt-back-edge-loop.mir b/llvm/test/CodeGen/AMDGPU/waitcnt-back-edge-loop.mir index e71b4bb27d8b0..cfad6f4a6c432 100644 --- a/llvm/test/CodeGen/AMDGPU/waitcnt-back-edge-loop.mir +++ b/llvm/test/CodeGen/AMDGPU/waitcnt-back-edge-loop.mir @@ -1,4 +1,4 @@ -# RUN: llc --opaque-pointers -o - %s -march=amdgcn -mcpu=fiji -run-pass=si-insert-waitcnts -verify-machineinstrs | FileCheck -check-prefix=GCN %s +# RUN: llc -o - %s -march=amdgcn -mcpu=fiji -run-pass=si-insert-waitcnts -verify-machineinstrs | FileCheck -check-prefix=GCN %s # GCN-LABEL: waitcnt-back-edge-loop # GCN: bb.2 diff --git a/llvm/test/CodeGen/AMDGPU/waitcnt-vscnt.mir b/llvm/test/CodeGen/AMDGPU/waitcnt-vscnt.mir index b826734ffcf63..01ebe4422b2ff 100644 --- a/llvm/test/CodeGen/AMDGPU/waitcnt-vscnt.mir +++ b/llvm/test/CodeGen/AMDGPU/waitcnt-vscnt.mir @@ -1,5 +1,5 @@ -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefixes=GCN,GFX10 %s -# RUN: llc --opaque-pointers -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefixes=GCN,GFX11 %s +# RUN: llc -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefixes=GCN,GFX10 %s +# RUN: llc -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefixes=GCN,GFX11 %s # GCN-LABEL: waitcnt-vscnt # GCN: GLOBAL_ATOMIC_ADD_RTN diff --git a/llvm/test/CodeGen/MIR/Generic/aligned-memoperands.mir b/llvm/test/CodeGen/MIR/Generic/aligned-memoperands.mir index 4105bff9bf173..a6f2154100d55 100644 --- a/llvm/test/CodeGen/MIR/Generic/aligned-memoperands.mir +++ b/llvm/test/CodeGen/MIR/Generic/aligned-memoperands.mir @@ -1,4 +1,4 @@ -# RUN: llc -opaque-pointers -run-pass none -o - %s | FileCheck %s +# RUN: llc -run-pass none -o - %s | FileCheck %s --- name: aligned_memoperands diff --git a/llvm/test/CodeGen/SPIRV/EnqueueEmptyKernel.ll b/llvm/test/CodeGen/SPIRV/EnqueueEmptyKernel.ll index 2112464de75a7..679f8ff7a0017 100644 --- a/llvm/test/CodeGen/SPIRV/EnqueueEmptyKernel.ll +++ b/llvm/test/CodeGen/SPIRV/EnqueueEmptyKernel.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ;; This test checks that Invoke parameter of OpEnueueKernel instruction meet the ;; following specification requirements in case of enqueueing empty block: diff --git a/llvm/test/CodeGen/SPIRV/SampledImageRetType.ll b/llvm/test/CodeGen/SPIRV/SampledImageRetType.ll index 00dbf6fe658bd..3bdda3655eaad 100644 --- a/llvm/test/CodeGen/SPIRV/SampledImageRetType.ll +++ b/llvm/test/CodeGen/SPIRV/SampledImageRetType.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s %opencl.image1d_ro_t = type opaque ; CHECK: %[[#image1d_t:]] = OpTypeImage diff --git a/llvm/test/CodeGen/SPIRV/atomicrmw.ll b/llvm/test/CodeGen/SPIRV/atomicrmw.ll index de192d5bd422d..401b21224e7dd 100644 --- a/llvm/test/CodeGen/SPIRV/atomicrmw.ll +++ b/llvm/test/CodeGen/SPIRV/atomicrmw.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ; CHECK: %[[#Int:]] = OpTypeInt 32 0 ; CHECK-DAG: %[[#Scope_Device:]] = OpConstant %[[#Int]] 1 {{$}} diff --git a/llvm/test/CodeGen/SPIRV/constant/global-constants.ll b/llvm/test/CodeGen/SPIRV/constant/global-constants.ll index 33eaec7c5042d..916c70628d016 100644 --- a/llvm/test/CodeGen/SPIRV/constant/global-constants.ll +++ b/llvm/test/CodeGen/SPIRV/constant/global-constants.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s @global = addrspace(1) constant i32 1 ; OpenCL global memory @constant = addrspace(2) constant i32 2 ; OpenCL constant memory diff --git a/llvm/test/CodeGen/SPIRV/constant/local-null-constants.ll b/llvm/test/CodeGen/SPIRV/constant/local-null-constants.ll index 05b738d227e72..36930385ae6d8 100644 --- a/llvm/test/CodeGen/SPIRV/constant/local-null-constants.ll +++ b/llvm/test/CodeGen/SPIRV/constant/local-null-constants.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ;; OpenCL global memory define i32 addrspace(1)* @getConstant1() { diff --git a/llvm/test/CodeGen/SPIRV/function/alloca-load-store.ll b/llvm/test/CodeGen/SPIRV/function/alloca-load-store.ll index d4cac793cf47d..7331de5f4b456 100644 --- a/llvm/test/CodeGen/SPIRV/function/alloca-load-store.ll +++ b/llvm/test/CodeGen/SPIRV/function/alloca-load-store.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ; CHECK-DAG: OpName %[[#BAR:]] "bar" ; CHECK-DAG: OpName %[[#FOO:]] "foo" diff --git a/llvm/test/CodeGen/SPIRV/half_extension.ll b/llvm/test/CodeGen/SPIRV/half_extension.ll index af1c858cfb759..b30e5514c95be 100644 --- a/llvm/test/CodeGen/SPIRV/half_extension.ll +++ b/llvm/test/CodeGen/SPIRV/half_extension.ll @@ -7,7 +7,7 @@ ;; return y; ;; } -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: OpCapability Float16Buffer ; CHECK-SPIRV-DAG: OpCapability Float16 diff --git a/llvm/test/CodeGen/SPIRV/half_no_extension.ll b/llvm/test/CodeGen/SPIRV/half_no_extension.ll index 611d029065342..a5b0ec9c92d23 100644 --- a/llvm/test/CodeGen/SPIRV/half_no_extension.ll +++ b/llvm/test/CodeGen/SPIRV/half_no_extension.ll @@ -5,7 +5,7 @@ ;; vstorea_half4_rtp( data, 0, f ); ;; } -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: OpCapability Float16Buffer ; CHECK-SPIRV-NOT: OpCapability Float16 diff --git a/llvm/test/CodeGen/SPIRV/image-unoptimized.ll b/llvm/test/CodeGen/SPIRV/image-unoptimized.ll index 5fb51565ccbe4..3604f1bddb188 100644 --- a/llvm/test/CodeGen/SPIRV/image-unoptimized.ll +++ b/llvm/test/CodeGen/SPIRV/image-unoptimized.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ; CHECK: %[[#TypeImage:]] = OpTypeImage ; CHECK: %[[#TypeSampler:]] = OpTypeSampler diff --git a/llvm/test/CodeGen/SPIRV/image.ll b/llvm/test/CodeGen/SPIRV/image.ll index a852429bf05ea..dec605d152ca2 100644 --- a/llvm/test/CodeGen/SPIRV/image.ll +++ b/llvm/test/CodeGen/SPIRV/image.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#VOID_TY:]] = OpTypeVoid ; CHECK-SPIRV-DAG: %[[#]] = OpTypeImage %[[#VOID_TY]] 2D 0 0 0 0 Unknown ReadOnly diff --git a/llvm/test/CodeGen/SPIRV/image_decl_func_arg.ll b/llvm/test/CodeGen/SPIRV/image_decl_func_arg.ll index b461d09171b4b..ae8ded7713421 100644 --- a/llvm/test/CodeGen/SPIRV/image_decl_func_arg.ll +++ b/llvm/test/CodeGen/SPIRV/image_decl_func_arg.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#TypeImage:]] = OpTypeImage ; CHECK-SPIRV-NOT: OpTypeImage diff --git a/llvm/test/CodeGen/SPIRV/image_dim.ll b/llvm/test/CodeGen/SPIRV/image_dim.ll index 2f5f04f8f9056..45353718d6a6e 100644 --- a/llvm/test/CodeGen/SPIRV/image_dim.ll +++ b/llvm/test/CodeGen/SPIRV/image_dim.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: OpCapability Sampled1D ; CHECK-SPIRV-DAG: OpCapability SampledBuffer diff --git a/llvm/test/CodeGen/SPIRV/image_store.ll b/llvm/test/CodeGen/SPIRV/image_store.ll index 3542cc2e8e9b3..3327fd09d4a2e 100644 --- a/llvm/test/CodeGen/SPIRV/image_store.ll +++ b/llvm/test/CodeGen/SPIRV/image_store.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ;; Image types may be represented in two ways while translating to SPIR-V: ;; - OpenCL form based on pointers-to-opaque-structs, e.g. '%opencl.image2d_ro_t', diff --git a/llvm/test/CodeGen/SPIRV/link-attribute.ll b/llvm/test/CodeGen/SPIRV/link-attribute.ll index c69d64debd7a5..172950e4ca381 100644 --- a/llvm/test/CodeGen/SPIRV/link-attribute.ll +++ b/llvm/test/CodeGen/SPIRV/link-attribute.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s %opencl.image2d_t = type opaque diff --git a/llvm/test/CodeGen/SPIRV/linked-list.ll b/llvm/test/CodeGen/SPIRV/linked-list.ll index bce363385328d..126b030d64bc2 100644 --- a/llvm/test/CodeGen/SPIRV/linked-list.ll +++ b/llvm/test/CodeGen/SPIRV/linked-list.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s %struct.Node = type { %struct.Node.0 addrspace(1)* } ; CHECK: %[[#]] = OpTypeOpaque "struct.Node.0" diff --git a/llvm/test/CodeGen/SPIRV/literal-struct.ll b/llvm/test/CodeGen/SPIRV/literal-struct.ll index 2e36b7fa58350..584ac57d6d4d2 100644 --- a/llvm/test/CodeGen/SPIRV/literal-struct.ll +++ b/llvm/test/CodeGen/SPIRV/literal-struct.ll @@ -11,7 +11,7 @@ ;; myBlock(); ;; } -; RUN: llc -opaque-pointers=0 -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ; CHECK: OpName %[[#StructType0:]] "struct.__opencl_block_literal_generic" ; CHECK: %[[#Int8:]] = OpTypeInt 8 0 diff --git a/llvm/test/CodeGen/SPIRV/llvm-intrinsics/memset.ll b/llvm/test/CodeGen/SPIRV/llvm-intrinsics/memset.ll index bab94f7450d1f..0ccace31781ca 100644 --- a/llvm/test/CodeGen/SPIRV/llvm-intrinsics/memset.ll +++ b/llvm/test/CodeGen/SPIRV/llvm-intrinsics/memset.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: OpDecorate %[[#NonConstMemset:]] LinkageAttributes "spirv.llvm_memset_p3i8_i32" ; CHECK-SPIRV: %[[#Int32:]] = OpTypeInt 32 0 diff --git a/llvm/test/CodeGen/SPIRV/llvm-intrinsics/sqrt.ll b/llvm/test/CodeGen/SPIRV/llvm-intrinsics/sqrt.ll index 5e6ad7ffbdbfe..4b1d7535dba32 100644 --- a/llvm/test/CodeGen/SPIRV/llvm-intrinsics/sqrt.ll +++ b/llvm/test/CodeGen/SPIRV/llvm-intrinsics/sqrt.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ; CHECK: %[[#ExtInstSetId:]] = OpExtInstImport "OpenCL.std" ; CHECK: %[[#Float:]] = OpTypeFloat 32 diff --git a/llvm/test/CodeGen/SPIRV/opencl.queue_t.ll b/llvm/test/CodeGen/SPIRV/opencl.queue_t.ll index edf4ac99aff92..5c07fe6e3e3f5 100644 --- a/llvm/test/CodeGen/SPIRV/opencl.queue_t.ll +++ b/llvm/test/CodeGen/SPIRV/opencl.queue_t.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: OpCapability DeviceEnqueue ; CHECK-SPIRV: OpTypeQueue diff --git a/llvm/test/CodeGen/SPIRV/opencl/basic/get_global_offset.ll b/llvm/test/CodeGen/SPIRV/opencl/basic/get_global_offset.ll index bacc3e7b4997f..2d07dae0a63f1 100644 --- a/llvm/test/CodeGen/SPIRV/opencl/basic/get_global_offset.ll +++ b/llvm/test/CodeGen/SPIRV/opencl/basic/get_global_offset.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ; CHECK: OpEntryPoint Kernel %[[#test_func:]] "test" ; CHECK: OpName %[[#outOffsets:]] "outOffsets" diff --git a/llvm/test/CodeGen/SPIRV/opencl/basic/progvar_prog_scope_init.ll b/llvm/test/CodeGen/SPIRV/opencl/basic/progvar_prog_scope_init.ll index 7a293c25d1579..9d759a1cf47d0 100644 --- a/llvm/test/CodeGen/SPIRV/opencl/basic/progvar_prog_scope_init.ll +++ b/llvm/test/CodeGen/SPIRV/opencl/basic/progvar_prog_scope_init.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ; CHECK: OpEntryPoint Kernel %[[#f1:]] "writer" ; CHECK: OpEntryPoint Kernel %[[#f2:]] "reader" diff --git a/llvm/test/CodeGen/SPIRV/opencl/basic/vstore_private.ll b/llvm/test/CodeGen/SPIRV/opencl/basic/vstore_private.ll index a8db42bab56a4..2bc4b447c2ed1 100644 --- a/llvm/test/CodeGen/SPIRV/opencl/basic/vstore_private.ll +++ b/llvm/test/CodeGen/SPIRV/opencl/basic/vstore_private.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ; CHECK: %[[#i16_ty:]] = OpTypeInt 16 0 ; CHECK: %[[#v4xi16_ty:]] = OpTypeVector %[[#i16_ty]] 4 diff --git a/llvm/test/CodeGen/SPIRV/opencl/get_global_id.ll b/llvm/test/CodeGen/SPIRV/opencl/get_global_id.ll index 7512f29233722..d6074191b3acb 100644 --- a/llvm/test/CodeGen/SPIRV/opencl/get_global_id.ll +++ b/llvm/test/CodeGen/SPIRV/opencl/get_global_id.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -mtriple=spirv64-unknown-unknown -opaque-pointers=0 %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ;; The set of valid inputs for get_global_id depends on the runtime NDRange, ;; but inputs outside of [0, 2] always return 0. diff --git a/llvm/test/CodeGen/SPIRV/opencl/image.ll b/llvm/test/CodeGen/SPIRV/opencl/image.ll index 1dee3aca16536..43fcda71e8300 100644 --- a/llvm/test/CodeGen/SPIRV/opencl/image.ll +++ b/llvm/test/CodeGen/SPIRV/opencl/image.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ;; FIXME: Write tests to ensure invalid usage of image are rejected, such as: ;; - invalid AS (only global is allowed); diff --git a/llvm/test/CodeGen/SPIRV/pstruct.ll b/llvm/test/CodeGen/SPIRV/pstruct.ll index 01b05b01e70b6..9ae80ab2ab54f 100644 --- a/llvm/test/CodeGen/SPIRV/pstruct.ll +++ b/llvm/test/CodeGen/SPIRV/pstruct.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV %struct.ST = type { i32, i32, i32 } diff --git a/llvm/test/CodeGen/SPIRV/read_image.ll b/llvm/test/CodeGen/SPIRV/read_image.ll index d6a3b482184df..1fdcf9b5d9086 100644 --- a/llvm/test/CodeGen/SPIRV/read_image.ll +++ b/llvm/test/CodeGen/SPIRV/read_image.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#IntTy:]] = OpTypeInt ; CHECK-SPIRV: %[[#IVecTy:]] = OpTypeVector %[[#IntTy]] diff --git a/llvm/test/CodeGen/SPIRV/struct.ll b/llvm/test/CodeGen/SPIRV/struct.ll index 15d251cd17f35..e17d1fbf6bef3 100644 --- a/llvm/test/CodeGen/SPIRV/struct.ll +++ b/llvm/test/CodeGen/SPIRV/struct.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV %struct.ST = type { i32, i32, i32 } diff --git a/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll b/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll index f5236b365eb91..79d360324110c 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll @@ -18,7 +18,7 @@ ;; } ;; bash$ $PATH_TO_GEN/bin/clang -cc1 -x cl -cl-std=CL2.0 -triple spir64-unknown-unknown -emit-llvm -include opencl-20.h BuildNDRange_2.cl -o BuildNDRange_2.ll -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: %[[#LEN2_ID:]] = OpConstant %[[#]] 2 ; CHECK-SPIRV-DAG: %[[#LEN3_ID:]] = OpConstant %[[#]] 3 diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpConstantSampler.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpConstantSampler.ll index e5b721e80e585..c85a9c76c5055 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpConstantSampler.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpConstantSampler.ll @@ -10,7 +10,7 @@ ;; read_imagef(src, sampler2, 0, 0); ;; } -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#SamplerID0:]] = OpConstantSampler %[[#]] Repeat 1 Nearest ; CHECK-SPIRV: %[[#SamplerID1:]] = OpConstantSampler %[[#]] None 0 Nearest diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpImageQuerySize.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpImageQuerySize.ll index 3808eec72877d..ca80dcd6999cd 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpImageQuerySize.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpImageQuerySize.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ;; Check conversion of get_image_width, get_image_height, get_image_depth, ;; get_image_array_size, and get_image_dim OCL built-ins. diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpImageReadMS.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpImageReadMS.ll index 7c1a41a8e51a7..f523c037059bf 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpImageReadMS.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpImageReadMS.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#]] = OpImageRead %[[#]] %[[#]] %[[#]] Sample %[[#]] diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpImageSampleExplicitLod.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpImageSampleExplicitLod.ll index 8f2753d71c18f..9c4ecad750f04 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpImageSampleExplicitLod.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpImageSampleExplicitLod.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: %[[#RetID:]] = OpImageSampleExplicitLod %[[#RetType:]] %[[#]] %[[#]] Lod %[[#]] ; CHECK-SPIRV-DAG: %[[#RetType]] = OpTypeVector %[[#]] 4 diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpImageWrite.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpImageWrite.ll index ef44126d800cf..7c8efa405c707 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpImageWrite.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpImageWrite.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#VOID_TY:]] = OpTypeVoid ; CHECK-SPIRV: %[[#IMG2D_WO_TY:]] = OpTypeImage %[[#VOID_TY]] 2D 0 0 0 0 Unknown WriteOnly diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_cmpxchg.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_cmpxchg.ll index 9297d17cfa323..331960cdb341e 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_cmpxchg.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_cmpxchg.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ;; This test checks that the backend is capable to correctly translate ;; atomic_cmpxchg OpenCL C 1.2 built-in function [1] into corresponding SPIR-V diff --git a/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_legacy.ll b/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_legacy.ll index 741fbf88fec0b..95eb6ade11a25 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_legacy.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/OpenCL/atomic_legacy.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ;; This test checks that the backend is capable to correctly translate ;; legacy atomic OpenCL C 1.2 built-in functions [1] into corresponding SPIR-V diff --git a/llvm/test/CodeGen/SPIRV/transcoding/SampledImage.ll b/llvm/test/CodeGen/SPIRV/transcoding/SampledImage.ll index ac9fa0b1335f3..73981becc3b3f 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/SampledImage.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/SampledImage.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ;; constant sampler_t constSampl = CLK_FILTER_LINEAR; ;; diff --git a/llvm/test/CodeGen/SPIRV/transcoding/block_w_struct_return.ll b/llvm/test/CodeGen/SPIRV/transcoding/block_w_struct_return.ll index cf0c65f597172..52b25a5913f09 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/block_w_struct_return.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/block_w_struct_return.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK-SPIRV,CHECK-SPIRV1_4 +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK-SPIRV,CHECK-SPIRV1_4 ;; TODO: We cannot check SPIR_V 1.1 and 1.4 simultaneously, implement additional ;; run with CHECK-SPIRV1_1. diff --git a/llvm/test/CodeGen/SPIRV/transcoding/check_ro_qualifier.ll b/llvm/test/CodeGen/SPIRV/transcoding/check_ro_qualifier.ll index 4988ea41aa88e..731fe55b50774 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/check_ro_qualifier.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/check_ro_qualifier.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: %[[#IMAGE_TYPE:]] = OpTypeImage ; CHECK-SPIRV: %[[#IMAGE_ARG:]] = OpFunctionParameter %[[#IMAGE_TYPE]] diff --git a/llvm/test/CodeGen/SPIRV/transcoding/cl-types.ll b/llvm/test/CodeGen/SPIRV/transcoding/cl-types.ll index edc571e6d05b8..19910ff1d11b0 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/cl-types.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/cl-types.ll @@ -18,7 +18,7 @@ ;; ) { ;; } -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: OpCapability Sampled1D ; CHECK-SPIRV-DAG: OpCapability SampledBuffer diff --git a/llvm/test/CodeGen/SPIRV/transcoding/clk_event_t.ll b/llvm/test/CodeGen/SPIRV/transcoding/clk_event_t.ll index 150d5459ec25e..1f7e981a07cee 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/clk_event_t.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/clk_event_t.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: OpTypeDeviceEvent ; CHECK-SPIRV: OpFunction diff --git a/llvm/test/CodeGen/SPIRV/transcoding/enqueue_kernel.ll b/llvm/test/CodeGen/SPIRV/transcoding/enqueue_kernel.ll index ee91f0bde619e..6de03dd165187 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/enqueue_kernel.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/enqueue_kernel.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV: OpEntryPoint Kernel %[[#BlockKer1:]] "__device_side_enqueue_block_invoke_kernel" ; CHECK-SPIRV: OpEntryPoint Kernel %[[#BlockKer2:]] "__device_side_enqueue_block_invoke_2_kernel" diff --git a/llvm/test/CodeGen/SPIRV/transcoding/extract_insert_value.ll b/llvm/test/CodeGen/SPIRV/transcoding/extract_insert_value.ll index e0392d05cc306..eb47260d249d9 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/extract_insert_value.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/extract_insert_value.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ;; Check 'LLVM ==> SPIR-V' conversion of extractvalue/insertvalue. diff --git a/llvm/test/CodeGen/SPIRV/transcoding/get_image_num_mip_levels.ll b/llvm/test/CodeGen/SPIRV/transcoding/get_image_num_mip_levels.ll index 33a11f31b2e15..704f5a6c52dd8 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/get_image_num_mip_levels.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/get_image_num_mip_levels.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s ;; Types: ; CHECK-DAG: %[[#INT:]] = OpTypeInt 32 diff --git a/llvm/test/CodeGen/SPIRV/transcoding/global_block.ll b/llvm/test/CodeGen/SPIRV/transcoding/global_block.ll index 01faff880e49f..96b275956178c 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/global_block.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/global_block.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK-SPIRV,CHECK-SPIRV1_4 +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK-SPIRV,CHECK-SPIRV1_4 ;; There are no blocks in SPIR-V. Therefore they are translated into regular ;; functions. An LLVM module which uses blocks, also contains some auxiliary diff --git a/llvm/test/CodeGen/SPIRV/transcoding/image_get_size_with_access_qualifiers.ll b/llvm/test/CodeGen/SPIRV/transcoding/image_get_size_with_access_qualifiers.ll index 4f461f3c43d20..6ef311c1d2f57 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/image_get_size_with_access_qualifiers.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/image_get_size_with_access_qualifiers.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: %[[#IntTyID:]] = OpTypeInt ; CHECK-SPIRV-DAG: %[[#VoidTyID:]] = OpTypeVoid diff --git a/llvm/test/CodeGen/SPIRV/transcoding/image_with_access_qualifiers.ll b/llvm/test/CodeGen/SPIRV/transcoding/image_with_access_qualifiers.ll index 09c4860b86f36..00c7d61f91998 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/image_with_access_qualifiers.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/image_with_access_qualifiers.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-DAG: OpCapability ImageReadWrite ; CHECK-SPIRV-DAG: OpCapability LiteralSampler diff --git a/llvm/test/CodeGen/SPIRV/transcoding/optional-core-features-multiple.ll b/llvm/test/CodeGen/SPIRV/transcoding/optional-core-features-multiple.ll index a5254cdd6e7ef..0c666820f7938 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/optional-core-features-multiple.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/optional-core-features-multiple.ll @@ -4,7 +4,7 @@ ;; kernel void test(read_only image2d_t img) {} ;; ----------------------------------------------- -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV %opencl.image2d_t = type opaque diff --git a/llvm/test/CodeGen/SPIRV/transcoding/spec_const.ll b/llvm/test/CodeGen/SPIRV/transcoding/spec_const.ll index 6b76d3754366e..0e10c964186ee 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/spec_const.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/spec_const.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; CHECK-SPIRV-NOT: OpCapability Matrix ; CHECK-SPIRV-NOT: OpCapability Shader diff --git a/llvm/test/CodeGen/SPIRV/transcoding/spirv-private-array-initialization.ll b/llvm/test/CodeGen/SPIRV/transcoding/spirv-private-array-initialization.ll index 079a2a6ce0e5e..18aa060f8fc6d 100644 --- a/llvm/test/CodeGen/SPIRV/transcoding/spirv-private-array-initialization.ll +++ b/llvm/test/CodeGen/SPIRV/transcoding/spirv-private-array-initialization.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -opaque-pointers=0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV +; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV ; ; CHECK-SPIRV-DAG: %[[#i32:]] = OpTypeInt 32 0 ; CHECK-SPIRV-DAG: %[[#i8:]] = OpTypeInt 8 0 diff --git a/llvm/test/CodeGen/X86/2010-02-01-TaillCallCrash.ll b/llvm/test/CodeGen/X86/2010-02-01-TaillCallCrash.ll index 21d747021738b..f5a83171adb9a 100644 --- a/llvm/test/CodeGen/X86/2010-02-01-TaillCallCrash.ll +++ b/llvm/test/CodeGen/X86/2010-02-01-TaillCallCrash.ll @@ -1,4 +1,4 @@ -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-linux-gnu +; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu ; PR6196 %"char[]" = type [1 x i8] diff --git a/llvm/test/CodeGen/X86/2010-06-09-FastAllocRegisters.ll b/llvm/test/CodeGen/X86/2010-06-09-FastAllocRegisters.ll index 7d50398b0d924..0347f930f048d 100644 --- a/llvm/test/CodeGen/X86/2010-06-09-FastAllocRegisters.ll +++ b/llvm/test/CodeGen/X86/2010-06-09-FastAllocRegisters.ll @@ -1,4 +1,4 @@ -; RUN: llc -opaque-pointers < %s -O0 -frame-pointer=all -relocation-model=pic +; RUN: llc < %s -O0 -frame-pointer=all -relocation-model=pic ; PR7313 ; ; The inline asm in this function clobbers almost all allocatable registers. diff --git a/llvm/test/CodeGen/X86/MergeConsecutiveStores.ll b/llvm/test/CodeGen/X86/MergeConsecutiveStores.ll index bf641c802205c..06cd6c1ecda34 100644 --- a/llvm/test/CodeGen/X86/MergeConsecutiveStores.ll +++ b/llvm/test/CodeGen/X86/MergeConsecutiveStores.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers -mtriple=x86_64-unknown-unknown -mattr=+avx -fixup-byte-word-insts=1 < %s | FileCheck -check-prefix=CHECK -check-prefix=BWON %s -; RUN: llc -opaque-pointers -mtriple=x86_64-unknown-unknown -mattr=+avx -fixup-byte-word-insts=0 < %s | FileCheck -check-prefix=CHECK -check-prefix=BWOFF %s +; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+avx -fixup-byte-word-insts=1 < %s | FileCheck -check-prefix=CHECK -check-prefix=BWON %s +; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+avx -fixup-byte-word-insts=0 < %s | FileCheck -check-prefix=CHECK -check-prefix=BWOFF %s ; end %struct.A = type { i8, i8, i8, i8, i8, i8, i8, i8 } diff --git a/llvm/test/CodeGen/X86/atom-pad-short-functions.ll b/llvm/test/CodeGen/X86/atom-pad-short-functions.ll index be6dd190a996c..06800bd244de3 100644 --- a/llvm/test/CodeGen/X86/atom-pad-short-functions.ll +++ b/llvm/test/CodeGen/X86/atom-pad-short-functions.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -opaque-pointers < %s -O1 -mcpu=atom -mtriple=i686-linux | FileCheck %s +; RUN: llc < %s -O1 -mcpu=atom -mtriple=i686-linux | FileCheck %s declare void @external_function(...) diff --git a/llvm/test/CodeGen/X86/avx512-broadcast-unfold.ll b/llvm/test/CodeGen/X86/avx512-broadcast-unfold.ll index d7eb8b5411bbf..d013858df0cbe 100644 --- a/llvm/test/CodeGen/X86/avx512-broadcast-unfold.ll +++ b/llvm/test/CodeGen/X86/avx512-broadcast-unfold.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-pc-linux -mattr=avx512vl | FileCheck %s +; RUN: llc < %s -mtriple=x86_64-pc-linux -mattr=avx512vl | FileCheck %s ; end ; Test that we can unfold constant pool loads when we're using avx512's diff --git a/llvm/test/CodeGen/X86/block-placement.ll b/llvm/test/CodeGen/X86/block-placement.ll index 86e8385d097c8..b2a0344392c9b 100644 --- a/llvm/test/CodeGen/X86/block-placement.ll +++ b/llvm/test/CodeGen/X86/block-placement.ll @@ -1,6 +1,6 @@ ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers -mtriple=i686-linux -pre-RA-sched=source < %s | FileCheck %s -; RUN: opt -opaque-pointers -disable-output -passes=debugify < %s +; RUN: llc -mtriple=i686-linux -pre-RA-sched=source < %s | FileCheck %s +; RUN: opt -disable-output -passes=debugify < %s ; end declare void @error(i32 %i, i32 %a, i32 %b) diff --git a/llvm/test/CodeGen/X86/bug47278.mir b/llvm/test/CodeGen/X86/bug47278.mir index 0506cbeddbadb..0b01c9de19c0b 100644 --- a/llvm/test/CodeGen/X86/bug47278.mir +++ b/llvm/test/CodeGen/X86/bug47278.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -opaque-pointers -mtriple=i386-unknown-linux-musl -verify-machineinstrs -run-pass=regallocfast -o - %s | FileCheck %s +# RUN: llc -mtriple=i386-unknown-linux-musl -verify-machineinstrs -run-pass=regallocfast -o - %s | FileCheck %s # Make sure this case doesn't assert or try to assign $ecx to %1 on # SHRD32rrCL diff --git a/llvm/test/CodeGen/X86/call-site-info-output.ll b/llvm/test/CodeGen/X86/call-site-info-output.ll index 60add3eea58ee..c40400d39c6be 100644 --- a/llvm/test/CodeGen/X86/call-site-info-output.ll +++ b/llvm/test/CodeGen/X86/call-site-info-output.ll @@ -1,6 +1,6 @@ ; Test call site info MIR printer and parser.Parser assertions and machine ; verifier will check the rest; -; RUN: llc -opaque-pointers -emit-call-site-info %s -stop-before=finalize-isel -o %t.mir +; RUN: llc -emit-call-site-info %s -stop-before=finalize-isel -o %t.mir ; RUN: cat %t.mir | FileCheck %s ; CHECK: name: fn2 ; CHECK: callSites: @@ -10,7 +10,7 @@ ; CHECK-NEXT: arg: 0, reg: '$edi' ; CHECK-NEXT: arg: 1, reg: '$esi' ; CHECK-NEXT: arg: 2, reg: '$edx' -; RUN: llc -opaque-pointers -emit-call-site-info %t.mir -run-pass=finalize-isel -o -| FileCheck %s --check-prefix=PARSER +; RUN: llc -emit-call-site-info %t.mir -run-pass=finalize-isel -o -| FileCheck %s --check-prefix=PARSER ; Verify that we are able to parse output mir and that we are getting the same result. ; PARSER: name: fn2 ; PARSER: callSites: diff --git a/llvm/test/CodeGen/X86/dso_local_equivalent_errors.ll b/llvm/test/CodeGen/X86/dso_local_equivalent_errors.ll index 8d7af87b2f9f5..c2b7602e248cd 100644 --- a/llvm/test/CodeGen/X86/dso_local_equivalent_errors.ll +++ b/llvm/test/CodeGen/X86/dso_local_equivalent_errors.ll @@ -1,6 +1,6 @@ ; RUN: split-file %s %t -; RUN: not llc -opaque-pointers -mtriple=x86_64-linux-gnu -o - %t/undefined_func.ll 2>&1 | FileCheck %s -check-prefix=UNDEFINED -; RUN: not llc -opaque-pointers -mtriple=x86_64-linux-gnu -o - %t/invalid_arg.ll 2>&1 | FileCheck %s -check-prefix=INVALID +; RUN: not llc -mtriple=x86_64-linux-gnu -o - %t/undefined_func.ll 2>&1 | FileCheck %s -check-prefix=UNDEFINED +; RUN: not llc -mtriple=x86_64-linux-gnu -o - %t/invalid_arg.ll 2>&1 | FileCheck %s -check-prefix=INVALID ;--- undefined_func.ll ; UNDEFINED: error: unknown function 'undefined_func' referenced by dso_local_equivalent diff --git a/llvm/test/CodeGen/X86/fp-stack-O0.ll b/llvm/test/CodeGen/X86/fp-stack-O0.ll index a85686ef39d44..d7b776838feeb 100644 --- a/llvm/test/CodeGen/X86/fp-stack-O0.ll +++ b/llvm/test/CodeGen/X86/fp-stack-O0.ll @@ -1,4 +1,4 @@ -; RUN: llc -opaque-pointers < %s -O0 | FileCheck %s +; RUN: llc < %s -O0 | FileCheck %s target triple = "x86_64-apple-macosx" declare x86_fp80 @x1(i32) nounwind diff --git a/llvm/test/CodeGen/X86/indirect-branch-tracking-r2.ll b/llvm/test/CodeGen/X86/indirect-branch-tracking-r2.ll index 1521b4e0912ae..c9978d64f1c97 100644 --- a/llvm/test/CodeGen/X86/indirect-branch-tracking-r2.ll +++ b/llvm/test/CodeGen/X86/indirect-branch-tracking-r2.ll @@ -1,5 +1,5 @@ -; RUN: llc -opaque-pointers -mtriple=x86_64-unknown-unknown < %s | FileCheck %s --check-prefix=X64 -; RUN: llc -opaque-pointers -mtriple=i386-unknown-unknown < %s | FileCheck %s --check-prefix=X86 +; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s --check-prefix=X64 +; RUN: llc -mtriple=i386-unknown-unknown < %s | FileCheck %s --check-prefix=X86 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; foo diff --git a/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll b/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll index a546d988bd8ec..e3c108d7a5843 100644 --- a/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll +++ b/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-darwin | FileCheck %s --check-prefix=GENERIC -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-darwin -mcpu=atom | FileCheck %s --check-prefix=ATOM +; RUN: llc < %s -mtriple=x86_64-darwin | FileCheck %s --check-prefix=GENERIC +; RUN: llc < %s -mtriple=x86_64-darwin -mcpu=atom | FileCheck %s --check-prefix=ATOM ; end @Te0 = external global [256 x i32] ; <[256 x i32]*> [#uses=5] diff --git a/llvm/test/CodeGen/X86/min-legal-vector-width.ll b/llvm/test/CodeGen/X86/min-legal-vector-width.ll index 4826ac3ed9817..801e395a86d78 100644 --- a/llvm/test/CodeGen/X86/min-legal-vector-width.ll +++ b/llvm/test/CodeGen/X86/min-legal-vector-width.ll @@ -1,15 +1,15 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 -mattr=prefer-256-bit | FileCheck %s --check-prefixes=CHECK,CHECK-SKX -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 -mattr=prefer-256-bit,avx512vbmi | FileCheck %s --check-prefixes=CHECK,CHECK-SKX,CHECK-SKX-VBMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 -mattr=prefer-256-bit | FileCheck %s --check-prefixes=CHECK,CHECK-SKX +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 -mattr=prefer-256-bit,avx512vbmi | FileCheck %s --check-prefixes=CHECK,CHECK-SKX,CHECK-SKX-VBMI ; Make sure CPUs default to prefer-256-bit. avx512vnni isn't interesting as it just adds an isel peephole for vpmaddwd+vpaddd -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 | FileCheck %s --check-prefixes=CHECK,CHECK-AVX512 -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=cascadelake | FileCheck %s --check-prefixes=CHECK,CHECK-AVX512 -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=cooperlake | FileCheck %s --check-prefixes=CHECK,CHECK-AVX512 -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mcpu=cannonlake | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=icelake-client | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=icelake-server | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=tigerlake | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 | FileCheck %s --check-prefixes=CHECK,CHECK-AVX512 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=cascadelake | FileCheck %s --check-prefixes=CHECK,CHECK-AVX512 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=cooperlake | FileCheck %s --check-prefixes=CHECK,CHECK-AVX512 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=cannonlake | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=icelake-client | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=icelake-server | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-avx512vnni -mcpu=tigerlake | FileCheck %s --check-prefixes=CHECK,CHECK-VBMI ; end ; This file primarily contains tests for specific places in X86ISelLowering.cpp that needed be made aware of the legalizer not allowing 512-bit vectors due to prefer-256-bit even though AVX512 is enabled. diff --git a/llvm/test/CodeGen/X86/movpc32-check.ll b/llvm/test/CodeGen/X86/movpc32-check.ll index 6fbe7e7b06f9b..e3730d02a949b 100644 --- a/llvm/test/CodeGen/X86/movpc32-check.ll +++ b/llvm/test/CodeGen/X86/movpc32-check.ll @@ -1,4 +1,4 @@ -; RUN: llc -opaque-pointers < %s -mtriple=i686-pc-linux -relocation-model=pic | FileCheck %s +; RUN: llc < %s -mtriple=i686-pc-linux -relocation-model=pic | FileCheck %s target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128" target triple = "i686-pc-linux" diff --git a/llvm/test/CodeGen/X86/pr22103.ll b/llvm/test/CodeGen/X86/pr22103.ll index 37933237f5bed..26c9996d3a9c2 100644 --- a/llvm/test/CodeGen/X86/pr22103.ll +++ b/llvm/test/CodeGen/X86/pr22103.ll @@ -1,4 +1,4 @@ -; RUN: llc -opaque-pointers < %s | FileCheck %s +; RUN: llc < %s | FileCheck %s ; Don't try to emit a direct call through a TLS global. ; This fixes PR22103 diff --git a/llvm/test/CodeGen/X86/sad.ll b/llvm/test/CodeGen/X86/sad.ll index acb6e4df282d0..cbe63a7c7b456 100644 --- a/llvm/test/CodeGen/X86/sad.ll +++ b/llvm/test/CodeGen/X86/sad.ll @@ -1,10 +1,10 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefixes=SSE2 -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=AVX,AVX1 -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=AVX,AVX2 -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=AVX,AVX512,AVX512F -; RUN: llc -opaque-pointers < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefixes=AVX,AVX512,AVX512BW +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefixes=SSE2 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=AVX,AVX1 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=AVX,AVX2 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=AVX,AVX512,AVX512F +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefixes=AVX,AVX512,AVX512BW ; end @a = dso_local global [1024 x i8] zeroinitializer, align 16 diff --git a/llvm/test/DebugInfo/COFF/local-variable-gap.ll b/llvm/test/DebugInfo/COFF/local-variable-gap.ll index aab96ecc1a541..bc1c3135474bc 100644 --- a/llvm/test/DebugInfo/COFF/local-variable-gap.ll +++ b/llvm/test/DebugInfo/COFF/local-variable-gap.ll @@ -1,5 +1,5 @@ -; RUN: llc -opaque-pointers -mtriple=x86_64-windows-msvc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -opaque-pointers -mtriple=x86_64-windows-msvc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ +; RUN: llc -mtriple=x86_64-windows-msvc < %s | FileCheck %s --check-prefix=ASM +; RUN: llc -mtriple=x86_64-windows-msvc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; This test attempts to exercise gaps in local variables. The local variable 'p' ; will end up in some CSR (esi), which will be used in both the BB scheduled diff --git a/llvm/test/DebugInfo/Generic/assignment-tracking/instcombine/intel-alloca-bitcast.ll b/llvm/test/DebugInfo/Generic/assignment-tracking/instcombine/intel-alloca-bitcast.ll deleted file mode 100644 index 3b68aa320072d..0000000000000 --- a/llvm/test/DebugInfo/Generic/assignment-tracking/instcombine/intel-alloca-bitcast.ll +++ /dev/null @@ -1,75 +0,0 @@ -; RUN: opt -opaque-pointers=0 -passes=instcombine -S %s -o - \ -; RUN: | FileCheck %s - -;; NOTE: This test uses typed pointers because it is testing a code path that -;; doesn't get exercised with opaque pointers. If/when PromoteCastOfAllocation -;; is removed from visitBitCast this test should just be deleted. - -;; Check that allocas generated in InstCombine's PromoteCastOfAllocation -;; have DIAssignID copied from the original alloca. -;; -;; $ cat reduce.cpp -;; struct c { -;; c(int); -;; int a, b; -;; }; -;; c d() { -;; c e(1); -;; return e; -;; } -;; $ clang -O2 -c -g reduce.cpp -fno-inline -Xclang -disable-llvm-passes -emit-llvm -S \ -;; | opt -opaque-pointers=0 -passes=declare-to-assign -S - -; CHECK: entry: -; CHECK-NEXT: %retval = alloca i64, align 8, !DIAssignID ![[ID:[0-9]+]] -; CHECK-NEXT: %tmpcast = bitcast i64* %retval to %struct.c* -; CHECK-NEXT: call void @llvm.dbg.assign(metadata i1 undef, metadata ![[e:[0-9]+]], metadata !DIExpression(), metadata ![[ID]], metadata i64* %retval, metadata !DIExpression()), !dbg -; CHECK: ![[e]] = !DILocalVariable(name: "e", - -target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" - -%struct.c = type { i32, i32 } - -define dso_local i64 @_Z1dv() !dbg !7 { -entry: - %retval = alloca %struct.c, align 4, !DIAssignID !21 - call void @llvm.dbg.assign(metadata i1 undef, metadata !20, metadata !DIExpression(), metadata !21, metadata %struct.c* %retval, metadata !DIExpression()), !dbg !22 - call void @_ZN1cC1Ei(%struct.c* %retval, i32 1), !dbg !23 - %0 = bitcast %struct.c* %retval to i64*, !dbg !24 - %1 = load i64, i64* %0, align 4, !dbg !24 - ret i64 %1, !dbg !24 -} - -declare dso_local void @_ZN1cC1Ei(%struct.c*, i32) unnamed_addr -declare void @llvm.dbg.assign(metadata, metadata, metadata, metadata, metadata, metadata) - -!llvm.dbg.cu = !{!0} -!llvm.module.flags = !{!3, !4, !5, !1000} -!llvm.ident = !{!6} - -!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 12.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) -!1 = !DIFile(filename: "reduce.cpp", directory: "/") -!2 = !{} -!3 = !{i32 7, !"Dwarf Version", i32 4} -!4 = !{i32 2, !"Debug Info Version", i32 3} -!5 = !{i32 1, !"wchar_size", i32 4} -!6 = !{!"clang version 12.0.0"} -!7 = distinct !DISubprogram(name: "d", linkageName: "_Z1dv", scope: !1, file: !1, line: 5, type: !8, scopeLine: 5, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !19) -!8 = !DISubroutineType(types: !9) -!9 = !{!10} -!10 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "c", file: !1, line: 1, size: 64, flags: DIFlagTypePassByValue | DIFlagNonTrivial, elements: !11, identifier: "_ZTS1c") -!11 = !{!12, !14, !15} -!12 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !10, file: !1, line: 3, baseType: !13, size: 32) -!13 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) -!14 = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: !10, file: !1, line: 3, baseType: !13, size: 32, offset: 32) -!15 = !DISubprogram(name: "c", scope: !10, file: !1, line: 2, type: !16, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized) -!16 = !DISubroutineType(types: !17) -!17 = !{null, !18, !13} -!18 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer) -!19 = !{!20} -!20 = !DILocalVariable(name: "e", scope: !7, file: !1, line: 6, type: !10) -!21 = distinct !DIAssignID() -!22 = !DILocation(line: 0, scope: !7) -!23 = !DILocation(line: 6, column: 5, scope: !7) -!24 = !DILocation(line: 7, column: 3, scope: !7) -!1000 = !{i32 7, !"debug-info-assignment-tracking", i1 true} diff --git a/llvm/test/ExecutionEngine/Orc/global-variable-alignment.ll b/llvm/test/ExecutionEngine/Orc/global-variable-alignment.ll index 95b1cfcf66d04..16fc3ad0547dc 100644 --- a/llvm/test/ExecutionEngine/Orc/global-variable-alignment.ll +++ b/llvm/test/ExecutionEngine/Orc/global-variable-alignment.ll @@ -8,7 +8,7 @@ ; JIT memory manager. ; ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: %lli -opaque-pointers %s +; RUN: %lli %s ; endif @A = internal global i8 1, align 1 diff --git a/llvm/test/Instrumentation/AddressSanitizer/kcfi-offset.ll b/llvm/test/Instrumentation/AddressSanitizer/kcfi-offset.ll index 34b00fd3397ce..b5d103c073998 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/kcfi-offset.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/kcfi-offset.ll @@ -1,6 +1,6 @@ ;; Test that we set patchable-function-prefix for asan.module_ctor when kcfi-offset is defined. -; RUN: opt -opaque-pointers < %s -passes=asan -S | FileCheck %s +; RUN: opt < %s -passes=asan -S | FileCheck %s ; CHECK: @llvm.global_ctors = {{.*}}{ i32 1, ptr @asan.module_ctor, ptr @asan.module_ctor } diff --git a/llvm/test/Instrumentation/AddressSanitizer/kcfi.ll b/llvm/test/Instrumentation/AddressSanitizer/kcfi.ll index 5df164bc598c0..a992964154904 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/kcfi.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/kcfi.ll @@ -1,9 +1,8 @@ ;; Test that we emit kcfi_type metadata for asan.module_ctor with KCFI. -; Added -opaque-pointers. ; FIXME: align with the community code when project is ready to enable opaque ; pointers by default. -; RUN: opt < %s -passes=asan -opaque-pointers -S | FileCheck %s +; RUN: opt < %s -passes=asan -S | FileCheck %s ; CHECK: @llvm.global_ctors = {{.*}}{ i32 1, ptr @asan.module_ctor, ptr @asan.module_ctor } diff --git a/llvm/test/Instrumentation/AddressSanitizer/no-globals.ll b/llvm/test/Instrumentation/AddressSanitizer/no-globals.ll index fb37d3e5aa81c..41e2172bf8579 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/no-globals.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/no-globals.ll @@ -1,5 +1,5 @@ ; A module with no asan-instrumented globals has no asan destructor, and has an asan constructor in a comdat. -; RUN: opt -opaque-pointers -mtriple=x86_64-unknown-linux-gnu < %s -passes=asan -asan-with-comdat=1 -asan-globals-live-support=1 -S | FileCheck %s +; RUN: opt -mtriple=x86_64-unknown-linux-gnu < %s -passes=asan -asan-with-comdat=1 -asan-globals-live-support=1 -S | FileCheck %s define void @f() { ret void diff --git a/llvm/test/Instrumentation/AddressSanitizer/odr-check-ignore.ll b/llvm/test/Instrumentation/AddressSanitizer/odr-check-ignore.ll index facf6eca2d6a4..3160802b1e09e 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/odr-check-ignore.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/odr-check-ignore.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -opaque-pointers -passes=asan -asan-use-odr-indicator=0 -asan-use-private-alias=0 -S | FileCheck %s --check-prefix=NOALIAS -; RUN: opt < %s -opaque-pointers -passes=asan -asan-use-odr-indicator=0 -asan-use-private-alias=1 -S | FileCheck %s --check-prefix=ALIAS +; RUN: opt < %s -passes=asan -asan-use-odr-indicator=0 -asan-use-private-alias=0 -S | FileCheck %s --check-prefix=NOALIAS +; RUN: opt < %s -passes=asan -asan-use-odr-indicator=0 -asan-use-private-alias=1 -S | FileCheck %s --check-prefix=ALIAS target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/arith.ll b/llvm/test/Instrumentation/DataFlowSanitizer/arith.ll index 272be6dec91f1..8c9eb5fa42fc3 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/arith.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/arith.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -opaque-pointers -passes=dfsan -S | FileCheck %s +; RUN: opt < %s -passes=dfsan -S | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/origin_call.ll b/llvm/test/Instrumentation/DataFlowSanitizer/origin_call.ll index c1cfb27c09483..5ee9927b9f5a8 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/origin_call.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/origin_call.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -opaque-pointers -passes=dfsan -dfsan-track-origins=1 -S | FileCheck %s +; RUN: opt < %s -passes=dfsan -dfsan-track-origins=1 -S | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/origin_phi.ll b/llvm/test/Instrumentation/DataFlowSanitizer/origin_phi.ll index b1dc942f5dd41..f946d8eb6a73a 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/origin_phi.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/origin_phi.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -opaque-pointers -passes=dfsan -dfsan-track-origins=1 -S | FileCheck %s +; RUN: opt < %s -passes=dfsan -dfsan-track-origins=1 -S | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/origin_select.ll b/llvm/test/Instrumentation/DataFlowSanitizer/origin_select.ll index e2f03963329c7..3fd6010a3de72 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/origin_select.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/origin_select.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -opaque-pointers -passes=dfsan -dfsan-track-select-control-flow=1 -dfsan-track-origins=1 -S | FileCheck %s --check-prefixes=CHECK,TRACK_CONTROL_FLOW -; RUN: opt < %s -opaque-pointers -passes=dfsan -dfsan-track-select-control-flow=0 -dfsan-track-origins=1 -S | FileCheck %s --check-prefixes=CHECK,NO_TRACK_CONTROL_FLOW +; RUN: opt < %s -passes=dfsan -dfsan-track-select-control-flow=1 -dfsan-track-origins=1 -S | FileCheck %s --check-prefixes=CHECK,TRACK_CONTROL_FLOW +; RUN: opt < %s -passes=dfsan -dfsan-track-select-control-flow=0 -dfsan-track-origins=1 -S | FileCheck %s --check-prefixes=CHECK,NO_TRACK_CONTROL_FLOW target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/phi.ll b/llvm/test/Instrumentation/DataFlowSanitizer/phi.ll index 5a904469c0d03..592d3eb2fe539 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/phi.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/phi.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -opaque-pointers -passes=dfsan -S | FileCheck %s +; RUN: opt < %s -passes=dfsan -S | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/select.ll b/llvm/test/Instrumentation/DataFlowSanitizer/select.ll index e25373432d41e..5056616a4703a 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/select.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/select.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -opaque-pointers -passes=dfsan -dfsan-track-select-control-flow=true -S | FileCheck %s --check-prefixes=CHECK,TRACK_CF -; RUN: opt < %s -opaque-pointers -passes=dfsan -dfsan-track-select-control-flow=false -S | FileCheck %s --check-prefixes=CHECK,NO_TRACK_CF +; RUN: opt < %s -passes=dfsan -dfsan-track-select-control-flow=true -S | FileCheck %s --check-prefixes=CHECK,TRACK_CF +; RUN: opt < %s -passes=dfsan -dfsan-track-select-control-flow=false -S | FileCheck %s --check-prefixes=CHECK,NO_TRACK_CF target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/shadow-args-zext.ll b/llvm/test/Instrumentation/DataFlowSanitizer/shadow-args-zext.ll index 91c1ff78262ee..e338976dca093 100644 --- a/llvm/test/Instrumentation/DataFlowSanitizer/shadow-args-zext.ll +++ b/llvm/test/Instrumentation/DataFlowSanitizer/shadow-args-zext.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -mtriple=x86_64-unknown-linux-gnu < %s -passes=dfsan -S --dfsan-abilist=%S/Inputs/shadow-args-abilist.txt | FileCheck %s +; RUN: opt -mtriple=x86_64-unknown-linux-gnu < %s -passes=dfsan -S --dfsan-abilist=%S/Inputs/shadow-args-abilist.txt | FileCheck %s ; REQUIRES: x86-registered-target diff --git a/llvm/test/Instrumentation/HWAddressSanitizer/X86/globals.ll b/llvm/test/Instrumentation/HWAddressSanitizer/X86/globals.ll index abb2c93d49359..ca1153a6a3e63 100644 --- a/llvm/test/Instrumentation/HWAddressSanitizer/X86/globals.ll +++ b/llvm/test/Instrumentation/HWAddressSanitizer/X86/globals.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -S -passes=hwasan -mtriple=x86_64-unknown-linux-gnu | FileCheck %s +; RUN: opt < %s -S -passes=hwasan -mtriple=x86_64-unknown-linux-gnu | FileCheck %s ; CHECK: @__start_hwasan_globals = external hidden constant [0 x i8] ; CHECK: @__stop_hwasan_globals = external hidden constant [0 x i8] diff --git a/llvm/test/Instrumentation/HWAddressSanitizer/globals.ll b/llvm/test/Instrumentation/HWAddressSanitizer/globals.ll index 3b704e3e48b2b..4e22f5fec0067 100644 --- a/llvm/test/Instrumentation/HWAddressSanitizer/globals.ll +++ b/llvm/test/Instrumentation/HWAddressSanitizer/globals.ll @@ -1,5 +1,5 @@ -; RUN: opt -opaque-pointers < %s -S -passes=hwasan -mtriple=aarch64--linux-android29 | FileCheck --check-prefixes=CHECK,CHECK29 %s -; RUN: opt -opaque-pointers < %s -S -passes=hwasan -mtriple=aarch64--linux-android30 | FileCheck --check-prefixes=CHECK,CHECK30 %s +; RUN: opt < %s -S -passes=hwasan -mtriple=aarch64--linux-android29 | FileCheck --check-prefixes=CHECK,CHECK29 %s +; RUN: opt < %s -S -passes=hwasan -mtriple=aarch64--linux-android30 | FileCheck --check-prefixes=CHECK,CHECK30 %s ; CHECK29: @four = global diff --git a/llvm/test/Instrumentation/InstrOrderFile/basic.ll b/llvm/test/Instrumentation/InstrOrderFile/basic.ll index fd95304b8ce5d..7399ebad4519e 100644 --- a/llvm/test/Instrumentation/InstrOrderFile/basic.ll +++ b/llvm/test/Instrumentation/InstrOrderFile/basic.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -passes=instrorderfile -S < %s | FileCheck %s +; RUN: opt -passes=instrorderfile -S < %s | FileCheck %s target triple = "x86_64-apple-macosx10.10.0" diff --git a/llvm/test/Instrumentation/InstrProfiling/timestamp-coverage.ll b/llvm/test/Instrumentation/InstrProfiling/timestamp-coverage.ll index ee10712ba5d9c..bbffa2a8c8ea6 100644 --- a/llvm/test/Instrumentation/InstrProfiling/timestamp-coverage.ll +++ b/llvm/test/Instrumentation/InstrProfiling/timestamp-coverage.ll @@ -1,7 +1,7 @@ ; ifdef INTEL_SYCL_OPAQUEPOINTER_READY ; COM: opt < %s -passes=instrprof -S | FileCheck %s ; else -; RUN: opt < %s -opaque-pointers -passes=instrprof -S | FileCheck %s +; RUN: opt < %s -passes=instrprof -S | FileCheck %s ; endif target triple = "aarch64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/InstrProfiling/timestamp.ll b/llvm/test/Instrumentation/InstrProfiling/timestamp.ll index aae89e46e0c8d..47f0a1ab34a2e 100644 --- a/llvm/test/Instrumentation/InstrProfiling/timestamp.ll +++ b/llvm/test/Instrumentation/InstrProfiling/timestamp.ll @@ -1,7 +1,7 @@ ; ifdef INTEL_SYCL_OPAQUEPOINTER_READY ; COM: opt < %s -passes=instrprof -S | FileCheck %s ; else -; RUN: opt < %s -opaque-pointers -passes=instrprof -S | FileCheck %s +; RUN: opt < %s -passes=instrprof -S | FileCheck %s ; endif target triple = "aarch64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/JustMyCode/jmc-instrument-elf.ll b/llvm/test/Instrumentation/JustMyCode/jmc-instrument-elf.ll index 17ec6c01967eb..12ca42703732e 100644 --- a/llvm/test/Instrumentation/JustMyCode/jmc-instrument-elf.ll +++ b/llvm/test/Instrumentation/JustMyCode/jmc-instrument-elf.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -jmc-instrument -mtriple=x86_64-unknown-linux-gnu -S < %s | FileCheck %s +; RUN: opt -jmc-instrument -mtriple=x86_64-unknown-linux-gnu -S < %s | FileCheck %s ; CHECK: @"__7DF23CF5_x@c" = internal unnamed_addr global i8 1, section ".data.just.my.code", align 1, !dbg !0 ; CHECK: @"__A8764FDD_x@c" = internal unnamed_addr global i8 1, section ".data.just.my.code", align 1, !dbg !5 diff --git a/llvm/test/Instrumentation/JustMyCode/jmc-instrument-x86.ll b/llvm/test/Instrumentation/JustMyCode/jmc-instrument-x86.ll index a6c89da93abb5..c884395bea49b 100644 --- a/llvm/test/Instrumentation/JustMyCode/jmc-instrument-x86.ll +++ b/llvm/test/Instrumentation/JustMyCode/jmc-instrument-x86.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -jmc-instrument -S < %s | FileCheck %s +; RUN: opt -jmc-instrument -S < %s | FileCheck %s ; CHECK: $_JustMyCode_Default = comdat any diff --git a/llvm/test/Instrumentation/JustMyCode/jmc-instrument.ll b/llvm/test/Instrumentation/JustMyCode/jmc-instrument.ll index 5b049a2f47a79..098ff1b2a958a 100644 --- a/llvm/test/Instrumentation/JustMyCode/jmc-instrument.ll +++ b/llvm/test/Instrumentation/JustMyCode/jmc-instrument.ll @@ -1,6 +1,6 @@ -; RUN: opt -opaque-pointers -jmc-instrument -mtriple=x86_64-pc-windows-msvc -S < %s | FileCheck %s -; RUN: opt -opaque-pointers -jmc-instrument -mtriple=aarch64-pc-windows-msvc -S < %s | FileCheck %s -; RUN: opt -opaque-pointers -jmc-instrument -mtriple=arm-pc-windows-msvc -S < %s | FileCheck %s +; RUN: opt -jmc-instrument -mtriple=x86_64-pc-windows-msvc -S < %s | FileCheck %s +; RUN: opt -jmc-instrument -mtriple=aarch64-pc-windows-msvc -S < %s | FileCheck %s +; RUN: opt -jmc-instrument -mtriple=arm-pc-windows-msvc -S < %s | FileCheck %s ; CHECK: $__JustMyCode_Default = comdat any diff --git a/llvm/test/Instrumentation/MemorySanitizer/SystemZ/vararg-kernel.ll b/llvm/test/Instrumentation/MemorySanitizer/SystemZ/vararg-kernel.ll index 77a232f337fc8..1535fccfc2110 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/SystemZ/vararg-kernel.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/SystemZ/vararg-kernel.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -S -mcpu=z13 -msan-kernel=1 -float-abi=soft -passes=msan 2>&1 | FileCheck %s +; RUN: opt < %s -S -mcpu=z13 -msan-kernel=1 -float-abi=soft -passes=msan 2>&1 | FileCheck %s target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64" target triple = "s390x-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/MemorySanitizer/X86/vararg-too-large.ll b/llvm/test/Instrumentation/MemorySanitizer/X86/vararg-too-large.ll index 54ce7acf7a053..adb3e208d8553 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/X86/vararg-too-large.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/X86/vararg-too-large.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -msan-check-access-address=0 -S 2>&1 -passes=msan | FileCheck \ +; RUN: opt < %s -msan-check-access-address=0 -S 2>&1 -passes=msan | FileCheck \ ; RUN: %s ; Test that MSan doesn't generate code overflowing __msan_va_arg_tls when too many arguments are diff --git a/llvm/test/Instrumentation/MemorySanitizer/abs-vector.ll b/llvm/test/Instrumentation/MemorySanitizer/abs-vector.ll index 294cb9c9f1ee9..fd16dfe54e675 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/abs-vector.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/abs-vector.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers %s -S -msan-check-access-address=0 -passes=msan 2>&1 | FileCheck %s -; RUN: opt -opaque-pointers %s -S -msan-check-access-address=0 -msan-track-origins=2 -passes=msan 2>&1 | FileCheck %s --check-prefixes=CHECK,ORIGIN +; RUN: opt %s -S -msan-check-access-address=0 -passes=msan 2>&1 | FileCheck %s +; RUN: opt %s -S -msan-check-access-address=0 -msan-track-origins=2 -passes=msan 2>&1 | FileCheck %s --check-prefixes=CHECK,ORIGIN target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/MemorySanitizer/array_types.ll b/llvm/test/Instrumentation/MemorySanitizer/array_types.ll index 10c0ad01b613d..d9e4eeb7f7cba 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/array_types.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/array_types.ll @@ -1,6 +1,6 @@ -; RUN: opt -opaque-pointers < %s -msan-check-access-address=0 -S -passes=msan 2>&1 | FileCheck \ +; RUN: opt < %s -msan-check-access-address=0 -S -passes=msan 2>&1 | FileCheck \ ; RUN: %s -; RUN: opt -opaque-pointers < %s -msan-check-access-address=0 -msan-track-origins=1 -S \ +; RUN: opt < %s -msan-check-access-address=0 -msan-track-origins=1 -S \ ; RUN: -passes=msan 2>&1 | FileCheck -check-prefix=CHECK \ ; RUN: %s --allow-empty diff --git a/llvm/test/Instrumentation/MemorySanitizer/bmi.ll b/llvm/test/Instrumentation/MemorySanitizer/bmi.ll index 7c0f6522bbd8c..327fec0ed702e 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/bmi.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/bmi.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -msan-check-access-address=0 -S -passes=msan 2>&1 | FileCheck \ +; RUN: opt < %s -msan-check-access-address=0 -S -passes=msan 2>&1 | FileCheck \ ; RUN: %s ; REQUIRES: x86-registered-target diff --git a/llvm/test/Instrumentation/MemorySanitizer/clmul.ll b/llvm/test/Instrumentation/MemorySanitizer/clmul.ll index c406fba4ade85..ae4f2d2c868a0 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/clmul.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/clmul.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -msan-check-access-address=0 -S -passes=msan 2>&1 | FileCheck \ +; RUN: opt < %s -msan-check-access-address=0 -S -passes=msan 2>&1 | FileCheck \ ; RUN: %s ; REQUIRES: x86-registered-target diff --git a/llvm/test/Instrumentation/MemorySanitizer/count-zeroes.ll b/llvm/test/Instrumentation/MemorySanitizer/count-zeroes.ll index cb4d6a14e2455..73e047e68ddc6 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/count-zeroes.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/count-zeroes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt %s -opaque-pointers -S -passes=msan 2>&1 | FileCheck %s +; RUN: opt %s -S -passes=msan 2>&1 | FileCheck %s target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/MemorySanitizer/funnel_shift.ll b/llvm/test/Instrumentation/MemorySanitizer/funnel_shift.ll index faafdd859f869..5ea407b3fda7a 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/funnel_shift.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/funnel_shift.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers %s -S -passes=msan 2>&1 | FileCheck %s +; RUN: opt %s -S -passes=msan 2>&1 | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Instrumentation/MemorySanitizer/missing_origin.ll b/llvm/test/Instrumentation/MemorySanitizer/missing_origin.ll index 2b5c0155e4332..1c3c3ddd3fcf3 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/missing_origin.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/missing_origin.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -msan-check-access-address=0 -msan-track-origins=1 -S \ +; RUN: opt < %s -msan-check-access-address=0 -msan-track-origins=1 -S \ ; RUN: -passes=msan 2>&1 | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" diff --git a/llvm/test/Instrumentation/MemorySanitizer/stable_set_alloca_origin.ll b/llvm/test/Instrumentation/MemorySanitizer/stable_set_alloca_origin.ll index e3c0a768e8a5b..923774aea97b0 100644 --- a/llvm/test/Instrumentation/MemorySanitizer/stable_set_alloca_origin.ll +++ b/llvm/test/Instrumentation/MemorySanitizer/stable_set_alloca_origin.ll @@ -1,7 +1,6 @@ -; Must pass -opaque-pointers explicitly until it becomes the default on xmain -; RUN: opt < %s -opaque-pointers -msan-check-access-address=0 \ +; RUN: opt < %s -msan-check-access-address=0 \ ; RUN: -msan-track-origins=1 -S -passes=msan 2>&1 | FileCheck %s -; RUN: opt < %s -opaque-pointers -msan-check-access-address=0 \ +; RUN: opt < %s -msan-check-access-address=0 \ ; RUN: -msan-track-origins=2 -S -passes=msan 2>&1 | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_32.ll b/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_32.ll index 19c4831f55f2c..dc9731a2cd8bc 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_32.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_32.ll @@ -1,5 +1,5 @@ ; Test -sanitizer-coverage-trace-compares=1 API declarations on a non-x86_64 arch -; RUN: opt -opaque-pointers < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s target triple = "i386-unknown-linux-gnu" define i32 @foo() #0 { diff --git a/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_64.ll b/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_64.ll index cc15297218ba9..6f51182f2b767 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_64.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_64.ll @@ -1,5 +1,5 @@ ; Test -sanitizer-coverage-trace-compares=1 API declarations on x86_64 -; RUN: opt -opaque-pointers < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s target triple = "x86_64-unknown-linux-gnu" define i32 @foo() #0 { diff --git a/llvm/test/Instrumentation/SanitizerCoverage/coff-comdat.ll b/llvm/test/Instrumentation/SanitizerCoverage/coff-comdat.ll index bd63b089bfe83..56757a532f973 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/coff-comdat.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/coff-comdat.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -sanitizer-coverage-pc-table=1 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -sanitizer-coverage-pc-table=1 -S | FileCheck %s ; Make sure we use the right comdat groups for COFF to avoid relocations ; against discarded sections. Internal linkage functions are also different from diff --git a/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll b/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll index c367023f790da..406ee3ff8eb9f 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll @@ -1,5 +1,5 @@ ; Test -sanitizer-coverage-inline-8bit-counters=1 -; RUN: opt -opaque-pointers < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -S | FileCheck %s ; CHECK: @__sancov_gen_ = private global [1 x i8] zeroinitializer, section "__sancov_cntrs", comdat($foo), align 1 ; CHECK: @__start___sancov_cntrs = extern_weak hidden global i8 diff --git a/llvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll b/llvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll index 7f70caad5cc60..be8b6c8b95ce9 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll @@ -1,5 +1,5 @@ ; Test -sanitizer-coverage-inline-bool-flag=1 -; RUN: opt -opaque-pointers < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-bool-flag=1 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-bool-flag=1 -S | FileCheck %s ; CHECK: $foo = comdat nodeduplicate ; CHECK: @__sancov_gen_ = private global [1 x i1] zeroinitializer, section "__sancov_bools", comdat($foo), align 1{{$}} diff --git a/llvm/test/Instrumentation/SanitizerCoverage/switch-tracing.ll b/llvm/test/Instrumentation/SanitizerCoverage/switch-tracing.ll index e8948c43bc9ec..2412adbbbf907 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/switch-tracing.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/switch-tracing.ll @@ -1,5 +1,5 @@ ; Test -sanitizer-coverage-trace-compares=1 (instrumenting a switch) -; RUN: opt -opaque-pointers < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/LTO/Resolution/X86/alias-alias.ll b/llvm/test/LTO/Resolution/X86/alias-alias.ll index 0f70ba5c9c164..093b5973d24ca 100644 --- a/llvm/test/LTO/Resolution/X86/alias-alias.ll +++ b/llvm/test/LTO/Resolution/X86/alias-alias.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %p/Inputs/alias-alias-1.ll -o %t2.o -; RUN: llvm-lto2 run -opaque-pointers -o %t3.o %t1.o %t2.o -r %t2.o,a, -r %t2.o,d,px -r %t1.o,a,p -r %t1.o,c,p -r %t1.o,b -save-temps +; RUN: llvm-lto2 run -o %t3.o %t1.o %t2.o -r %t2.o,a, -r %t2.o,d,px -r %t1.o,a,p -r %t1.o,c,p -r %t1.o,b -save-temps ; RUN: llvm-dis < %t3.o.0.0.preopt.bc -o - | FileCheck %s ; RUN: FileCheck --check-prefix=RES %s < %t3.o.resolution.txt diff --git a/llvm/test/LTO/Resolution/X86/alias.ll b/llvm/test/LTO/Resolution/X86/alias.ll index 3c9ed2e44fc4b..5cba4729e227e 100644 --- a/llvm/test/LTO/Resolution/X86/alias.ll +++ b/llvm/test/LTO/Resolution/X86/alias.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %p/Inputs/alias-1.ll -o %t2.o -; RUN: llvm-lto2 run -opaque-pointers -o %t3.o %t2.o %t1.o -r %t2.o,a,px -r %t1.o,a, -r %t1.o,b,px -save-temps +; RUN: llvm-lto2 run -o %t3.o %t2.o %t1.o -r %t2.o,a,px -r %t1.o,a, -r %t1.o,b,px -save-temps ; RUN: llvm-dis < %t3.o.0.0.preopt.bc -o - | FileCheck %s ; RUN: FileCheck --check-prefix=RES %s < %t3.o.resolution.txt diff --git a/llvm/test/LTO/Resolution/X86/appending-var.ll b/llvm/test/LTO/Resolution/X86/appending-var.ll index b529bf12171db..7eca072bc6ef7 100644 --- a/llvm/test/LTO/Resolution/X86/appending-var.ll +++ b/llvm/test/LTO/Resolution/X86/appending-var.ll @@ -5,7 +5,7 @@ ; RUN: opt %s -o %t1.o ; RUN: opt %p/Inputs/appending-var-2.ll -o %t2.o -; RUN: llvm-lto2 run -opaque-pointers -o %t3.o %t1.o %t2.o -r %t1.o,bar, -r %t2.o,bar,px +; RUN: llvm-lto2 run -o %t3.o %t1.o %t2.o -r %t1.o,bar, -r %t2.o,bar,px target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/LTO/Resolution/X86/available-externally.ll b/llvm/test/LTO/Resolution/X86/available-externally.ll index 65bcd223363dd..79d4667f54c9a 100644 --- a/llvm/test/LTO/Resolution/X86/available-externally.ll +++ b/llvm/test/LTO/Resolution/X86/available-externally.ll @@ -1,5 +1,5 @@ ; RUN: opt -module-summary -o %t.bc %s -; RUN: llvm-lto2 run -opaque-pointers %t.bc -r %t.bc,foo,px -r %t.bc,bar, -o %t2 +; RUN: llvm-lto2 run %t.bc -r %t.bc,foo,px -r %t.bc,bar, -o %t2 ; RUN: llvm-nm %t2.1 | FileCheck %s ; CHECK: U bar diff --git a/llvm/test/LTO/Resolution/X86/cache-dso-local.ll b/llvm/test/LTO/Resolution/X86/cache-dso-local.ll index 717d546c80f2e..a4b94f28391cc 100644 --- a/llvm/test/LTO/Resolution/X86/cache-dso-local.ll +++ b/llvm/test/LTO/Resolution/X86/cache-dso-local.ll @@ -2,10 +2,10 @@ ; globals. ; RUN: rm -rf %t.cache ; RUN: opt -module-hash -module-summary -o %t.bc %s -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc -cache-dir %t.cache \ +; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \ ; RUN: -r %t.bc,foo,px \ ; RUN: -r %t.bc,bar,px -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc -cache-dir %t.cache \ +; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \ ; RUN: -r %t.bc,foo,plx \ ; RUN: -r %t.bc,bar,px ; RUN: ls %t.cache | count 2 diff --git a/llvm/test/LTO/Resolution/X86/cache-prevailing.ll b/llvm/test/LTO/Resolution/X86/cache-prevailing.ll index 04e1cfd4a7fb8..f8c9a6945268f 100644 --- a/llvm/test/LTO/Resolution/X86/cache-prevailing.ll +++ b/llvm/test/LTO/Resolution/X86/cache-prevailing.ll @@ -1,9 +1,9 @@ ; Tests whether the cache is sensitive to the prevailing bit. ; RUN: rm -rf %t.cache ; RUN: opt -module-hash -module-summary -o %t.bc %s -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc -cache-dir %t.cache \ +; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \ ; RUN: -r %t.bc,foo,p -r %t.bc,bar,px -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc -cache-dir %t.cache \ +; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \ ; RUN: -r %t.bc,foo, -r %t.bc,bar,px ; RUN: ls %t.cache | count 2 diff --git a/llvm/test/LTO/Resolution/X86/comdat-mixed-lto.ll b/llvm/test/LTO/Resolution/X86/comdat-mixed-lto.ll index 49bd936600358..96d8f3157b996 100644 --- a/llvm/test/LTO/Resolution/X86/comdat-mixed-lto.ll +++ b/llvm/test/LTO/Resolution/X86/comdat-mixed-lto.ll @@ -15,7 +15,7 @@ ; that testglobfunc was dropped to available_externally. Otherwise we would ; have linker multiply defined errors as it is no longer in a comdat and ; would clash with the copy from this module. -; RUN: llvm-dis -opaque-pointers %t3.0.0.preopt.bc -o - | FileCheck %s +; RUN: llvm-dis %t3.0.0.preopt.bc -o - | FileCheck %s ; CHECK: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__cxx_global_var_init, ptr @C }] ; CHECK: @C = available_externally dso_local global %"class.Test::ptr" zeroinitializer, align 4 @@ -25,7 +25,7 @@ ; Check the behavior with the prevailing testglobfunc in %t2.o. ; RUN: llvm-lto2 run -r=%t1.o,C,pl -r=%t2.o,C,l -r=%t1.o,testglobfunc,lx -r=%t2.o,testglobfunc,plx -o %t4 %t1.o %t2.o -save-temps -; RUN: llvm-dis -opaque-pointers %t4.0.0.preopt.bc -o - | FileCheck %s --check-prefix=CHECK2 +; RUN: llvm-dis %t4.0.0.preopt.bc -o - | FileCheck %s --check-prefix=CHECK2 ; CHECK2: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__cxx_global_var_init, ptr @C }] ; CHECK2: @C = available_externally dso_local global %"class.Test::ptr" zeroinitializer, align 4 diff --git a/llvm/test/LTO/Resolution/X86/comdat.ll b/llvm/test/LTO/Resolution/X86/comdat.ll index 4ee013ca9a85d..52b8f7f78805e 100644 --- a/llvm/test/LTO/Resolution/X86/comdat.ll +++ b/llvm/test/LTO/Resolution/X86/comdat.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as %s -o %t.o ; RUN: llvm-as %p/Inputs/comdat.ll -o %t2.o -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t3.o %t.o %t2.o \ +; RUN: llvm-lto2 run -save-temps -o %t3.o %t.o %t2.o \ ; RUN: -r=%t.o,f1,plx \ ; RUN: -r=%t.o,v1,px \ ; RUN: -r=%t.o,r11,px \ diff --git a/llvm/test/LTO/Resolution/X86/common2.ll b/llvm/test/LTO/Resolution/X86/common2.ll index dbd9173e123eb..87d94953ab4fd 100644 --- a/llvm/test/LTO/Resolution/X86/common2.ll +++ b/llvm/test/LTO/Resolution/X86/common2.ll @@ -4,7 +4,7 @@ ; Test that the common merging (size + alignment) is properly handled ; Client marked the "large with little alignment" one as prevailing -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,v,x \ ; RUN: -r %t2.bc,v,px \ ; RUN: -r %t1.bc,foo,px \ @@ -12,7 +12,7 @@ ; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=LARGE-PREVAILED ; Same as before, but reversing the order of the inputs -; RUN: llvm-lto2 run -opaque-pointers %t2.bc %t1.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t2.bc %t1.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,v,x \ ; RUN: -r %t2.bc,v,px \ ; RUN: -r %t1.bc,foo,px \ @@ -20,7 +20,7 @@ ; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=LARGE-PREVAILED ; Client marked the "small with large alignment" one as prevailing -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,v,px \ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ @@ -28,7 +28,7 @@ ; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=SMALL-PREVAILED ; Same as before, but reversing the order of the inputs -; RUN: llvm-lto2 run -opaque-pointers %t2.bc %t1.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t2.bc %t1.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,v,px \ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ @@ -37,7 +37,7 @@ ; Client didn't mark any as prevailing, we keep the first one we see as "external" -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,v,x \ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ @@ -45,7 +45,7 @@ ; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=NONE-PREVAILED1 ; Same as before, but reversing the order of the inputs -; RUN: llvm-lto2 run -opaque-pointers %t2.bc %t1.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t2.bc %t1.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,v,x \ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ diff --git a/llvm/test/LTO/Resolution/X86/dead-strip-alias.ll b/llvm/test/LTO/Resolution/X86/dead-strip-alias.ll index 475cabad953e8..5ac7597144228 100644 --- a/llvm/test/LTO/Resolution/X86/dead-strip-alias.ll +++ b/llvm/test/LTO/Resolution/X86/dead-strip-alias.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary -o %t %s ; RUN: opt -module-summary -o %t2 %S/Inputs/dead-strip-alias.ll -; RUN: llvm-lto2 run -opaque-pointers %t -r %t,main,px -r %t,alias,p -r %t,external, \ +; RUN: llvm-lto2 run %t -r %t,main,px -r %t,alias,p -r %t,external, \ ; RUN: %t2 -r %t2,external,p \ ; RUN: -save-temps -o %t3 ; RUN: llvm-nm %t3.2 | FileCheck %s diff --git a/llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll b/llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll index 4572ae30408de..e9a63a1b23aae 100644 --- a/llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll +++ b/llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll @@ -2,7 +2,7 @@ ; RUN: opt -module-summary -o %t2 %S/Inputs/dead-strip-fulllto.ll ; Adding '--pass-remarks-with-hotness' should not cause crash. -; RUN: llvm-lto2 run -opaque-pointers --pass-remarks-output=%t4.yaml --pass-remarks-filter=. --pass-remarks-with-hotness \ +; RUN: llvm-lto2 run --pass-remarks-output=%t4.yaml --pass-remarks-filter=. --pass-remarks-with-hotness \ ; RUN: %t -r %t,main,px -r %t,live1, -r %t,live2,p -r %t,dead2,p \ ; RUN: %t2 -r %t2,live1,p -r %t2,live2, -r %t2,dead1,p -r %t2,dead2, -r %t2,odr, \ ; RUN: -save-temps -o %t3 @@ -11,7 +11,7 @@ ; RUN: llvm-nm %t3.0 | FileCheck --check-prefix=FULL %s ; RUN: llvm-nm %t3.1 | FileCheck --check-prefix=THIN %s -; RUN: llvm-lto2 run -opaque-pointers %t -r %t,main,px -r %t,live1, -r %t,live2,p -r %t,dead2,p \ +; RUN: llvm-lto2 run %t -r %t,main,px -r %t,live1, -r %t,live2,p -r %t,dead2,p \ ; RUN: %t2 -r %t2,live1,p -r %t2,live2, -r %t2,dead1,p -r %t2,dead2, -r %t2,odr, \ ; RUN: -save-temps -o %t3 -O0 ; RUN: llvm-nm %t3.0 | FileCheck --check-prefix=FULL %s diff --git a/llvm/test/LTO/Resolution/X86/export-jumptable-noncanonical.ll b/llvm/test/LTO/Resolution/X86/export-jumptable-noncanonical.ll index 8db1eade8328e..0a64204f3274a 100644 --- a/llvm/test/LTO/Resolution/X86/export-jumptable-noncanonical.ll +++ b/llvm/test/LTO/Resolution/X86/export-jumptable-noncanonical.ll @@ -3,7 +3,7 @@ ; table. ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-lto2 run -opaque-pointers -o %t2 -r %t,f1,p -r %t,f2,p -r %t,_start,px %t -save-temps +; RUN: llvm-lto2 run -o %t2 -r %t,f1,p -r %t,f2,p -r %t,_start,px %t -save-temps ; RUN: llvm-dis %t2.1.2.internalize.bc -o - | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/LTO/Resolution/X86/export-jumptable.ll b/llvm/test/LTO/Resolution/X86/export-jumptable.ll index 5c486815f1321..e7a583f5d80ea 100644 --- a/llvm/test/LTO/Resolution/X86/export-jumptable.ll +++ b/llvm/test/LTO/Resolution/X86/export-jumptable.ll @@ -3,7 +3,7 @@ ; table. ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-lto2 run -opaque-pointers -o %t2 -r %t,f1,p -r %t,f2,p -r %t,_start,px %t -save-temps +; RUN: llvm-lto2 run -o %t2 -r %t,f1,p -r %t,f2,p -r %t,_start,px %t -save-temps ; RUN: llvm-dis %t2.1.2.internalize.bc -o - | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/LTO/Resolution/X86/function-alias-non-prevailing.ll b/llvm/test/LTO/Resolution/X86/function-alias-non-prevailing.ll index 46de1fe0a01ad..d17d0461c6e3e 100644 --- a/llvm/test/LTO/Resolution/X86/function-alias-non-prevailing.ll +++ b/llvm/test/LTO/Resolution/X86/function-alias-non-prevailing.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as -o %t %s -; RUN: llvm-lto2 run -opaque-pointers %t -r %t,foo, -r %t,baz,p -o %t2 -save-temps +; RUN: llvm-lto2 run %t -r %t,foo, -r %t,baz,p -o %t2 -save-temps ; RUN: llvm-dis -o - %t2.0.0.preopt.bc | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/LTO/Resolution/X86/ifunc.ll b/llvm/test/LTO/Resolution/X86/ifunc.ll index 8dd295eba141e..81d28d2bc9c73 100644 --- a/llvm/test/LTO/Resolution/X86/ifunc.ll +++ b/llvm/test/LTO/Resolution/X86/ifunc.ll @@ -1,5 +1,5 @@ ; RUN: opt -module-summary -o %t.bc %s -; RUN: llvm-lto2 run -opaque-pointers %t.bc -r %t.bc,foo,pl -o %t2 +; RUN: llvm-lto2 run %t.bc -r %t.bc,foo,pl -o %t2 ; RUN: llvm-nm %t2.1 | FileCheck %s ; CHECK: i foo ; CHECK: t foo_resolver diff --git a/llvm/test/LTO/Resolution/X86/ifunc2.ll b/llvm/test/LTO/Resolution/X86/ifunc2.ll index b658bca0a38e4..5dcfdbd44e70c 100644 --- a/llvm/test/LTO/Resolution/X86/ifunc2.ll +++ b/llvm/test/LTO/Resolution/X86/ifunc2.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as -o %t1.o %s ; RUN: llvm-as -o %t2.o %S/Inputs/ifunc2.ll -; RUN: llvm-lto2 run -opaque-pointers %t1.o %t2.o -r %t1.o,foo,p -r %t1.o,foo_resolver, -r %t2.o,foo_resolver,p -save-temps -o %t3.o +; RUN: llvm-lto2 run %t1.o %t2.o -r %t1.o,foo,p -r %t1.o,foo_resolver, -r %t2.o,foo_resolver,p -save-temps -o %t3.o ; RUN: llvm-dis -o - %t3.o.0.0.preopt.bc | FileCheck %s target datalayout = "e-p:64:64" diff --git a/llvm/test/LTO/Resolution/X86/intrinsic.ll b/llvm/test/LTO/Resolution/X86/intrinsic.ll index a0fc5afa9b1d4..15bfbd5f85cb6 100644 --- a/llvm/test/LTO/Resolution/X86/intrinsic.ll +++ b/llvm/test/LTO/Resolution/X86/intrinsic.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %p/Inputs/intrinsic.ll -o %t2.o -; RUN: llvm-lto2 run -opaque-pointers -o %t3.o %t1.o %t2.o -r %t1.o,foo +; RUN: llvm-lto2 run -o %t3.o %t1.o %t2.o -r %t1.o,foo target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/LTO/Resolution/X86/load-sample-prof-icp.ll b/llvm/test/LTO/Resolution/X86/load-sample-prof-icp.ll index fb4ac2d7c16b6..4328240a700d7 100644 --- a/llvm/test/LTO/Resolution/X86/load-sample-prof-icp.ll +++ b/llvm/test/LTO/Resolution/X86/load-sample-prof-icp.ll @@ -2,7 +2,7 @@ ; down to the ICP correctly. ; ; RUN: opt -module-summary < %s -o %t.bc -; RUN: llvm-lto2 run -opaque-pointers -o %t.out %t.bc -save-temps \ +; RUN: llvm-lto2 run -o %t.out %t.bc -save-temps \ ; RUN: -r %t.bc,test,px -r %t.bc,bar,px -r %t.bc,externfunc,x \ ; RUN: -lto-sample-profile-file=%S/Inputs/load-sample-prof-icp.prof ; RUN: llvm-dis %t.out.1.4.opt.bc -o - | FileCheck %s diff --git a/llvm/test/LTO/Resolution/X86/local-def-dllimport.ll b/llvm/test/LTO/Resolution/X86/local-def-dllimport.ll index 55f283b1d8156..9fba0591f3826 100644 --- a/llvm/test/LTO/Resolution/X86/local-def-dllimport.ll +++ b/llvm/test/LTO/Resolution/X86/local-def-dllimport.ll @@ -4,7 +4,7 @@ ; can't guaranty the definition is available locally, the dllimport attribute ; may be used by later passes and should be preserved. ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t0.bc %s -; RUN: llvm-lto2 run -opaque-pointers -r %t0.bc,__imp_f,l \ +; RUN: llvm-lto2 run -r %t0.bc,__imp_f,l \ ; RUN: -r %t0.bc,g,p \ ; RUN: -r %t0.bc,g,l \ ; RUN: -r %t0.bc,e,l \ diff --git a/llvm/test/LTO/Resolution/X86/lowertypetests.ll b/llvm/test/LTO/Resolution/X86/lowertypetests.ll index ab4798cbb7f64..00f270827296f 100644 --- a/llvm/test/LTO/Resolution/X86/lowertypetests.ll +++ b/llvm/test/LTO/Resolution/X86/lowertypetests.ll @@ -1,5 +1,5 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-lto2 run -opaque-pointers -r %t,f,plx -r %t,g_alias,plx -r %t,foo,lx -r %t,foo,plx -r %t,bar,lx -r %t,bar,plx -o %t1 %t +; RUN: llvm-lto2 run -r %t,f,plx -r %t,g_alias,plx -r %t,foo,lx -r %t,foo,plx -r %t,bar,lx -r %t,bar,plx -o %t1 %t ; RUN: llvm-nm %t1.0 | FileCheck --check-prefix=MERGED %s ; RUN: llvm-nm %t1.1 | FileCheck %s diff --git a/llvm/test/LTO/Resolution/X86/no-undef-type-md.ll b/llvm/test/LTO/Resolution/X86/no-undef-type-md.ll index 20fa4090b89cd..0ea7794941597 100644 --- a/llvm/test/LTO/Resolution/X86/no-undef-type-md.ll +++ b/llvm/test/LTO/Resolution/X86/no-undef-type-md.ll @@ -1,6 +1,6 @@ ; RUN: opt <%s -o %t0.o -thinlto-bc -thinlto-split-lto-unit ; RUN: llvm-as -o %t1.o %S/Inputs/no-undef-type-md.ll -; RUN: llvm-lto2 run -opaque-pointers -o %t-obj.o \ +; RUN: llvm-lto2 run -o %t-obj.o \ ; RUN: %t0.o \ ; RUN: -r=%t0.o,a, \ ; RUN: -r=%t0.o,b,pl \ diff --git a/llvm/test/LTO/Resolution/X86/not-prevailing-alias.ll b/llvm/test/LTO/Resolution/X86/not-prevailing-alias.ll index 197b71c6b1cfd..e7c135c2edf93 100644 --- a/llvm/test/LTO/Resolution/X86/not-prevailing-alias.ll +++ b/llvm/test/LTO/Resolution/X86/not-prevailing-alias.ll @@ -1,6 +1,6 @@ ; Test to ensure that dead alias are dropped by converting to a declaration ; RUN: opt -module-summary %s -o %t1.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -r %t1.bc,barAlias,x \ +; RUN: llvm-lto2 run %t1.bc -r %t1.bc,barAlias,x \ ; RUN: -r %t1.bc,bar,x -r %t1.bc,zed,px \ ; RUN: -r %t1.bc,var,x -r %t1.bc,varAlias,x \ ; RUN: -o %t2.o -save-temps diff --git a/llvm/test/LTO/Resolution/X86/not-prevailing-variables.ll b/llvm/test/LTO/Resolution/X86/not-prevailing-variables.ll index 0f339cdb4fb0a..55be50f069fd3 100644 --- a/llvm/test/LTO/Resolution/X86/not-prevailing-variables.ll +++ b/llvm/test/LTO/Resolution/X86/not-prevailing-variables.ll @@ -1,5 +1,5 @@ ; RUN: opt -module-summary %s -o %t1.o -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t2.o %t1.o \ +; RUN: llvm-lto2 run -save-temps -o %t2.o %t1.o \ ; RUN: -r %t1.o,testVar1,plx -r %t1.o,testVar2,plx \ ; RUN: -r %t1.o,var1,pl -r %t1.o,var2,lx diff --git a/llvm/test/LTO/Resolution/X86/not-prevailing-weak-aliasee.ll b/llvm/test/LTO/Resolution/X86/not-prevailing-weak-aliasee.ll index 88f0b457af4ec..7636ea882067d 100644 --- a/llvm/test/LTO/Resolution/X86/not-prevailing-weak-aliasee.ll +++ b/llvm/test/LTO/Resolution/X86/not-prevailing-weak-aliasee.ll @@ -1,7 +1,7 @@ ; Test to ensure that non-prevailing weak aliasee is kept as a weak definition ; when the alias is not dead. ; RUN: opt -module-summary %s -o %t1.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc \ +; RUN: llvm-lto2 run %t1.bc \ ; RUN: -r=%t1.bc,__a,lx \ ; RUN: -r=%t1.bc,__b,l \ ; RUN: -r=%t1.bc,a,plx \ diff --git a/llvm/test/LTO/Resolution/X86/setting-dso-local.ll b/llvm/test/LTO/Resolution/X86/setting-dso-local.ll index cf64140e90f7b..7574026b78fa2 100644 --- a/llvm/test/LTO/Resolution/X86/setting-dso-local.ll +++ b/llvm/test/LTO/Resolution/X86/setting-dso-local.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers -o %t2.o %t.o -r=%t.o,_start,plx -r=%t.o,foobar,x +; RUN: llvm-lto2 run -o %t2.o %t.o -r=%t.o,_start,plx -r=%t.o,foobar,x ; RUN: llvm-readelf --symbols %t2.o.0 | FileCheck %s ; We used to fail the verifier by clearing dso_local from foobar diff --git a/llvm/test/LTO/Resolution/X86/type-checked-load.ll b/llvm/test/LTO/Resolution/X86/type-checked-load.ll index 363f195e42425..68d6898a8b102 100644 --- a/llvm/test/LTO/Resolution/X86/type-checked-load.ll +++ b/llvm/test/LTO/Resolution/X86/type-checked-load.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as -o %t %s -; RUN: llvm-lto2 run -opaque-pointers %t -O0 -r %t,foo,px -o %t2 +; RUN: llvm-lto2 run %t -O0 -r %t,foo,px -o %t2 ; This just tests that we don't crash when compiling this test case. ; It means that the wholeprogramdevirt pass must have run and lowered diff --git a/llvm/test/LTO/X86/cfi_jt_aliases.ll b/llvm/test/LTO/X86/cfi_jt_aliases.ll index db88062331b7e..9d114f4b78614 100644 --- a/llvm/test/LTO/X86/cfi_jt_aliases.ll +++ b/llvm/test/LTO/X86/cfi_jt_aliases.ll @@ -1,7 +1,6 @@ ; Full LTO test ; RUN: opt %s -o %t.bc -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -o %t.o %t.bc -save-temps \ ; RUN: -r=%t.bc,a,px \ ; RUN: -r=%t.bc,b,px \ ; RUN: -r=%t.bc,c,px \ @@ -11,8 +10,7 @@ ; RUN: llvm-dis %t.o.0.4.opt.bc -o - | FileCheck --check-prefix=CHECK-USED %s ; Thin LTO test ; RUN: opt -thinlto-bc -thinlto-split-lto-unit %s -o %t.bc -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -o %t.o %t.bc \ ; RUN: -r=%t.bc,a,px \ ; RUN: -r=%t.bc,b,px \ ; RUN: -r=%t.bc,c,px \ diff --git a/llvm/test/LTO/X86/codemodel-1.ll b/llvm/test/LTO/X86/codemodel-1.ll index a7f4ab0372af3..43f51ff5ec7a5 100644 --- a/llvm/test/LTO/X86/codemodel-1.ll +++ b/llvm/test/LTO/X86/codemodel-1.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.o -; RUN: llvm-lto2 run -opaque-pointers -r %t.o,_start,px %t.o -o %t.s +; RUN: llvm-as %s -o %t.o +; RUN: llvm-lto2 run -r %t.o,_start,px %t.o -o %t.s ; RUN: llvm-objdump -d %t.s.0 | FileCheck %s --check-prefix=CHECK-SMALL target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/LTO/X86/codemodel-2.ll b/llvm/test/LTO/X86/codemodel-2.ll index 2916a827702d7..5cd9731606f2b 100644 --- a/llvm/test/LTO/X86/codemodel-2.ll +++ b/llvm/test/LTO/X86/codemodel-2.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as -opaque-pointers=1 %s -o %t.o -; RUN: llvm-lto2 run -opaque-pointers -r %t.o,_start,px %t.o -o %t.s +; RUN: llvm-as %s -o %t.o +; RUN: llvm-lto2 run -r %t.o,_start,px %t.o -o %t.s ; RUN: llvm-objdump --no-print-imm-hex -d %t.s.0 | FileCheck %s --check-prefix=CHECK-LARGE target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/LTO/X86/codemodel-3.ll b/llvm/test/LTO/X86/codemodel-3.ll index 62309bf1afba8..947221e9f36dc 100644 --- a/llvm/test/LTO/X86/codemodel-3.ll +++ b/llvm/test/LTO/X86/codemodel-3.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as %s -o %t0.o ; RUN: llvm-as < %p/Inputs/codemodel-3.ll > %t1.o -; RUN: not llvm-lto2 run -opaque-pointers -r %t0.o,_start,px -r %t1.o,bar,px %t0.o %t1.o -o %t2.s 2>&1 | FileCheck %s +; RUN: not llvm-lto2 run -r %t0.o,_start,px -r %t1.o,bar,px %t0.o %t1.o -o %t2.s 2>&1 | FileCheck %s target triple = "x86_64-unknown-linux-gnu" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/LTO/X86/hidden-escaped-symbols-alt.ll b/llvm/test/LTO/X86/hidden-escaped-symbols-alt.ll index 3f8c395ddadc3..ca8e7d8eb2b2e 100644 --- a/llvm/test/LTO/X86/hidden-escaped-symbols-alt.ll +++ b/llvm/test/LTO/X86/hidden-escaped-symbols-alt.ll @@ -3,7 +3,7 @@ ; RUN: split-file %s %t ; RUN: opt %t/hide-me.ll -o %t/hide-me.bc ; RUN: opt %t/ref.ll -o %t/ref.bc -; RUN: llvm-lto2 run -opaque-pointers \ +; RUN: llvm-lto2 run \ ; RUN: -r %t/hide-me.bc,_hide_me,p \ ; RUN: -r %t/ref.bc,_main,plx \ ; RUN: -r %t/ref.bc,_hide_me,l \ diff --git a/llvm/test/LTO/X86/hidden-escaped-symbols.ll b/llvm/test/LTO/X86/hidden-escaped-symbols.ll index 8010959a44cb6..aec617e25d3d8 100644 --- a/llvm/test/LTO/X86/hidden-escaped-symbols.ll +++ b/llvm/test/LTO/X86/hidden-escaped-symbols.ll @@ -3,7 +3,7 @@ ; RUN: split-file %s %t ; RUN: opt %t/hide-me.ll -o %t/hide-me.bc ; RUN: opt %t/ref.ll -o %t/ref.bc -; RUN: llvm-lto2 run -opaque-pointers \ +; RUN: llvm-lto2 run \ ; RUN: -r %t/hide-me.bc,_hide_me,p \ ; RUN: -r %t/ref.bc,_main,plx \ ; RUN: -r %t/ref.bc,_hide_me,l \ diff --git a/llvm/test/LTO/X86/inline-asm-lto-discard.ll b/llvm/test/LTO/X86/inline-asm-lto-discard.ll index ed8b272e10725..88492e4366489 100644 --- a/llvm/test/LTO/X86/inline-asm-lto-discard.ll +++ b/llvm/test/LTO/X86/inline-asm-lto-discard.ll @@ -7,7 +7,7 @@ ; RUN: opt %t/t3.ll -o %t3 ; RUN: opt %t/t4.ll -o %t4 -; RUN: llvm-lto2 run -opaque-pointers -o %to1 -save-temps %t1 %t2 \ +; RUN: llvm-lto2 run -o %to1 -save-temps %t1 %t2 \ ; RUN: -r %t1,foo,px \ ; RUN: -r %t2,foo, \ ; RUN: -r %t2,bar,pl @@ -16,7 +16,7 @@ ; RUN: llvm-objdump --no-print-imm-hex -d --disassemble-symbols=foo %to1.0 \ ; RUN: | FileCheck %s --check-prefix=DEF -; RUN: llvm-lto2 run -opaque-pointers -o %to2 -save-temps %t2 %t3 \ +; RUN: llvm-lto2 run -o %to2 -save-temps %t2 %t3 \ ; RUN: -r %t2,foo, \ ; RUN: -r %t2,bar,pl \ ; RUN: -r %t3,foo,px @@ -26,7 +26,7 @@ ; RUN: | FileCheck %s --check-prefix=DEF ; Check that ".symver" is properly handled. -; RUN: llvm-lto2 run -opaque-pointers -o %to3 -save-temps %t4 \ +; RUN: llvm-lto2 run -o %to3 -save-temps %t4 \ ; RUN: -r %t4,bar, \ ; RUN: -r %t4,foo, \ ; RUN: -r %t4,foo@@VER1,px diff --git a/llvm/test/LTO/X86/mix-opaque-typed.ll b/llvm/test/LTO/X86/mix-opaque-typed.ll index 2f87e448a0214..4fb60b99c41f3 100644 --- a/llvm/test/LTO/X86/mix-opaque-typed.ll +++ b/llvm/test/LTO/X86/mix-opaque-typed.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as %S/Inputs/opaque-pointers.ll -o %t-opaque.bc -; RUN: llvm-lto2 run -opaque-pointers -o %t-lto.bc %S/Inputs/typed.bc %t-opaque.bc -save-temps \ +; RUN: llvm-lto2 run -o %t-lto.bc %S/Inputs/typed.bc %t-opaque.bc -save-temps \ ; RUN: -r %S/Inputs/typed.bc,call_foo,px -r %S/Inputs/typed.bc,foo,l \ ; RUN: -r %t-opaque.bc,foo,px ; RUN: opt -S -o - %t-lto.bc.0.4.opt.bc | FileCheck %s diff --git a/llvm/test/LTO/X86/pr38046.ll b/llvm/test/LTO/X86/pr38046.ll index ad14af447b588..8f04190f0c83f 100644 --- a/llvm/test/LTO/X86/pr38046.ll +++ b/llvm/test/LTO/X86/pr38046.ll @@ -1,5 +1,5 @@ ; RUN: opt -module-summary -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t.lto.o %t.o \ +; RUN: llvm-lto2 run -save-temps -o %t.lto.o %t.o \ ; RUN: -r=%t.o,foo,plx \ ; RUN: -r=%t.o,get,pl ; RUN: llvm-dis %t.lto.o.0.2.internalize.bc >/dev/null 2>%t.dis.stderr || true diff --git a/llvm/test/LTO/X86/public-type-test.ll b/llvm/test/LTO/X86/public-type-test.ll index c3417385720cc..4cb2f6d2fbfaf 100644 --- a/llvm/test/LTO/X86/public-type-test.ll +++ b/llvm/test/LTO/X86/public-type-test.ll @@ -6,12 +6,12 @@ ; RUN: llvm-lto -exported-symbol=_main %t1 -o %t2 --lto-save-before-opt ; RUN: llvm-dis -o - %t2.0.preopt.bc | FileCheck %s --check-prefix=PUBLIC -; RUN: llvm-lto2 run -opaque-pointers %t1 -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t1 -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t2 \ ; RUN: -r=%t1,_main,px ; RUN: llvm-dis %t2.0.0.preopt.bc -o - | FileCheck %s --check-prefix=HIDDEN -; RUN: llvm-lto2 run -opaque-pointers %t1 -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t1 -save-temps -pass-remarks=. \ ; RUN: -o %t2 \ ; RUN: -r=%t1,_main,px ; RUN: llvm-dis %t2.0.0.preopt.bc -o - | FileCheck %s --check-prefix=PUBLIC diff --git a/llvm/test/LTO/X86/symver-asm.ll b/llvm/test/LTO/X86/symver-asm.ll index a8713bd4663b0..912fffe8b2cbb 100644 --- a/llvm/test/LTO/X86/symver-asm.ll +++ b/llvm/test/LTO/X86/symver-asm.ll @@ -1,7 +1,7 @@ -; RUN: llvm-as -opaque-pointers=1 < %s >%t1 -; RUN: llvm-lto -opaque-pointers -exported-symbol=io_cancel_0_4 -exported-symbol=io_cancel_weak_0_4 -exported-symbol=foo -o %t2 %t1 +; RUN: llvm-as < %s >%t1 +; RUN: llvm-lto -exported-symbol=io_cancel_0_4 -exported-symbol=io_cancel_weak_0_4 -exported-symbol=foo -o %t2 %t1 ; RUN: llvm-nm %t2 | FileCheck %s -; RUN: llvm-lto2 run -opaque-pointers -r %t1,io_cancel_0_4,plx -r %t1,io_cancel_0_4,lx -r %t1,io_cancel_local_0_4,plx -r %t1,io_cancel_weak_0_4,plx -r %t1,io_cancel_weak_0_4,lx -r %t1,io_cancel@@LIBAIO_0.4,plx -r %t1,io_cancel_weak@@LIBAIO_0.4,plx -r %t1,io_cancel_weak@@LIBAIO_0.4.1,plx -r %t1,foo,plx -r %t1,foo,lx -r %t1,foo@@VER1,plx -o %t3 %t1 -save-temps +; RUN: llvm-lto2 run -r %t1,io_cancel_0_4,plx -r %t1,io_cancel_0_4,lx -r %t1,io_cancel_local_0_4,plx -r %t1,io_cancel_weak_0_4,plx -r %t1,io_cancel_weak_0_4,lx -r %t1,io_cancel@@LIBAIO_0.4,plx -r %t1,io_cancel_weak@@LIBAIO_0.4,plx -r %t1,io_cancel_weak@@LIBAIO_0.4.1,plx -r %t1,foo,plx -r %t1,foo,lx -r %t1,foo@@VER1,plx -o %t3 %t1 -save-temps ; RUN: llvm-nm %t3.0 | FileCheck %s ; RUN: llvm-dis %t3.0.2.internalize.bc -o - | FileCheck %s --check-prefix=INTERN diff --git a/llvm/test/LTO/X86/tli-nobuiltin.ll b/llvm/test/LTO/X86/tli-nobuiltin.ll index c963e35a918d1..e1301a39a0510 100644 --- a/llvm/test/LTO/X86/tli-nobuiltin.ll +++ b/llvm/test/LTO/X86/tli-nobuiltin.ll @@ -13,18 +13,18 @@ ; Test -lto-freestanding option for LTOBackend -; RUN: llvm-lto2 run -opaque-pointers -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t1.o 2>&1 +; RUN: llvm-lto2 run -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t1.o 2>&1 ; RUN: llvm-nm %t1.o.0 | FileCheck %s --check-prefix=LTO -; RUN: llvm-lto2 run -opaque-pointers -lto-freestanding -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t2.o 2>&1 +; RUN: llvm-lto2 run -lto-freestanding -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t2.o 2>&1 ; RUN: llvm-nm %t2.o.0 | FileCheck %s --check-prefix=LTO-FREESTANDING ; Test -lto-freestanding option for LTOBackend with custom pipeline. -; RUN: llvm-lto2 run -opaque-pointers -opt-pipeline='default' -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t1.o 2>&1 +; RUN: llvm-lto2 run -opt-pipeline='default' -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t1.o 2>&1 ; RUN: llvm-nm %t1.o.0 | FileCheck %s --check-prefix=LTO -; RUN: llvm-lto2 run -opaque-pointers -opt-pipeline='default' -lto-freestanding -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t2.o 2>&1 +; RUN: llvm-lto2 run -opt-pipeline='default' -lto-freestanding -r %t.bc,_fprintf,px -r %t.bc,_hello_world,px -r %t.bc,_percent_s,px -r %t.bc,_foo,px %t.bc -o %t2.o 2>&1 ; RUN: llvm-nm %t2.o.0 | FileCheck %s --check-prefix=LTO-FREESTANDING diff --git a/llvm/test/LTO/X86/triple-init2.ll b/llvm/test/LTO/X86/triple-init2.ll index a870b0a59a43f..2638180ef33c6 100644 --- a/llvm/test/LTO/X86/triple-init2.ll +++ b/llvm/test/LTO/X86/triple-init2.ll @@ -8,7 +8,7 @@ ; Check with ThinLTO. Use llvm-lto2 since this adds earlier passes requiring ; the TargetLibraryInfo with ThinLTO (WholeProgramDevirt). ; RUN: opt -module-summary -o %t1 %s -; RUN: llvm-lto2 run -opaque-pointers -r %t1,main,plx -o %t2 %t1 +; RUN: llvm-lto2 run -r %t1,main,plx -o %t2 %t1 ; RUN: llvm-nm %t2.1 | FileCheck %s ; We check that LTO will be aware of target triple and prevent exp2 to ldexpf diff --git a/llvm/test/LTO/X86/type-mapping-bug2.ll b/llvm/test/LTO/X86/type-mapping-bug2.ll index 0295ae780ad30..8d3a3ac5d6deb 100644 --- a/llvm/test/LTO/X86/type-mapping-bug2.ll +++ b/llvm/test/LTO/X86/type-mapping-bug2.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary -o %t0.o %S/Inputs/type-mapping-bug2.ll ; RUN: opt -module-summary -o %t1.o %s -; RUN: llvm-lto2 run -opaque-pointers -o %t2 %t0.o %t1.o -r %t0.o,c,px -r %t1.o,a,px -r %t1.o,b,px +; RUN: llvm-lto2 run -o %t2 %t0.o %t1.o -r %t0.o,c,px -r %t1.o,a,px -r %t1.o,b,px ; ; Test for the issue described in https://bugs.llvm.org/show_bug.cgi?id=37684 diff --git a/llvm/test/LTO/X86/type-mapping-bug3.ll b/llvm/test/LTO/X86/type-mapping-bug3.ll index 52a9a1f549d18..8ea147e6fb974 100644 --- a/llvm/test/LTO/X86/type-mapping-bug3.ll +++ b/llvm/test/LTO/X86/type-mapping-bug3.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary -o %t0.o %S/Inputs/type-mapping-bug3.ll ; RUN: opt -module-summary -o %t1.o %s -; RUN: llvm-lto2 run -opaque-pointers -o %t2 %t0.o %t1.o -r %t0.o,a,px -r %t1.o,b,px -r %t1.o,c,px -r %t1.o,d, +; RUN: llvm-lto2 run -o %t2 %t0.o %t1.o -r %t0.o,a,px -r %t1.o,b,px -r %t1.o,c,px -r %t1.o,d, ; ; Test for the issue described in https://bugs.llvm.org/show_bug.cgi?id=40312 diff --git a/llvm/test/Linker/2008-03-05-AliasReference.ll b/llvm/test/Linker/2008-03-05-AliasReference.ll index 5ec7837758b8f..27ac262aa0481 100644 --- a/llvm/test/Linker/2008-03-05-AliasReference.ll +++ b/llvm/test/Linker/2008-03-05-AliasReference.ll @@ -1,7 +1,7 @@ ; PR2054 ; RUN: llvm-as %s -o %t1.bc ; RUN: llvm-as %p/2008-03-05-AliasReference2.ll -o %t2.bc -; RUN: llvm-link -opaque-pointers %t2.bc %t1.bc -o %t3.bc +; RUN: llvm-link %t2.bc %t1.bc -o %t3.bc ; ModuleID = 'bug.o' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" diff --git a/llvm/test/Linker/2008-07-06-AliasWeakDest.ll b/llvm/test/Linker/2008-07-06-AliasWeakDest.ll index 35ca07a3bc4cb..98cac6271533f 100644 --- a/llvm/test/Linker/2008-07-06-AliasWeakDest.ll +++ b/llvm/test/Linker/2008-07-06-AliasWeakDest.ll @@ -1,8 +1,8 @@ ; PR2463 -; RUN: llvm-as -opaque-pointers %s -o %t1.bc -; RUN: llvm-as -opaque-pointers %p/2008-07-06-AliasWeakDest2.ll -o %t2.bc -; RUN: llvm-link -opaque-pointers %t1.bc %t2.bc -o %t3.bc -; RUN: llvm-link -opaque-pointers %t2.bc %t1.bc -o %t4.bc +; RUN: llvm-as %s -o %t1.bc +; RUN: llvm-as %p/2008-07-06-AliasWeakDest2.ll -o %t2.bc +; RUN: llvm-link %t1.bc %t2.bc -o %t3.bc +; RUN: llvm-link %t2.bc %t1.bc -o %t4.bc target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i386-pc-linux-gnu" diff --git a/llvm/test/Linker/ConstantGlobals.ll b/llvm/test/Linker/ConstantGlobals.ll index 045a5dbca0c19..9836d8ae4b513 100644 --- a/llvm/test/Linker/ConstantGlobals.ll +++ b/llvm/test/Linker/ConstantGlobals.ll @@ -1,5 +1,5 @@ -; RUN: llvm-link -opaque-pointers %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s -; RUN: llvm-link -opaque-pointers %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s +; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s +; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s ; CHECK-DAG: @X = constant [1 x i32] [i32 8] @X = external global [1 x i32] diff --git a/llvm/test/Linker/PR8300.ll b/llvm/test/Linker/PR8300.ll index aed6fbf062e6b..7c03d5bb4ee0e 100644 --- a/llvm/test/Linker/PR8300.ll +++ b/llvm/test/Linker/PR8300.ll @@ -1 +1 @@ -; RUN: llvm-link -opaque-pointers %S/Inputs/PR8300.a.ll %S/Inputs/PR8300.b.ll -o %t.bc +; RUN: llvm-link %S/Inputs/PR8300.a.ll %S/Inputs/PR8300.b.ll -o %t.bc diff --git a/llvm/test/Linker/alias-2.ll b/llvm/test/Linker/alias-2.ll index 51a597cb5f3cd..4ee5ead0f2928 100644 --- a/llvm/test/Linker/alias-2.ll +++ b/llvm/test/Linker/alias-2.ll @@ -1,5 +1,5 @@ -; RUN: llvm-link -opaque-pointers %s %S/Inputs/alias-2.ll -S -o - | FileCheck %s -; RUN: llvm-link -opaque-pointers %S/Inputs/alias-2.ll %s -S -o - | FileCheck %s +; RUN: llvm-link %s %S/Inputs/alias-2.ll -S -o - | FileCheck %s +; RUN: llvm-link %S/Inputs/alias-2.ll %s -S -o - | FileCheck %s ; Test the fix for PR26152, where A from the second module is ; erroneously renamed to A.1 and not linked to the declaration from diff --git a/llvm/test/Linker/alias-threadlocal.ll b/llvm/test/Linker/alias-threadlocal.ll index be4999ac20266..a345a802b04ea 100644 --- a/llvm/test/Linker/alias-threadlocal.ll +++ b/llvm/test/Linker/alias-threadlocal.ll @@ -1,4 +1,4 @@ -; RUN: llvm-link -opaque-pointers %s %p/Inputs/alias-threadlocal-defs.ll -S -o - | FileCheck %s +; RUN: llvm-link %s %p/Inputs/alias-threadlocal-defs.ll -S -o - | FileCheck %s ; PR46297 ; Verify that linking GlobalAliases preserves the thread_local attribute diff --git a/llvm/test/Linker/appending-global-err3.ll b/llvm/test/Linker/appending-global-err3.ll index 39bd58fd16e12..85607ac26f6e9 100644 --- a/llvm/test/Linker/appending-global-err3.ll +++ b/llvm/test/Linker/appending-global-err3.ll @@ -1,5 +1,5 @@ -; RUN: not llvm-link -opaque-pointers %s %p/Inputs/appending-global.ll -S -o - 2>&1 | FileCheck %s -; RUN: not llvm-link -opaque-pointers %p/Inputs/appending-global.ll %s -S -o - 2>&1 | FileCheck %s +; RUN: not llvm-link %s %p/Inputs/appending-global.ll -S -o - 2>&1 | FileCheck %s +; RUN: not llvm-link %p/Inputs/appending-global.ll %s -S -o - 2>&1 | FileCheck %s ; Negative test to check that global variables with appending linkage and ; different element types cannot be linked. diff --git a/llvm/test/Linker/comdat-any.ll b/llvm/test/Linker/comdat-any.ll index 0124c13c360bb..ef6db661c3e55 100644 --- a/llvm/test/Linker/comdat-any.ll +++ b/llvm/test/Linker/comdat-any.ll @@ -1,9 +1,9 @@ ; RUN: rm -rf %t && split-file %s %t -; RUN: llvm-link -opaque-pointers -S %t/1.ll %t/1-aux.ll -o - | FileCheck %s -; RUN: llvm-link -opaque-pointers -S %t/2.ll %t/2-aux.ll -o - | FileCheck %s --check-prefix=CHECK2 +; RUN: llvm-link -S %t/1.ll %t/1-aux.ll -o - | FileCheck %s +; RUN: llvm-link -S %t/2.ll %t/2-aux.ll -o - | FileCheck %s --check-prefix=CHECK2 ;; A private linkage variable can be copied. -; RUN: llvm-link -opaque-pointers -S %t/3.ll %t/3-aux.ll -o - | FileCheck %s --check-prefix=CHECK3 +; RUN: llvm-link -S %t/3.ll %t/3-aux.ll -o - | FileCheck %s --check-prefix=CHECK3 ;--- 1.ll ; CHECK: @foo = global i8 0, comdat diff --git a/llvm/test/Linker/comdat-nonprevailing-decl.ll b/llvm/test/Linker/comdat-nonprevailing-decl.ll index 758877ddeae47..d3dfec8fb2bc7 100644 --- a/llvm/test/Linker/comdat-nonprevailing-decl.ll +++ b/llvm/test/Linker/comdat-nonprevailing-decl.ll @@ -1,5 +1,5 @@ ; RUN: rm -rf %t && split-file %s %t -; RUN: llvm-link -opaque-pointers -S %t/1.ll %t/1-aux.ll -o - | FileCheck %s +; RUN: llvm-link -S %t/1.ll %t/1-aux.ll -o - | FileCheck %s ;--- 1.ll $c = comdat any diff --git a/llvm/test/Linker/constructor-comdat.ll b/llvm/test/Linker/constructor-comdat.ll index 5e8c6011766e9..b052a6016331e 100644 --- a/llvm/test/Linker/constructor-comdat.ll +++ b/llvm/test/Linker/constructor-comdat.ll @@ -1,5 +1,5 @@ -; RUN: llvm-link -opaque-pointers %s %p/Inputs/constructor-comdat.ll -S -o - 2>&1 | FileCheck %s -; RUN: llvm-link -opaque-pointers %p/Inputs/constructor-comdat.ll %s -S -o - 2>&1 | FileCheck --check-prefix=NOCOMDAT %s +; RUN: llvm-link %s %p/Inputs/constructor-comdat.ll -S -o - 2>&1 | FileCheck %s +; RUN: llvm-link %p/Inputs/constructor-comdat.ll %s -S -o - 2>&1 | FileCheck --check-prefix=NOCOMDAT %s $_ZN3fooIiEC5Ev = comdat any ; CHECK: $_ZN3fooIiEC5Ev = comdat any diff --git a/llvm/test/Linker/ctors2.ll b/llvm/test/Linker/ctors2.ll index 4899c2b212d50..b316c09377539 100644 --- a/llvm/test/Linker/ctors2.ll +++ b/llvm/test/Linker/ctors2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-link -opaque-pointers -S %s %p/Inputs/ctors2.ll -o - | FileCheck %s +; RUN: llvm-link -S %s %p/Inputs/ctors2.ll -o - | FileCheck %s $foo = comdat any @foo = global i8 0, comdat diff --git a/llvm/test/Linker/ctors3.ll b/llvm/test/Linker/ctors3.ll index da026f9a93976..052a3c963daf9 100644 --- a/llvm/test/Linker/ctors3.ll +++ b/llvm/test/Linker/ctors3.ll @@ -1,4 +1,4 @@ -; RUN: llvm-link -opaque-pointers -S %s %p/Inputs/ctors3.ll -o - | FileCheck %s +; RUN: llvm-link -S %s %p/Inputs/ctors3.ll -o - | FileCheck %s $foo = comdat any %t = type { i8 } diff --git a/llvm/test/Linker/funcimport.ll b/llvm/test/Linker/funcimport.ll index b5b920e6e50d9..3ca09c26cdab4 100644 --- a/llvm/test/Linker/funcimport.ll +++ b/llvm/test/Linker/funcimport.ll @@ -1,18 +1,18 @@ -; First ensure that the ThinLTO handling in llvm-link -opaque-pointers and llvm-lto handles +; First ensure that the ThinLTO handling in llvm-link and llvm-lto handles ; bitcode without summary sections gracefully. -; RUN: opt -opaque-pointers %s -o %t.bc -; RUN: opt -opaque-pointers %p/Inputs/funcimport.ll -o %t2.bc -; RUN: llvm-link -opaque-pointers %t.bc -summary-index=%t.bc -S +; RUN: opt %s -o %t.bc +; RUN: opt %p/Inputs/funcimport.ll -o %t2.bc +; RUN: llvm-link %t.bc -summary-index=%t.bc -S ; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc ; Do setup work for all below tests: generate bitcode and combined index -; RUN: opt -opaque-pointers -module-summary %s -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/funcimport.ll -o %t2.bc +; RUN: opt -module-summary %s -o %t.bc +; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc ; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc ; Ensure statics are promoted/renamed correctly from this file (all but ; constant variable need promotion). -; RUN: llvm-link -opaque-pointers %t.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s --check-prefix=EXPORTSTATIC +; RUN: llvm-link %t.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s --check-prefix=EXPORTSTATIC ; EXPORTSTATIC-DAG: @staticvar.llvm.{{.*}} = hidden global ; Eventually @staticconstvar can be exported as a copy and not promoted ; EXPORTSTATIC-DAG: @staticconstvar.llvm.0 = hidden unnamed_addr constant @@ -25,7 +25,7 @@ ; Also ensures that alias to a linkonce function is turned into a declaration ; and that the associated linkonce function is not in the output, as it is ; lazily linked and never referenced/materialized. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc1:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB1 +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc1:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB1 ; IMPORTGLOB1-DAG: define available_externally void @globalfunc1 ; IMPORTGLOB1-DAG: declare void @weakalias ; IMPORTGLOB1-DAG: declare void @analias @@ -36,7 +36,7 @@ ; Ensure that weak alias to a non-imported function is correctly ; turned into a declaration, but that strong alias to an imported function ; is imported as alias. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc2:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB2 +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc2:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB2 ; IMPORTGLOB2-DAG: declare void @analias ; IMPORTGLOB2-DAG: define available_externally void @globalfunc2 ; IMPORTGLOB2-DAG: declare void @weakalias @@ -44,7 +44,7 @@ ; Ensure that strong alias imported in second pass of importing ends up ; as an alias. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc1:%t.bc -import=globalfunc2:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB3 +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc1:%t.bc -import=globalfunc2:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB3 ; IMPORTGLOB3-DAG: declare void @analias ; IMPORTGLOB3-DAG: define available_externally void @globalfunc1 ; IMPORTGLOB3-DAG: define available_externally void @globalfunc2 @@ -53,20 +53,20 @@ ; Ensure that strong alias imported in first pass of importing ends up ; as an alias, and that seeing the alias definition during a second inlining ; pass is handled correctly. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc2:%t.bc -import=globalfunc1:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB4 +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=globalfunc2:%t.bc -import=globalfunc1:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB4 ; IMPORTGLOB4-DAG: declare void @analias ; IMPORTGLOB4-DAG: define available_externally void @globalfunc2 ; IMPORTGLOB4-DAG: define available_externally void @globalfunc1 ; IMPORTGLOB4-DAG: declare void @weakalias ; An alias is never imported. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=linkoncefunc:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB5 +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=linkoncefunc:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOB5 ; IMPORTGLOB5-NOT: @linkoncealias ; IMPORTGLOB5-DAG: define available_externally void @linkoncefunc() ; Ensure that imported static variable and function references are correctly ; promoted and renamed (including static constant variable). -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=referencestatics:%t.bc -S | FileCheck %s --check-prefix=IMPORTSTATIC +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=referencestatics:%t.bc -S | FileCheck %s --check-prefix=IMPORTSTATIC ; IMPORTSTATIC-DAG: @staticvar.llvm.{{.*}} = external hidden global ; Eventually @staticconstvar can be imported as a copy ; IMPORTSTATIC-DAG: @staticconstvar.llvm.{{.*}} = external hidden unnamed_addr constant @@ -78,18 +78,18 @@ ; Ensure that imported global (external) function and variable references ; are handled correctly (including referenced variable imported as ; available_externally definition) -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=referenceglobals:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOBALS +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=referenceglobals:%t.bc -S | FileCheck %s --check-prefix=IMPORTGLOBALS ; IMPORTGLOBALS-DAG: @globalvar = external global ; IMPORTGLOBALS-DAG: declare void @globalfunc1() ; IMPORTGLOBALS-DAG: define available_externally i32 @referenceglobals ; Ensure that common variable correctly imported as common defition. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=referencecommon:%t.bc -S | FileCheck %s --check-prefix=IMPORTCOMMON +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=referencecommon:%t.bc -S | FileCheck %s --check-prefix=IMPORTCOMMON ; IMPORTCOMMON-DAG: @commonvar = external global ; IMPORTCOMMON-DAG: define available_externally i32 @referencecommon ; Ensure that imported static function pointer correctly promoted and renamed. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=callfuncptr:%t.bc -S | FileCheck %s --check-prefix=IMPORTFUNCPTR +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=callfuncptr:%t.bc -S | FileCheck %s --check-prefix=IMPORTFUNCPTR ; IMPORTFUNCPTR-DAG: @P.llvm.{{.*}} = external hidden global ptr ; IMPORTFUNCPTR-DAG: define available_externally void @callfuncptr ; IMPORTFUNCPTR-DAG: %0 = load ptr, ptr @P.llvm. @@ -97,7 +97,7 @@ ; Ensure that imported weak function reference/definition handled properly. ; Imported weak_any definition should be skipped with warning, and imported ; reference should turned into an external_weak declaration. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=callweakfunc:%t.bc -import=weakfunc:%t.bc -S 2>&1 | FileCheck %s --check-prefix=IMPORTWEAKFUNC +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=callweakfunc:%t.bc -import=weakfunc:%t.bc -S 2>&1 | FileCheck %s --check-prefix=IMPORTWEAKFUNC ; IMPORTWEAKFUNC-DAG: Ignoring import request for weak-any function weakfunc ; IMPORTWEAKFUNC-DAG: declare void @weakfunc ; IMPORTWEAKFUNC-DAG: define available_externally void @callweakfunc diff --git a/llvm/test/Linker/funcimport_comdat.ll b/llvm/test/Linker/funcimport_comdat.ll index c0ea9b10025f4..4f18646a29cfa 100644 --- a/llvm/test/Linker/funcimport_comdat.ll +++ b/llvm/test/Linker/funcimport_comdat.ll @@ -1,17 +1,17 @@ ; Do setup work for all below tests: generate bitcode and combined index -; RUN: opt -opaque-pointers -module-summary %s -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/funcimport_comdat.ll -o %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto -o %t3 %t.bc %t2.bc +; RUN: opt -module-summary %s -o %t.bc +; RUN: opt -module-summary %p/Inputs/funcimport_comdat.ll -o %t2.bc +; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc ; Ensure linking of comdat containing external linkage global and function ; removes the imported available_externally defs from comdat. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=comdat1_func1:%t.bc -S | FileCheck %s --check-prefix=IMPORTCOMDAT +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=comdat1_func1:%t.bc -S | FileCheck %s --check-prefix=IMPORTCOMDAT ; IMPORTCOMDAT-NOT: $comdat1 = comdat any ; IMPORTCOMDAT-NOT: comdat($comdat1) ; Ensure linking of comdat containing internal linkage function with alias ; removes the imported and promoted available_externally defs from comdat. -; RUN: llvm-link -opaque-pointers %t2.bc -summary-index=%t3.thinlto.bc -import=comdat2_func1:%t.bc -S | FileCheck %s --check-prefix=IMPORTCOMDAT2 +; RUN: llvm-link %t2.bc -summary-index=%t3.thinlto.bc -import=comdat2_func1:%t.bc -S | FileCheck %s --check-prefix=IMPORTCOMDAT2 ; IMPORTCOMDAT2-NOT: $comdat2 = comdat any ; IMPORTCOMDAT2-NOT: comdat($comdat2) diff --git a/llvm/test/Linker/ifunc.ll b/llvm/test/Linker/ifunc.ll index 3e953b9dd83ae..f22e4436cfd99 100644 --- a/llvm/test/Linker/ifunc.ll +++ b/llvm/test/Linker/ifunc.ll @@ -1,5 +1,5 @@ ; RUN: split-file %s %t -; RUN: llvm-link -opaque-pointers %t/a.ll %t/b.ll -S -o - | FileCheck %s +; RUN: llvm-link %t/a.ll %t/b.ll -S -o - | FileCheck %s ;; Check that ifuncs are linked in properly. diff --git a/llvm/test/Linker/linkage.ll b/llvm/test/Linker/linkage.ll index 71083fdf56ee4..c7309aa8750d2 100644 --- a/llvm/test/Linker/linkage.ll +++ b/llvm/test/Linker/linkage.ll @@ -1,3 +1,3 @@ ; RUN: llvm-as %S/Inputs/linkage.a.ll -o %t.1.bc ; RUN: llvm-as %S/Inputs/linkage.b.ll -o %t.2.bc -; RUN: llvm-link -opaque-pointers %t.1.bc %t.2.bc +; RUN: llvm-link %t.1.bc %t.2.bc diff --git a/llvm/test/Linker/wrong-addrspace-gv-declaration.ll b/llvm/test/Linker/wrong-addrspace-gv-declaration.ll index 709d3412041dd..b7abca7c0af51 100644 --- a/llvm/test/Linker/wrong-addrspace-gv-declaration.ll +++ b/llvm/test/Linker/wrong-addrspace-gv-declaration.ll @@ -1,5 +1,5 @@ -; RUN: llvm-link -opaque-pointers %s %p/Inputs/wrong-addrspace-gv-declaration.ll -S | FileCheck %s -; RUN: llvm-link -opaque-pointers %p/Inputs/wrong-addrspace-gv-declaration.ll %s -S | FileCheck %s +; RUN: llvm-link %s %p/Inputs/wrong-addrspace-gv-declaration.ll -S | FileCheck %s +; RUN: llvm-link %p/Inputs/wrong-addrspace-gv-declaration.ll %s -S | FileCheck %s ; The address space is declared incorrectly here, so an addrspacecast ; is needed to link. diff --git a/llvm/test/MC/ELF/cfi-version.ll b/llvm/test/MC/ELF/cfi-version.ll index 095b493516d99..306c948a92d1b 100644 --- a/llvm/test/MC/ELF/cfi-version.ll +++ b/llvm/test/MC/ELF/cfi-version.ll @@ -1,7 +1,7 @@ -; RUN: %llc_dwarf %s -o - -opaque-pointers -dwarf-version 2 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF2 -; RUN: %llc_dwarf %s -o - -opaque-pointers -dwarf-version 3 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF3 -; RUN: %llc_dwarf %s -o - -opaque-pointers -dwarf-version 4 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 -; RUN: %llc_dwarf %s -o - -opaque-pointers -dwarf-version 5 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 +; RUN: %llc_dwarf %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF2 +; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF3 +; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 +; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 ; .debug_frame is not emitted for targeting Windows x64, aarch64/arm64, or AIX. ; REQUIRES: debug_frame diff --git a/llvm/test/SYCLLowerIR/ESIMD/vec_arg_call_conv.ll b/llvm/test/SYCLLowerIR/ESIMD/vec_arg_call_conv.ll index 53d76936f0936..4172e8d7cc9ed 100644 --- a/llvm/test/SYCLLowerIR/ESIMD/vec_arg_call_conv.ll +++ b/llvm/test/SYCLLowerIR/ESIMD/vec_arg_call_conv.ll @@ -18,7 +18,7 @@ target triple = "spir64-unknown-unknown" @GRF = dso_local global %"class.sycl::_V1::ext::intel::esimd::simd.0" zeroinitializer, align 2048 -; // Compilation: clang++ -fsycl -Xclang -opaque-pointers src.cpp +; // Compilation: clang++ -fsycl -Xclang src.cpp ; // Template for the source: ; ; #include diff --git a/llvm/test/ThinLTO/X86/alias-ifunc.ll b/llvm/test/ThinLTO/X86/alias-ifunc.ll index f8ca3b82ec7ad..2c19621587328 100644 --- a/llvm/test/ThinLTO/X86/alias-ifunc.ll +++ b/llvm/test/ThinLTO/X86/alias-ifunc.ll @@ -6,7 +6,7 @@ ; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-QUUX ; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-CORGE ; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-GRAULT -; RUN: llvm-lto2 run -opaque-pointers %t.bc -r %t.bc,foo,px -r %t.bc,bar,px -r %t.bc,baz,px -r %t.bc,qux,px -r %t.bc,grault,px -o %t2 +; RUN: llvm-lto2 run %t.bc -r %t.bc,foo,px -r %t.bc,bar,px -r %t.bc,baz,px -r %t.bc,qux,px -r %t.bc,grault,px -o %t2 ; RUN: llvm-nm %t2.1 | FileCheck %s --check-prefix=CHECK-SYMBOL ; CHECK-SYMBOL: i bar diff --git a/llvm/test/ThinLTO/X86/alias_import.ll b/llvm/test/ThinLTO/X86/alias_import.ll index c676d4a561909..bc5e3ec4c20e8 100644 --- a/llvm/test/ThinLTO/X86/alias_import.ll +++ b/llvm/test/ThinLTO/X86/alias_import.ll @@ -1,8 +1,8 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/alias_import.ll -o %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-action=promote -thinlto-index %t.index.bc %t2.bc -o - | llvm-dis -o - | FileCheck -allow-deprecated-dag-overlap %s --check-prefix=PROMOTE -; RUN: llvm-lto -opaque-pointers -thinlto-action=import -thinlto-index %t.index.bc %t1.bc -o - | llvm-dis -o - | FileCheck -allow-deprecated-dag-overlap %s --check-prefix=IMPORT +; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc +; RUN: llvm-lto -thinlto-action=promote -thinlto-index %t.index.bc %t2.bc -o - | llvm-dis -o - | FileCheck -allow-deprecated-dag-overlap %s --check-prefix=PROMOTE +; RUN: llvm-lto -thinlto-action=import -thinlto-index %t.index.bc %t1.bc -o - | llvm-dis -o - | FileCheck -allow-deprecated-dag-overlap %s --check-prefix=IMPORT ; Alias can't point to "available_externally", so they are implemented by ; importing the alias as an available_externally definition copied from the diff --git a/llvm/test/ThinLTO/X86/alias_internal.ll b/llvm/test/ThinLTO/X86/alias_internal.ll index 32d0fdf621189..66bfa17f9a9fd 100644 --- a/llvm/test/ThinLTO/X86/alias_internal.ll +++ b/llvm/test/ThinLTO/X86/alias_internal.ll @@ -3,7 +3,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/alias_internal.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.out -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.out -save-temps \ ; RUN: -r %t1.bc,a1,plx \ ; RUN: -r %t2.bc,a2,plx diff --git a/llvm/test/ThinLTO/X86/asm.ll b/llvm/test/ThinLTO/X86/asm.ll index 20700071bb192..33d3906be0c9d 100644 --- a/llvm/test/ThinLTO/X86/asm.ll +++ b/llvm/test/ThinLTO/X86/asm.ll @@ -3,7 +3,7 @@ ; RUN: opt -module-summary %t/b.s -o %t/b.bc ; RUN: llvm-nm %t/a.bc | FileCheck %s --check-prefix=NM -; RUN: llvm-lto2 run -opaque-pointers %t/a.bc %t/b.bc -o %t/out -save-temps -r=%t/a.bc,ref,plx -r=%t/b.bc,ff_h264_cabac_tables,pl +; RUN: llvm-lto2 run %t/a.bc %t/b.bc -o %t/out -save-temps -r=%t/a.bc,ref,plx -r=%t/b.bc,ff_h264_cabac_tables,pl ; RUN: llvm-dis < %t/out.2.2.internalize.bc | FileCheck %s ;--- a.s diff --git a/llvm/test/ThinLTO/X86/cache-icall.ll b/llvm/test/ThinLTO/X86/cache-icall.ll index 90726a8d45d2e..994d922ec5038 100644 --- a/llvm/test/ThinLTO/X86/cache-icall.ll +++ b/llvm/test/ThinLTO/X86/cache-icall.ll @@ -4,18 +4,18 @@ ; This affects code generated for any users of f(). Make sure that we don't pull a stale object ; file for %t.o from the cache. -; RUN: opt -opaque-pointers -module-hash -module-summary -thinlto-bc -thinlto-split-lto-unit %s -o %t.bc -; RUN: opt -opaque-pointers -module-hash -module-summary -thinlto-bc -thinlto-split-lto-unit %p/Inputs/cache-icall.ll -o %t2.bc +; RUN: opt -module-hash -module-summary -thinlto-bc -thinlto-split-lto-unit %s -o %t.bc +; RUN: opt -module-hash -module-summary -thinlto-bc -thinlto-split-lto-unit %p/Inputs/cache-icall.ll -o %t2.bc ; RUN: rm -Rf %t.cache && mkdir %t.cache -; RUN: llvm-lto2 run -opaque-pointers -o %t-no.o %t.bc -cache-dir %t.cache \ +; RUN: llvm-lto2 run -o %t-no.o %t.bc -cache-dir %t.cache \ ; RUN: -r=%t.bc,_start,px \ ; RUN: -r=%t.bc,f, ; RUN: llvm-readelf -s %t-no.o.* | FileCheck %s --check-prefix=SYMBOLS-NO -; RUN: llvm-lto2 run -opaque-pointers -o %t-yes.o %t.bc %t2.bc -cache-dir %t.cache \ +; RUN: llvm-lto2 run -o %t-yes.o %t.bc %t2.bc -cache-dir %t.cache \ ; RUN: -r=%t.bc,_start,px \ ; RUN: -r=%t.bc,f, \ ; RUN: -r=%t2.bc,f,p diff --git a/llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll b/llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll index 319a7664c6e7e..cc87c2c6b62bb 100644 --- a/llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll +++ b/llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll @@ -9,17 +9,17 @@ ; where both t and t-import are sensitive to typeid1's resolution ; so 4 distinct objects in total. ; RUN: rm -rf %t.cache -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc %t-import.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f1_actual,plx -r=%t.bc,f2,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc %t-import.bc %t1.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f1_actual,plx -r=%t.bc,f2,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -r=%t1.bc,vt1,plx -whole-program-visibility +; RUN: llvm-lto2 run -o %t.o %t.bc %t-import.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f1_actual,plx -r=%t.bc,f2,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility +; RUN: llvm-lto2 run -o %t.o %t.bc %t-import.bc %t1.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f1_actual,plx -r=%t.bc,f2,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -r=%t1.bc,vt1,plx -whole-program-visibility ; RUN: ls %t.cache | count 4 ; Three resolutions for typeid2: Indir, SingleImpl, UniqueRetVal ; where both t and t-import are sensitive to typeid2's resolution ; so 6 distinct objects in total. ; RUN: rm -rf %t.cache -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc %t-import.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f2,plx -r=%t.bc,f1_actual,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc %t-import.bc %t2.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f2,plx -r=%t.bc,f1_actual,plx -r=%t2.bc,vt2,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t.bc %t-import.bc %t3.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f2,plx -r=%t.bc,f1_actual,plx -r=%t3.bc,vt2a,plx -r=%t3.bc,vt2b,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility +; RUN: llvm-lto2 run -o %t.o %t.bc %t-import.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f2,plx -r=%t.bc,f1_actual,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility +; RUN: llvm-lto2 run -o %t.o %t.bc %t-import.bc %t2.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f2,plx -r=%t.bc,f1_actual,plx -r=%t2.bc,vt2,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility +; RUN: llvm-lto2 run -o %t.o %t.bc %t-import.bc %t3.bc -cache-dir %t.cache -r=%t.bc,f1,plx -r=%t.bc,f2,plx -r=%t.bc,f1_actual,plx -r=%t3.bc,vt2a,plx -r=%t3.bc,vt2b,plx -r=%t-import.bc,importf1,plx -r=%t-import.bc,f1,lx -r=%t-import.bc,importf2,plx -r=%t-import.bc,f2,lx -whole-program-visibility ; RUN: ls %t.cache | count 6 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/ThinLTO/X86/callees-metadata.ll b/llvm/test/ThinLTO/X86/callees-metadata.ll index a2921c68079ad..3e416dd3debc6 100644 --- a/llvm/test/ThinLTO/X86/callees-metadata.ll +++ b/llvm/test/ThinLTO/X86/callees-metadata.ll @@ -2,7 +2,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/callees-metadata.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,bar,plx \ ; RUN: -r=%t1.bc,foo,l \ ; RUN: -r=%t2.bc,foo,pl diff --git a/llvm/test/ThinLTO/X86/cfi-devirt.ll b/llvm/test/ThinLTO/X86/cfi-devirt.ll index 2c83e73302856..7df936c02a341 100644 --- a/llvm/test/ThinLTO/X86/cfi-devirt.ll +++ b/llvm/test/ThinLTO/X86/cfi-devirt.ll @@ -4,9 +4,8 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers %t.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ -; RUN: -opaque-pointers \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ ; RUN: -r=%t.o,_ZN1A1nEi,p \ @@ -29,9 +28,8 @@ ; that does not have a split LTO Unit. Use -thinlto-distributed-indexes ; to ensure it is being caught in the thin link. ; RUN: opt -thinlto-bc -o %t2.o %S/Inputs/empty.ll -; RUN: not llvm-lto2 run -opaque-pointers %t.o %t2.o -thinlto-distributed-indexes \ +; RUN: not llvm-lto2 run %t.o %t2.o -thinlto-distributed-indexes \ ; RUN: -whole-program-visibility \ -; RUN: -opaque-pointers \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ ; RUN: -r=%t.o,_ZN1A1nEi,p \ diff --git a/llvm/test/ThinLTO/X86/cfi-distributed.ll b/llvm/test/ThinLTO/X86/cfi-distributed.ll index a2281148aaa80..66b8cc6cc5c4f 100644 --- a/llvm/test/ThinLTO/X86/cfi-distributed.ll +++ b/llvm/test/ThinLTO/X86/cfi-distributed.ll @@ -6,7 +6,7 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t1.o %s ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t2.o %p/Inputs/cfi-distributed.ll -; RUN: llvm-lto2 run -opaque-pointers -thinlto-distributed-indexes %t1.o %t2.o \ +; RUN: llvm-lto2 run -thinlto-distributed-indexes %t1.o %t2.o \ ; RUN: -o %t3 \ ; RUN: -r=%t1.o,test,px \ ; RUN: -r=%t1.o,_ZTV1B, \ diff --git a/llvm/test/ThinLTO/X86/cfi-unsat.ll b/llvm/test/ThinLTO/X86/cfi-unsat.ll index 7fdc98d8e6362..10c1dd56565d8 100644 --- a/llvm/test/ThinLTO/X86/cfi-unsat.ll +++ b/llvm/test/ThinLTO/X86/cfi-unsat.ll @@ -15,8 +15,7 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t1.o %p/Inputs/cfi-unsat.ll -; RUN: llvm-lto2 run -opaque-pointers %t.o %t1.o -save-temps -pass-remarks=. \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t.o %t1.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test2,px \ diff --git a/llvm/test/ThinLTO/X86/cfi.ll b/llvm/test/ThinLTO/X86/cfi.ll index 3b69df7991b68..1384b1ccbecc8 100644 --- a/llvm/test/ThinLTO/X86/cfi.ll +++ b/llvm/test/ThinLTO/X86/cfi.ll @@ -4,7 +4,7 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t.o \ +; RUN: llvm-lto2 run -save-temps %t.o \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ ; RUN: -r=%t.o,_ZTV1B, \ diff --git a/llvm/test/ThinLTO/X86/ctor-dtor-alias.ll b/llvm/test/ThinLTO/X86/ctor-dtor-alias.ll index 23af8aafa4667..f87fc16c933e1 100644 --- a/llvm/test/ThinLTO/X86/ctor-dtor-alias.ll +++ b/llvm/test/ThinLTO/X86/ctor-dtor-alias.ll @@ -7,11 +7,11 @@ ;; ;; clang -c -fpic -O1 -flto=thin a.cc && cp a.o b.o && ld.lld -shared a.o b.so -; RUN: opt -opaque-pointers -module-summary %s -o %t1.bc +; RUN: opt -module-summary %s -o %t1.bc ; RUN: cp %t1.bc %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -r=%t1.bc,_ZTV1A,pl -r=%t1.bc,_ZN1AD0Ev,pl -r=%t1.bc,_ZN1AD1Ev,pl -r=%t1.bc,_ZN1AD2Ev,pl -r=%t1.bc,D1_a,pl -r=%t1.bc,D1_a_a,pl \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -r=%t1.bc,_ZTV1A,pl -r=%t1.bc,_ZN1AD0Ev,pl -r=%t1.bc,_ZN1AD1Ev,pl -r=%t1.bc,_ZN1AD2Ev,pl -r=%t1.bc,D1_a,pl -r=%t1.bc,D1_a_a,pl \ ; RUN: -r=%t2.bc,_ZTV1A,l -r=%t2.bc,_ZN1AD0Ev,l -r=%t2.bc,_ZN1AD1Ev,l -r=%t2.bc,_ZN1AD2Ev,l -r=%t2.bc,D1_a,l -r=%t2.bc,D1_a_a,l -o %t3 --save-temps -; RUN: llvm-dis -opaque-pointers < %t3.2.1.promote.bc | FileCheck %s +; RUN: llvm-dis < %t3.2.1.promote.bc | FileCheck %s ; CHECK: @_ZTV1A = available_externally dso_local unnamed_addr constant { [4 x ptr] } { [4 x ptr] [ptr null, ptr null, ptr @_ZN1AD1Ev, ptr @_ZN1AD0Ev] } ; CHECK: @D1_a = weak_odr dso_local unnamed_addr alias void (ptr), ptr @_ZN1AD1Ev diff --git a/llvm/test/ThinLTO/X86/ctor-dtor-alias2.ll b/llvm/test/ThinLTO/X86/ctor-dtor-alias2.ll index cff4b36dfaa57..7e79c26e3fb7c 100644 --- a/llvm/test/ThinLTO/X86/ctor-dtor-alias2.ll +++ b/llvm/test/ThinLTO/X86/ctor-dtor-alias2.ll @@ -17,11 +17,11 @@ ; RUN: rm -rf %t && split-file %s %t && cd %t ;; a.bc defines D0 in comdat D0 and D2 in comdat D2. b.bc defines D0/D1/D2 in comdat D5. -; RUN: opt -opaque-pointers -module-summary a.ll -o a.bc -; RUN: opt -opaque-pointers -module-summary b.ll -o b.bc -; RUN: llvm-lto2 run -opaque-pointers a.bc b.bc -r=a.bc,aa,px -r=a.bc,_ZN1AIiED0Ev,px -r=a.bc,_ZN1AIiED2Ev,px -r=a.bc,_ZdlPv, \ +; RUN: opt -module-summary a.ll -o a.bc +; RUN: opt -module-summary b.ll -o b.bc +; RUN: llvm-lto2 run a.bc b.bc -r=a.bc,aa,px -r=a.bc,_ZN1AIiED0Ev,px -r=a.bc,_ZN1AIiED2Ev,px -r=a.bc,_ZdlPv, \ ; RUN: -r=b.bc,bb,px -r=b.bc,_ZN1AIiED0Ev, -r=b.bc,_ZN1AIiED1Ev,px -r=b.bc,_ZN1AIiED2Ev, -r=b.bc,_ZdlPv, -o out --save-temps -; RUN: llvm-dis -opaque-pointers < out.2.1.promote.bc | FileCheck %s +; RUN: llvm-dis < out.2.1.promote.bc | FileCheck %s ;; Although D0/D2 in b.bc is non-prevailing, keep D1/D2 as definitions, otherwise ;; the output may have an undefined and unsatisfied D1. diff --git a/llvm/test/ThinLTO/X86/deadstrip.ll b/llvm/test/ThinLTO/X86/deadstrip.ll index d8f75896fa1bb..4e97cc3317fb1 100644 --- a/llvm/test/ThinLTO/X86/deadstrip.ll +++ b/llvm/test/ThinLTO/X86/deadstrip.ll @@ -3,16 +3,15 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/deadstrip.ll -o %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc -; RUN: llvm-lto -opaque-pointers -exported-symbol=_main -thinlto-action=internalize %t1.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s -; RUN: llvm-lto -opaque-pointers -exported-symbol=_main -thinlto-action=internalize %t2.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=CHECK2 +; RUN: llvm-lto -exported-symbol=_main -thinlto-action=internalize %t1.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s +; RUN: llvm-lto -exported-symbol=_main -thinlto-action=internalize %t2.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=CHECK2 -; RUN: llvm-lto -opaque-pointers -exported-symbol=_main -thinlto-action=run -stats %t1.bc %t2.bc 2>&1 | FileCheck %s --check-prefix=STATS +; RUN: llvm-lto -exported-symbol=_main -thinlto-action=run -stats %t1.bc %t2.bc 2>&1 | FileCheck %s --check-prefix=STATS ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s --check-prefix=CHECK-NM -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.out -save-temps -stats \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.out -save-temps -stats \ ; RUN: -r %t1.bc,_main,plx \ ; RUN: -r %t1.bc,_bar,pl \ ; RUN: -r %t1.bc,_dead_func,pl \ @@ -109,8 +108,7 @@ ; In that case there are uses of @dead_func in the regular LTO partition ; and it shouldn't be internalized. ; RUN: opt %p/Inputs/deadstrip.ll -o %t3.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t3.bc -o %t4.out -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t1.bc %t3.bc -o %t4.out -save-temps \ ; RUN: -r %t1.bc,_main,plx \ ; RUN: -r %t1.bc,_bar,pl \ ; RUN: -r %t1.bc,_dead_func,pl \ diff --git a/llvm/test/ThinLTO/X86/devirt-after-icp.ll b/llvm/test/ThinLTO/X86/devirt-after-icp.ll index 526fbd3eb1fe4..96a998d3561ac 100644 --- a/llvm/test/ThinLTO/X86/devirt-after-icp.ll +++ b/llvm/test/ThinLTO/X86/devirt-after-icp.ll @@ -44,9 +44,8 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers %t.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ -; RUN: -opaque-pointers \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,_Z3bazP1A,px \ ; RUN: -r=%t.o,_ZN1A3fooEv, \ diff --git a/llvm/test/ThinLTO/X86/devirt.ll b/llvm/test/ThinLTO/X86/devirt.ll index b8cf8e1e5384c..3bb5d6b2e4e0d 100644 --- a/llvm/test/ThinLTO/X86/devirt.ll +++ b/llvm/test/ThinLTO/X86/devirt.ll @@ -34,7 +34,7 @@ ; NOENABLESPLITFLAG-DAG: typeidCompatibleVTable: (name: "1.{{.*}}", summary: ((offset: 16, [[D]]))) ; Index based WPD -; RUN: llvm-lto2 run -opaque-pointers %t2.o -opaque-pointers -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,px \ @@ -49,7 +49,7 @@ ; Check that we're able to prevent specific function from being ; devirtualized when running index based WPD. -; RUN: llvm-lto2 run -opaque-pointers %t2.o -opaque-pointers -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-skip=_ZN1A1nEi \ ; RUN: -o %t3 \ @@ -62,7 +62,7 @@ ; RUN: -r=%t2.o,_ZTV1C,px \ ; RUN: -r=%t2.o,_ZTV1D,px 2>&1 | FileCheck %s --check-prefix=SKIP -; RUN: llvm-lto2 run -opaque-pointers %t.o -opaque-pointers -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ diff --git a/llvm/test/ThinLTO/X86/devirt2.ll b/llvm/test/ThinLTO/X86/devirt2.ll index 59912ba2aaeec..1b33741d37bdd 100644 --- a/llvm/test/ThinLTO/X86/devirt2.ll +++ b/llvm/test/ThinLTO/X86/devirt2.ll @@ -37,8 +37,7 @@ ; NOENABLESPLITFLAG-DAG: typeidCompatibleVTable: (name: "_ZTS1D", summary: ((offset: 16, [[D]]))) ; Index based WPD -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps -pass-remarks=. \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ @@ -72,8 +71,7 @@ ; NM-INDEX2-DAG: t _ZN1C1fEi ; Index based WPD, distributed backends -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps \ ; RUN: -whole-program-visibility \ ; RUN: -thinlto-distributed-indexes -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ @@ -97,8 +95,7 @@ ; PRINT-DAG: Devirtualized call to {{.*}} (_ZN1D1mEi) ; New PM -; RUN: llvm-lto2 run -opaque-pointers %t1.o %t2.o -save-temps -pass-remarks=. \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t1.o %t2.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t5 \ ; RUN: -r=%t1.o,test,px \ diff --git a/llvm/test/ThinLTO/X86/devirt_after_filtering_unreachable.ll b/llvm/test/ThinLTO/X86/devirt_after_filtering_unreachable.ll index 1b5a550c60b3f..68b83debef7d3 100644 --- a/llvm/test/ThinLTO/X86/devirt_after_filtering_unreachable.ll +++ b/llvm/test/ThinLTO/X86/devirt_after_filtering_unreachable.ll @@ -12,7 +12,7 @@ ; RUN: llvm-dis -o - %t-foo.bc.0 | FileCheck %s --check-prefix=UNREACHABLEFLAG ; Tests that devirtualization happens. -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t-main.bc %t-foo.bc -pass-remarks=. -o %t \ +; RUN: llvm-lto2 run -save-temps %t-main.bc %t-foo.bc -pass-remarks=. -o %t \ ; RUN: -whole-program-visibility \ ; RUN: -r=%t-foo.bc,_Z3fooP4Base,pl \ ; RUN: -r=%t-foo.bc,_ZN7DerivedD0Ev,pl \ @@ -40,7 +40,7 @@ ; UNREACHABLEFLAG: gv: (name: "_ZN4BaseD0Ev", {{.*}}, funcFlags: ({{.*}} mustBeUnreachable: 1 ; Test that devirtualized happen in index based WPD -; RUN: llvm-lto2 run -opaque-pointers %t4.o %t3.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t4.o %t3.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ diff --git a/llvm/test/ThinLTO/X86/devirt_alias.ll b/llvm/test/ThinLTO/X86/devirt_alias.ll index 217387ac51943..38ce41163c18c 100644 --- a/llvm/test/ThinLTO/X86/devirt_alias.ll +++ b/llvm/test/ThinLTO/X86/devirt_alias.ll @@ -6,7 +6,7 @@ ; RUN: opt -thinlto-bc -o %t3.o %s ; RUN: opt -thinlto-bc -o %t4.o %p/Inputs/devirt_alias.ll -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ diff --git a/llvm/test/ThinLTO/X86/devirt_available_externally.ll b/llvm/test/ThinLTO/X86/devirt_available_externally.ll index f15c25ac1b57e..e5661709bcb1e 100644 --- a/llvm/test/ThinLTO/X86/devirt_available_externally.ll +++ b/llvm/test/ThinLTO/X86/devirt_available_externally.ll @@ -17,7 +17,7 @@ ; RUN: llvm-dis -o - %t4.o | FileCheck %s --check-prefix=EXTERNAL ; EXTERNAL: gv: (name: "_ZTV1D", {{.*}} vTableFuncs: ((virtFunc: -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ diff --git a/llvm/test/ThinLTO/X86/devirt_check.ll b/llvm/test/ThinLTO/X86/devirt_check.ll index 5d9201be5a0d8..bf03afa0d8c61 100644 --- a/llvm/test/ThinLTO/X86/devirt_check.ll +++ b/llvm/test/ThinLTO/X86/devirt_check.ll @@ -10,8 +10,7 @@ ; RUN: opt -thinlto-bc -o %t2.o %s ; Check first in trapping mode. -; RUN: llvm-lto2 run -opaque-pointers %t2.o -save-temps -pass-remarks=. \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -wholeprogramdevirt-check=trap \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,px \ @@ -21,8 +20,7 @@ ; RUN: llvm-dis %t3.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK --check-prefix=TRAP ; Check next in fallback mode. -; RUN: llvm-lto2 run -opaque-pointers %t2.o -save-temps -pass-remarks=. \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -wholeprogramdevirt-check=fallback \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,px \ diff --git a/llvm/test/ThinLTO/X86/devirt_external_comdat_same_guid.ll b/llvm/test/ThinLTO/X86/devirt_external_comdat_same_guid.ll index b53eabaceea7e..2417532568043 100644 --- a/llvm/test/ThinLTO/X86/devirt_external_comdat_same_guid.ll +++ b/llvm/test/ThinLTO/X86/devirt_external_comdat_same_guid.ll @@ -7,7 +7,7 @@ ; RUN: opt -thinlto-bc -o %t3.o %s ; RUN: opt -thinlto-bc -o %t4.o %p/Inputs/devirt_external_comdat_same_guid.ll -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ diff --git a/llvm/test/ThinLTO/X86/devirt_local_same_guid.ll b/llvm/test/ThinLTO/X86/devirt_local_same_guid.ll index d6bd928db6ab3..3efea8de3fbc6 100644 --- a/llvm/test/ThinLTO/X86/devirt_local_same_guid.ll +++ b/llvm/test/ThinLTO/X86/devirt_local_same_guid.ll @@ -7,7 +7,7 @@ ; RUN: opt -thinlto-bc -o %t3.o %s ; RUN: opt -thinlto-bc -o %t4.o %p/Inputs/devirt_local_same_guid.ll -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -pass-remarks=. \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ ; RUN: -r=%t3.o,use_B,px \ diff --git a/llvm/test/ThinLTO/X86/devirt_multiple_type_test.ll b/llvm/test/ThinLTO/X86/devirt_multiple_type_test.ll index 52d7108245a44..30b722b5a8b33 100644 --- a/llvm/test/ThinLTO/X86/devirt_multiple_type_test.ll +++ b/llvm/test/ThinLTO/X86/devirt_multiple_type_test.ll @@ -4,7 +4,7 @@ ; after inlining into a caller passing a derived type. ; RUN: opt -module-summary %s -o %t.o -; RUN: llvm-lto2 run -opaque-pointers -o %t.out %t.o \ +; RUN: llvm-lto2 run -o %t.out %t.o \ ; RUN: -pass-remarks=wholeprogramdevirt \ ; RUN: -r %t.o,_ZN1A3fooEv,px \ ; RUN: -r %t.o,_ZN1B3fooEv,px \ diff --git a/llvm/test/ThinLTO/X86/devirt_promote.ll b/llvm/test/ThinLTO/X86/devirt_promote.ll index aa296f4a4f19f..fc2b41f215af1 100644 --- a/llvm/test/ThinLTO/X86/devirt_promote.ll +++ b/llvm/test/ThinLTO/X86/devirt_promote.ll @@ -9,8 +9,7 @@ ; RUN: opt -thinlto-bc -o %t3.o %s ; RUN: opt -thinlto-bc -o %t4.o %p/Inputs/devirt_promote.ll -; RUN: llvm-lto2 run -opaque-pointers %t3.o %t4.o -save-temps -pass-remarks=. \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -wholeprogramdevirt-print-index-based \ ; RUN: -o %t5 \ diff --git a/llvm/test/ThinLTO/X86/devirt_pure_virtual_base.ll b/llvm/test/ThinLTO/X86/devirt_pure_virtual_base.ll index 982537b4cc1c5..cff616091e03d 100644 --- a/llvm/test/ThinLTO/X86/devirt_pure_virtual_base.ll +++ b/llvm/test/ThinLTO/X86/devirt_pure_virtual_base.ll @@ -3,7 +3,7 @@ ;; Index based WPD ;; Generate unsplit module with summary for ThinLTO index-based WPD. ; RUN: opt --thinlto-bc -o %t1a.o %s -; RUN: llvm-lto2 run -opaque-pointers %t1a.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t1a.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3a \ ; RUN: -r=%t1a.o,_start,plx \ @@ -19,7 +19,7 @@ ;; Hybrid WPD ;; Generate split module with summary for hybrid Thin/Regular LTO WPD. ; RUN: opt --thinlto-bc --thinlto-split-lto-unit -o %t1b.o %s -; RUN: llvm-lto2 run -opaque-pointers %t1b.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t1b.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3b \ ; RUN: -r=%t1b.o,_start,plx \ @@ -39,7 +39,7 @@ ;; Regular LTO WPD ; RUN: opt -o %t1c.o %s -; RUN: llvm-lto2 run -opaque-pointers %t1c.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t1c.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3c \ ; RUN: -r=%t1c.o,_start,plx \ diff --git a/llvm/test/ThinLTO/X86/devirt_single_hybrid.ll b/llvm/test/ThinLTO/X86/devirt_single_hybrid.ll index f830193e78353..f5a37551085ab 100644 --- a/llvm/test/ThinLTO/X86/devirt_single_hybrid.ll +++ b/llvm/test/ThinLTO/X86/devirt_single_hybrid.ll @@ -4,8 +4,7 @@ ; RUN: opt -thinlto-bc -thinlto-split-lto-unit %s -o %t-main.bc ; RUN: opt -thinlto-bc -thinlto-split-lto-unit %p/Inputs/devirt_single_hybrid_foo.ll -o %t-foo.bc ; RUN: opt -thinlto-bc -thinlto-split-lto-unit %p/Inputs/devirt_single_hybrid_bar.ll -o %t-bar.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t-main.bc %t-foo.bc %t-bar.bc -pass-remarks=. -o %t \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps %t-main.bc %t-foo.bc %t-bar.bc -pass-remarks=. -o %t \ ; RUN: -whole-program-visibility \ ; RUN: -r=%t-foo.bc,_Z3fooP1A,pl \ ; RUN: -r=%t-main.bc,main,plx \ diff --git a/llvm/test/ThinLTO/X86/devirt_vcall_vis_hidden.ll b/llvm/test/ThinLTO/X86/devirt_vcall_vis_hidden.ll index c2a28583d497f..7ebb22c6f98c8 100644 --- a/llvm/test/ThinLTO/X86/devirt_vcall_vis_hidden.ll +++ b/llvm/test/ThinLTO/X86/devirt_vcall_vis_hidden.ll @@ -6,7 +6,7 @@ ; Index based WPD ; Generate unsplit module with summary for ThinLTO index-based WPD. ; RUN: opt -thinlto-bc -o %t2.o %s -; RUN: llvm-lto2 run -opaque-pointers %t2.o -opaque-pointers -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,px \ ; RUN: -r=%t2.o,_ZN1A1nEi,p \ @@ -21,7 +21,7 @@ ; Hybrid WPD ; Generate split module with summary for hybrid Thin/Regular LTO WPD. ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers %t.o -opaque-pointers -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ ; RUN: -r=%t.o,_ZN1A1nEi,p \ @@ -42,7 +42,7 @@ ; Regular LTO WPD ; RUN: opt -o %t4.o %s -; RUN: llvm-lto2 run -opaque-pointers %t4.o -opaque-pointers -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t5 \ ; RUN: -r=%t4.o,test,px \ diff --git a/llvm/test/ThinLTO/X86/devirt_vcall_vis_public.ll b/llvm/test/ThinLTO/X86/devirt_vcall_vis_public.ll index 5b14fada8b408..10dda3fab0baa 100644 --- a/llvm/test/ThinLTO/X86/devirt_vcall_vis_public.ll +++ b/llvm/test/ThinLTO/X86/devirt_vcall_vis_public.ll @@ -6,7 +6,7 @@ ; Index based WPD ; Generate unsplit module with summary for ThinLTO index-based WPD. ; RUN: opt -thinlto-bc -o %t2.o %s -; RUN: llvm-lto2 run -opaque-pointers %t2.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,px \ @@ -24,7 +24,7 @@ ; Hybrid WPD ; Generate split module with summary for hybrid Thin/Regular LTO WPD. ; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers %t.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ @@ -48,7 +48,7 @@ ; Regular LTO WPD ; RUN: opt -o %t4.o %s -; RUN: llvm-lto2 run -opaque-pointers %t4.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t4.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -o %t5 \ ; RUN: -r=%t4.o,test,px \ @@ -72,7 +72,7 @@ ; WPD fails ; Index based WPD -; RUN: llvm-lto2 run -opaque-pointers %t2.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,px \ ; RUN: -r=%t2.o,test_public,px \ @@ -87,7 +87,7 @@ ; RUN: llvm-dis %t3.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-NODEVIRT-IR ; Hybrid WPD -; RUN: llvm-lto2 run -opaque-pointers %t.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -o %t3 \ ; RUN: -r=%t.o,test,px \ ; RUN: -r=%t.o,test_public,px \ @@ -109,7 +109,7 @@ ; RUN: llvm-dis %t3.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-NODEVIRT-IR ; Regular LTO WPD -; RUN: llvm-lto2 run -opaque-pointers %t4.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t4.o -save-temps -pass-remarks=. \ ; RUN: -o %t5 \ ; RUN: -r=%t4.o,test,px \ ; RUN: -r=%t4.o,test_public,px \ @@ -126,7 +126,7 @@ ; Try index-based WPD again with both -whole-program-visibility and ; -disable-whole-program-visibility to confirm the latter overrides ; the former and that WPD fails. -; RUN: llvm-lto2 run -opaque-pointers %t2.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -disable-whole-program-visibility \ ; RUN: -o %t3 \ diff --git a/llvm/test/ThinLTO/X86/dicompositetype-unique-alias.ll b/llvm/test/ThinLTO/X86/dicompositetype-unique-alias.ll index a03a7d7a0346a..83a19ca4767cc 100644 --- a/llvm/test/ThinLTO/X86/dicompositetype-unique-alias.ll +++ b/llvm/test/ThinLTO/X86/dicompositetype-unique-alias.ll @@ -1,8 +1,8 @@ ; RUN: opt -module-summary -o %t1.bc %s ; RUN: opt -module-summary -o %t2.bc %S/Inputs/dicompositetype-unique-alias.ll -; RUN: llvm-lto --thinlto-action=run -opaque-pointers %t1.bc %t2.bc -thinlto-save-temps=%t3. +; RUN: llvm-lto --thinlto-action=run %t1.bc %t2.bc -thinlto-save-temps=%t3. ; RUN: llvm-dis %t3.0.3.imported.bc -o - | FileCheck %s -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t --save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t --save-temps \ ; RUN: -r %t1.bc,_ZN1CD2Ev,pl \ ; RUN: -r %t1.bc,_ZN4CFVSD1Ev,l \ ; RUN: -r %t1.bc,_ZN4CFVSD2Ev,l \ diff --git a/llvm/test/ThinLTO/X86/dicompositetype-unique2.ll b/llvm/test/ThinLTO/X86/dicompositetype-unique2.ll index e41589ac85643..5c8ad4f4333e6 100644 --- a/llvm/test/ThinLTO/X86/dicompositetype-unique2.ll +++ b/llvm/test/ThinLTO/X86/dicompositetype-unique2.ll @@ -1,8 +1,8 @@ ; RUN: opt -module-summary -o %t1.bc %s ; RUN: opt -module-summary -o %t2.bc %S/Inputs/dicompositetype-unique2.ll -; RUN: llvm-lto --thinlto-action=run -opaque-pointers %t1.bc %t2.bc -thinlto-save-temps=%t3. +; RUN: llvm-lto --thinlto-action=run %t1.bc %t2.bc -thinlto-save-temps=%t3. ; RUN: llvm-dis %t3.0.3.imported.bc -o - | FileCheck %s -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t --save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t --save-temps \ ; RUN: -r %t1.bc,_ZN1CD2Ev,pl \ ; RUN: -r %t1.bc,_ZN4CFVSD2Ev,l \ ; RUN: -r %t1.bc,_Z3Getv,l \ diff --git a/llvm/test/ThinLTO/X86/distributed_import.ll b/llvm/test/ThinLTO/X86/distributed_import.ll index 6ae628027d730..6f5acd8cab40d 100644 --- a/llvm/test/ThinLTO/X86/distributed_import.ll +++ b/llvm/test/ThinLTO/X86/distributed_import.ll @@ -1,12 +1,12 @@ ; Test distributed build thin link output from llvm-lto2 ; Generate bitcode files with summary, as well as minimized bitcode containing just the summary -; RUN: opt -opaque-pointers -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc -; RUN: opt -opaque-pointers -thinlto-bc %p/Inputs/distributed_import.ll -thin-link-bitcode-file=%t2.thinlink.bc -o %t2.bc +; RUN: opt -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc +; RUN: opt -thinlto-bc %p/Inputs/distributed_import.ll -thin-link-bitcode-file=%t2.thinlink.bc -o %t2.bc ; RUN: llvm-bcanalyzer -dump %t1.thinlink.bc | FileCheck --check-prefix=THINLINKBITCODE %s ; First perform the thin link on the normal bitcode file. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -thinlto-distributed-indexes \ ; RUN: -r=%t1.bc,g, \ ; RUN: -r=%t1.bc,analias, \ @@ -14,8 +14,8 @@ ; RUN: -r=%t2.bc,g,px \ ; RUN: -r=%t2.bc,analias,px \ ; RUN: -r=%t2.bc,aliasee,px -; RUN: opt -opaque-pointers -passes=function-import -import-all-index -enable-import-metadata -summary-file %t1.bc.thinlto.bc %t1.bc -o %t1.out -; RUN: opt -opaque-pointers -passes=function-import -import-all-index -summary-file %t2.bc.thinlto.bc %t2.bc -o %t2.out +; RUN: opt -passes=function-import -import-all-index -enable-import-metadata -summary-file %t1.bc.thinlto.bc %t1.bc -o %t1.out +; RUN: opt -passes=function-import -import-all-index -summary-file %t2.bc.thinlto.bc %t2.bc -o %t2.out ; RUN: llvm-dis -o - %t1.out | FileCheck %s --check-prefix=IMPORT ; RUN: llvm-dis -o - %t2.out | FileCheck %s --check-prefix=EXPORT @@ -34,7 +34,7 @@ ; Next perform the thin link on the minimized bitcode files, and compare dumps ; of the resulting indexes to the above dumps to ensure they are identical. ; RUN: rm -f %t1.bc.thinlto.bc %t2.bc.thinlto.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -thinlto-distributed-indexes \ ; RUN: -r=%t1.bc,g, \ ; RUN: -r=%t1.bc,analias, \ @@ -48,8 +48,8 @@ ; Make sure importing occurs as expected ; RUN: cp %t1.bc.sv %t1.bc ; RUN: cp %t2.bc.sv %t2.bc -; RUN: opt -opaque-pointers -passes=function-import -import-all-index -enable-import-metadata -summary-file %t1.bc.thinlto.bc %t1.bc -o %t1.out -; RUN: opt -opaque-pointers -passes=function-import -import-all-index -summary-file %t2.bc.thinlto.bc %t2.bc -o %t2.out +; RUN: opt -passes=function-import -import-all-index -enable-import-metadata -summary-file %t1.bc.thinlto.bc %t1.bc -o %t1.out +; RUN: opt -passes=function-import -import-all-index -summary-file %t2.bc.thinlto.bc %t2.bc -o %t2.out ; RUN: llvm-dis -o - %t1.out | FileCheck %s --check-prefix=IMPORT ; RUN: llvm-dis -o - %t2.out | FileCheck %s --check-prefix=EXPORT diff --git a/llvm/test/ThinLTO/X86/dot-dumper-full-lto.ll b/llvm/test/ThinLTO/X86/dot-dumper-full-lto.ll index fd63da154992e..a924327482e14 100644 --- a/llvm/test/ThinLTO/X86/dot-dumper-full-lto.ll +++ b/llvm/test/ThinLTO/X86/dot-dumper-full-lto.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/dot-dumper.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t3 \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t3 \ ; RUN: -r=%t1.bc,main,px \ ; RUN: -r=%t1.bc,A, \ ; RUN: -r=%t2.bc,foo,p \ diff --git a/llvm/test/ThinLTO/X86/dot-dumper.ll b/llvm/test/ThinLTO/X86/dot-dumper.ll index 34a5cdbf796ef..53122160b1b25 100644 --- a/llvm/test/ThinLTO/X86/dot-dumper.ll +++ b/llvm/test/ThinLTO/X86/dot-dumper.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc -module-summary-dot-file=%t1.dot ; RUN: opt -module-summary %p/Inputs/dot-dumper.ll -o %t2.bc -module-summary-dot-file=%t2.dot -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t3 \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t3 \ ; RUN: -r=%t1.bc,main,px \ ; RUN: -r=%t1.bc,main_alias,p \ ; RUN: -r=%t1.bc,foo, \ diff --git a/llvm/test/ThinLTO/X86/dot-dumper2.ll b/llvm/test/ThinLTO/X86/dot-dumper2.ll index f664a1ab0043a..51f6c76ea5d70 100644 --- a/llvm/test/ThinLTO/X86/dot-dumper2.ll +++ b/llvm/test/ThinLTO/X86/dot-dumper2.ll @@ -1,8 +1,7 @@ ; Test writeOnly attribute ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/dot-dumper2.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t3 \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t3 \ ; RUN: -r=%t1.bc,main,px \ ; RUN: -r=%t1.bc,A, \ ; RUN: -r=%t2.bc,A,p diff --git a/llvm/test/ThinLTO/X86/emit-inprocess-files.ll b/llvm/test/ThinLTO/X86/emit-inprocess-files.ll index b21f7289134f4..5a7208241c6d0 100644 --- a/llvm/test/ThinLTO/X86/emit-inprocess-files.ll +++ b/llvm/test/ThinLTO/X86/emit-inprocess-files.ll @@ -4,12 +4,12 @@ ; RUN: rm -f %t1.bc.thinlto.bc %t2.bc.thinlto.bc %t.out.1 %t.out.2 %t1.bc.imports %t2.bc.imports ; Generate bitcode files with summary, as well as minimized bitcode containing just the summary -; RUN: opt -opaque-pointers -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc -; RUN: opt -opaque-pointers -thinlto-bc %p/Inputs/distributed_import.ll -thin-link-bitcode-file=%t2.thinlink.bc -o %t2.bc +; RUN: opt -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc +; RUN: opt -thinlto-bc %p/Inputs/distributed_import.ll -thin-link-bitcode-file=%t2.thinlink.bc -o %t2.bc ; First perform the thin link on the normal bitcode file using ; -thinlto-distributed-indexes, collecting outputs to be compared with later. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -thinlto-distributed-indexes \ ; RUN: -thinlto-emit-imports \ ; RUN: -r=%t1.bc,g, \ @@ -24,7 +24,7 @@ ; RUN: mv %t2.bc.imports %t2.bc.imports.orig ; Now use -thinlto-emit-indexes instead. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -thinlto-emit-indexes \ ; RUN: -r=%t1.bc,g, \ ; RUN: -r=%t1.bc,analias, \ @@ -49,7 +49,7 @@ ; RUN: rm -f %t1.bc.thinlto.bc %t2.bc.thinlto.bc %t.out.1 %t.out.2 ; Do the thin link again but also emit imports files now -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -thinlto-emit-indexes \ ; RUN: -thinlto-emit-imports \ ; RUN: -r=%t1.bc,g, \ diff --git a/llvm/test/ThinLTO/X86/funcattrs-prop-maythrow.ll b/llvm/test/ThinLTO/X86/funcattrs-prop-maythrow.ll index 41a858dee2f27..63578643621ae 100644 --- a/llvm/test/ThinLTO/X86/funcattrs-prop-maythrow.ll +++ b/llvm/test/ThinLTO/X86/funcattrs-prop-maythrow.ll @@ -2,7 +2,7 @@ ; RUN: split-file %s %t ; RUN: opt -thinlto-bc %t/main.ll -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc ; RUN: opt -thinlto-bc %t/callees.ll -thin-link-bitcode-file=%t2.thinlink.bc -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -disable-thinlto-funcattrs=0 %t1.bc %t2.bc -o %t.o -r %t1.bc,caller,px -r %t1.bc,caller1,px -r %t1.bc,caller2,px -r %t1.bc,caller_nounwind,px \ +; RUN: llvm-lto2 run -disable-thinlto-funcattrs=0 %t1.bc %t2.bc -o %t.o -r %t1.bc,caller,px -r %t1.bc,caller1,px -r %t1.bc,caller2,px -r %t1.bc,caller_nounwind,px \ ; RUN: -r %t1.bc,cleanupret,l -r %t1.bc,catchret,l -r %t1.bc,resume,l -r %t1.bc,cleanupret_nounwind,l \ ; RUN: -r %t2.bc,cleanupret,px -r %t2.bc,catchret,px -r %t2.bc,resume,px -r %t2.bc,cleanupret_nounwind,px -r %t2.bc,nonThrowing,px -r %t2.bc,__gxx_personality_v0,px -save-temps ; RUN: llvm-dis -o - %t2.bc | FileCheck %s --check-prefix=SUMMARY diff --git a/llvm/test/ThinLTO/X86/funcattrs-prop-unknown.ll b/llvm/test/ThinLTO/X86/funcattrs-prop-unknown.ll index 9ef59476b2719..48fa8f6bbffed 100644 --- a/llvm/test/ThinLTO/X86/funcattrs-prop-unknown.ll +++ b/llvm/test/ThinLTO/X86/funcattrs-prop-unknown.ll @@ -1,6 +1,6 @@ ; Unknown (e.g. indirect) calls returns conservative results from function propagation ; RUN: opt -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc -; RUN: llvm-lto2 run -opaque-pointers -disable-thinlto-funcattrs=0 %t1.bc -opaque-pointers -o %t.o -save-temps \ +; RUN: llvm-lto2 run -disable-thinlto-funcattrs=0 %t1.bc -o %t.o -save-temps \ ; RUN: -r %t1.bc,indirect,px -r %t1.bc,inlineasm,px -r %t1.bc,selectcallee,px -r %t1.bc,f, -r %t1.bc,g, -r %t1.bc,global, ; RUN: llvm-dis -o - %t.o.1.3.import.bc | FileCheck %s diff --git a/llvm/test/ThinLTO/X86/funcimport-debug.ll b/llvm/test/ThinLTO/X86/funcimport-debug.ll index a5f1d7cf30f34..574346d438fb7 100644 --- a/llvm/test/ThinLTO/X86/funcimport-debug.ll +++ b/llvm/test/ThinLTO/X86/funcimport-debug.ll @@ -7,8 +7,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/funcimport-debug.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,_main,plx \ ; RUN: -r=%t1.bc,_foo,l \ ; RUN: -r=%t1.bc,_baz,l \ diff --git a/llvm/test/ThinLTO/X86/funcimport-stats.ll b/llvm/test/ThinLTO/X86/funcimport-stats.ll index 73df16281f644..913b13004c1c2 100644 --- a/llvm/test/ThinLTO/X86/funcimport-stats.ll +++ b/llvm/test/ThinLTO/X86/funcimport-stats.ll @@ -1,9 +1,9 @@ ; REQUIRES: asserts -; RUN: opt -opaque-pointers -module-summary %p/funcimport.ll -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/funcimport.ll -o %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc +; RUN: opt -module-summary %p/funcimport.ll -o %t.bc +; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -o /dev/null -debug-only=function-import -stats > %t4 2>&1 +; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -o /dev/null -debug-only=function-import -stats > %t4 2>&1 ; RUN: cat %t4 | grep 'Is importing global' | count 4 ; RUN: cat %t4 | grep 'Is importing function' | count 8 ; RUN: cat %t4 | grep 'Is importing aliasee' | count 1 diff --git a/llvm/test/ThinLTO/X86/funcimport.ll b/llvm/test/ThinLTO/X86/funcimport.ll index 47e4a6c40d6aa..63a83b6a33b93 100644 --- a/llvm/test/ThinLTO/X86/funcimport.ll +++ b/llvm/test/ThinLTO/X86/funcimport.ll @@ -1,14 +1,14 @@ ; Do setup work for all below tests: generate bitcode and combined index -; RUN: opt -opaque-pointers -module-summary %s -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/funcimport.ll -o %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc +; RUN: opt -module-summary %s -o %t.bc +; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc -; RUN: llvm-lto -opaque-pointers -thinlto-index-stats %t3.bc | FileCheck %s -check-prefix=STATS +; RUN: llvm-lto -thinlto-index-stats %t3.bc | FileCheck %s -check-prefix=STATS ; STATS: Index {{.*}} contains 24 nodes (13 functions, 3 alias, 8 globals) and 19 edges (8 refs and 11 calls) ; Ensure statics are promoted/renamed correctly from this file (all but ; constant variable need promotion). -; RUN: llvm-lto -opaque-pointers -thinlto-action=promote %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=EXPORTSTATIC +; RUN: llvm-lto -thinlto-action=promote %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=EXPORTSTATIC ; EXPORTSTATIC-DAG: @staticvar.llvm.0 = hidden global ; Eventually @staticconstvar can be exported as a copy and not promoted ; EXPORTSTATIC-DAG: @staticconstvar.llvm.0 = hidden unnamed_addr constant @@ -21,7 +21,7 @@ ; Also ensures that alias to a linkonce function is turned into a declaration ; and that the associated linkonce function is not in the output, as it is ; lazily linked and never referenced/materialized. -; RUN: llvm-lto -opaque-pointers -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORTGLOB1 +; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORTGLOB1 ; IMPORTGLOB1-DAG: define available_externally void @globalfunc1 ; IMPORTGLOB1-DAG: declare void @weakalias ; IMPORTGLOB1-NOT: @linkoncealias @@ -32,15 +32,15 @@ ; IMPORTGLOB1-NOT: declare void @globalfunc2 ; Verify that the optimizer run -; RUN: llvm-lto -opaque-pointers -thinlto-action=optimize %t2.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=OPTIMIZED +; RUN: llvm-lto -thinlto-action=optimize %t2.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=OPTIMIZED ; OPTIMIZED: define i32 @main() ; Verify that the codegen run -; RUN: llvm-lto -opaque-pointers -thinlto-action=codegen %t2.bc -o - | llvm-nm -o - | FileCheck %s --check-prefix=CODEGEN +; RUN: llvm-lto -thinlto-action=codegen %t2.bc -o - | llvm-nm -o - | FileCheck %s --check-prefix=CODEGEN ; CODEGEN: T _main ; Verify that all run together -; RUN: llvm-lto -opaque-pointers -thinlto-action=run %t2.bc %t.bc -exported-symbol=_main +; RUN: llvm-lto -thinlto-action=run %t2.bc %t.bc -exported-symbol=_main ; RUN: llvm-nm -o - < %t.bc.thinlto.o | FileCheck %s --check-prefix=ALL ; RUN: llvm-nm -o - < %t2.bc.thinlto.o | FileCheck %s --check-prefix=ALL2 ; ALL: T _callfuncptr diff --git a/llvm/test/ThinLTO/X86/globals-import-blockaddr.ll b/llvm/test/ThinLTO/X86/globals-import-blockaddr.ll index 25be595b60255..dd8c5db826aa1 100644 --- a/llvm/test/ThinLTO/X86/globals-import-blockaddr.ll +++ b/llvm/test/ThinLTO/X86/globals-import-blockaddr.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/globals-import-blockaddr.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc -r=%t1.bc,foo,l -r=%t1.bc,bar,l -r=%t1.bc,main,pl %t2.bc -r=%t2.bc,foo,pl -r=%t2.bc,bar,pl -o %t3 +; RUN: llvm-lto2 run -save-temps %t1.bc -r=%t1.bc,foo,l -r=%t1.bc,bar,l -r=%t1.bc,main,pl %t2.bc -r=%t2.bc,foo,pl -r=%t2.bc,bar,pl -o %t3 ; RUN: llvm-dis %t3.1.3.import.bc -o - | FileCheck %s ; Verify that we haven't imported GV containing blockaddress diff --git a/llvm/test/ThinLTO/X86/globals-import.ll b/llvm/test/ThinLTO/X86/globals-import.ll index d9544be6a7cc4..d784398f792bd 100644 --- a/llvm/test/ThinLTO/X86/globals-import.ll +++ b/llvm/test/ThinLTO/X86/globals-import.ll @@ -8,10 +8,10 @@ ; RUN: opt -module-summary %p/Inputs/globals-import.ll -o %t2b.bc ; RUN: llvm-lto -thinlto-action=thinlink %t1.bc %t2.bc %t2b.bc -o %t3.index.bc -; RUN: llvm-lto -thinlto-action=import -opaque-pointers %t1.bc -thinlto-index=%t3.index.bc +; RUN: llvm-lto -thinlto-action=import %t1.bc -thinlto-index=%t3.index.bc ; RUN: llvm-dis %t1.bc.thinlto.imported.bc -o - | FileCheck --check-prefix=IMPORT %s -; RUN: llvm-lto -thinlto-action=promote -opaque-pointers %t2.bc -thinlto-index=%t3.index.bc -; RUN: llvm-lto -thinlto-action=promote -opaque-pointers %t2b.bc -thinlto-index=%t3.index.bc +; RUN: llvm-lto -thinlto-action=promote %t2.bc -thinlto-index=%t3.index.bc +; RUN: llvm-lto -thinlto-action=promote %t2b.bc -thinlto-index=%t3.index.bc ; RUN: llvm-dis %t2.bc.thinlto.promoted.bc -o - | FileCheck --check-prefix=PROMOTE1 %s ; RUN: llvm-dis %t2b.bc.thinlto.promoted.bc -o - | FileCheck --check-prefix=PROMOTE2 %s diff --git a/llvm/test/ThinLTO/X86/guid_collision.ll b/llvm/test/ThinLTO/X86/guid_collision.ll index 7a613b1d611b2..efda0bda1599f 100644 --- a/llvm/test/ThinLTO/X86/guid_collision.ll +++ b/llvm/test/ThinLTO/X86/guid_collision.ll @@ -3,11 +3,11 @@ ; ; RUN: opt -module-summary %s -o %t.bc ; RUN: opt -module-summary %p/Inputs/guid_collision.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t.bc %t2.bc -o %t.out -save-temps \ +; RUN: llvm-lto2 run %t.bc %t2.bc -o %t.out -save-temps \ ; RUN: -r=%t.bc,H,px -r=%t.bc,G, -r=%t2.bc,G,px ; RUN: llvm-dis -o - %t.out.1.3.import.bc | FileCheck %s -; RUN: llvm-lto2 run -opaque-pointers %t.bc %t2.bc -o %t.out -thinlto-distributed-indexes \ +; RUN: llvm-lto2 run %t.bc %t2.bc -o %t.out -thinlto-distributed-indexes \ ; RUN: -r=%t.bc,H,px -r=%t.bc,G, -r=%t2.bc,G,px ; RUN: opt -passes=function-import -import-all-index -summary-file %t.bc.thinlto.bc %t.bc -o %t.out ; RUN: llvm-dis -o - %t.out | FileCheck %s diff --git a/llvm/test/ThinLTO/X86/hidden-escaped-symbols-alt.ll b/llvm/test/ThinLTO/X86/hidden-escaped-symbols-alt.ll index b9a192c1b9add..dadd1d434256c 100644 --- a/llvm/test/ThinLTO/X86/hidden-escaped-symbols-alt.ll +++ b/llvm/test/ThinLTO/X86/hidden-escaped-symbols-alt.ll @@ -3,7 +3,7 @@ ; RUN: split-file %s %t ; RUN: opt -module-summary %t/hide-me.ll -o %t/hide-me.bc ; RUN: opt -module-summary %t/ref.ll -o %t/ref.bc -; RUN: llvm-lto2 run -opaque-pointers \ +; RUN: llvm-lto2 run \ ; RUN: -r %t/hide-me.bc,_hide_me,p \ ; RUN: -r %t/ref.bc,_main,plx \ ; RUN: -r %t/ref.bc,_hide_me,l \ diff --git a/llvm/test/ThinLTO/X86/hidden-escaped-symbols.ll b/llvm/test/ThinLTO/X86/hidden-escaped-symbols.ll index e2858a6a87d0e..8d0e22f0fd224 100644 --- a/llvm/test/ThinLTO/X86/hidden-escaped-symbols.ll +++ b/llvm/test/ThinLTO/X86/hidden-escaped-symbols.ll @@ -3,7 +3,7 @@ ; RUN: split-file %s %t ; RUN: opt -module-summary %t/hide-me.ll -o %t/hide-me.bc ; RUN: opt -module-summary %t/ref.ll -o %t/ref.bc -; RUN: llvm-lto2 run -opaque-pointers \ +; RUN: llvm-lto2 run \ ; RUN: -r %t/hide-me.bc,_hide_me,p \ ; RUN: -r %t/ref.bc,_main,plx \ ; RUN: -r %t/ref.bc,_hide_me,l \ diff --git a/llvm/test/ThinLTO/X86/import-constant.ll b/llvm/test/ThinLTO/X86/import-constant.ll index 786f78ffb8252..79d0ef5367333 100644 --- a/llvm/test/ThinLTO/X86/import-constant.ll +++ b/llvm/test/ThinLTO/X86/import-constant.ll @@ -3,8 +3,7 @@ ; by store instructions. ; RUN: opt -thinlto-bc %s -o %t1.bc ; RUN: opt -thinlto-bc %p/Inputs/import-constant.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t-out \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t-out \ ; RUN: -import-constants-with-refs \ ; RUN: -r=%t1.bc,main,plx \ ; RUN: -r=%t1.bc,_Z6getObjv,l \ @@ -16,8 +15,7 @@ ; RUN: llvm-dis %t-out.1.4.opt.bc -o - | FileCheck %s --check-prefix=OPT ; Check when importing references is prohibited -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t-out-norefs \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t-out-norefs \ ; RUN: -import-constants-with-refs=false \ ; RUN: -r=%t1.bc,main,plx \ ; RUN: -r=%t1.bc,_Z6getObjv,l \ diff --git a/llvm/test/ThinLTO/X86/import-dsolocal.ll b/llvm/test/ThinLTO/X86/import-dsolocal.ll index 91057fa323e72..f4ff76654fac1 100644 --- a/llvm/test/ThinLTO/X86/import-dsolocal.ll +++ b/llvm/test/ThinLTO/X86/import-dsolocal.ll @@ -4,7 +4,7 @@ ;; With a small limit, *_aux are either imported declarations (external/linkonce_odr/weak_odr) ;; or unimported (linkonce/weak). Check we discard dso_local. -; RUN: llvm-lto2 run -opaque-pointers %t/a.bc %t/b.bc -o %t1 -save-temps -import-instr-limit=3 \ +; RUN: llvm-lto2 run %t/a.bc %t/b.bc -o %t1 -save-temps -import-instr-limit=3 \ ; RUN: -r=%t/a.bc,main,plx -r=%t/a.bc,extern, -r=%t/a.bc,linkonce, -r=%t/a.bc,linkonceodr, -r=%t/a.bc,weak, -r=%t/a.bc,weakodr, \ ; RUN: -r=%t/b.bc,a,pl -r=%t/b.bc,b,pl -r=%t/b.bc,extern,pl -r=%t/b.bc,extern_aux,pl \ ; RUN: -r=%t/b.bc,linkonce,pl -r=%t/b.bc,linkonce_aux,pl -r=%t/b.bc,linkonceodr,pl -r=%t/b.bc,linkonceodr_aux,pl \ @@ -13,7 +13,7 @@ ;; With a large limit, *_aux are either imported definitions (external/linkonce_odr/weak_odr) ;; or unimported (linkonce/weak). Check we discard dso_local as well. -; RUN: llvm-lto2 run -opaque-pointers %t/a.bc %t/b.bc -o %t2 -save-temps -import-instr-limit=10 \ +; RUN: llvm-lto2 run %t/a.bc %t/b.bc -o %t2 -save-temps -import-instr-limit=10 \ ; RUN: -r=%t/a.bc,main,plx -r=%t/a.bc,extern, -r=%t/a.bc,linkonce, -r=%t/a.bc,linkonceodr, -r=%t/a.bc,weak, -r=%t/a.bc,weakodr, \ ; RUN: -r=%t/b.bc,a,pl -r=%t/b.bc,b,pl -r=%t/b.bc,extern,pl -r=%t/b.bc,extern_aux,pl \ ; RUN: -r=%t/b.bc,linkonce,pl -r=%t/b.bc,linkonce_aux,pl -r=%t/b.bc,linkonceodr,pl -r=%t/b.bc,linkonceodr_aux,pl \ diff --git a/llvm/test/ThinLTO/X86/import-metadata.ll b/llvm/test/ThinLTO/X86/import-metadata.ll index 8b5892d393ff2..f938fdd5c93c9 100644 --- a/llvm/test/ThinLTO/X86/import-metadata.ll +++ b/llvm/test/ThinLTO/X86/import-metadata.ll @@ -1,6 +1,6 @@ ; RUN: opt -thinlto-bc %s -o %t1.bc ; RUN: opt -thinlto-bc %p/Inputs/import-metadata.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t-out \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t-out \ ; RUN: -r=%t1.bc,main,plx \ ; RUN: -r=%t1.bc,foo,l \ ; RUN: -r=%t2.bc,foo,pl diff --git a/llvm/test/ThinLTO/X86/import-ro-constant.ll b/llvm/test/ThinLTO/X86/import-ro-constant.ll index e76700451ebb2..604817b67dea2 100644 --- a/llvm/test/ThinLTO/X86/import-ro-constant.ll +++ b/llvm/test/ThinLTO/X86/import-ro-constant.ll @@ -3,8 +3,7 @@ ; RUN: opt -thinlto-bc %s -o %t-main ; RUN: opt -thinlto-bc %p/Inputs/import-ro-constant-foo.ll -o %t-foo ; RUN: opt -thinlto-bc %p/Inputs/import-ro-constant-bar.ll -o %t-bar -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t-out %t-main %t-foo %t-bar \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps -o %t-out %t-main %t-foo %t-bar \ ; RUN: -r=%t-foo,foo,pl \ ; RUN: -r=%t-main,main,plx \ ; RUN: -r=%t-main,_Z3barv,l \ diff --git a/llvm/test/ThinLTO/X86/index-const-prop-O0.ll b/llvm/test/ThinLTO/X86/index-const-prop-O0.ll index f88f259c227fa..db04bc364cd34 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-O0.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-O0.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-define-g.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -O0 -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3 +; RUN: llvm-lto2 run -O0 -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3 ; RUN: llvm-dis %t3.1.3.import.bc -o - | FileCheck %s ; With -O0 import is disabled so we must not internalize diff --git a/llvm/test/ThinLTO/X86/index-const-prop-alias.ll b/llvm/test/ThinLTO/X86/index-const-prop-alias.ll index 2fe2116e29468..1e4855aa840cd 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-alias.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-alias.ll @@ -1,17 +1,17 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-alias.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,ret_ptr,pl -r=%t1.bc,g.alias,l -r=%t1.bc,g,l \ +; RUN: llvm-lto2 run %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,ret_ptr,pl -r=%t1.bc,g.alias,l -r=%t1.bc,g,l \ ; RUN: %t2.bc -r=%t2.bc,g,pl -r=%t2.bc,g.alias,pl -save-temps -o %t3 ; RUN: llvm-dis %t3.1.3.import.bc -o - | FileCheck %s --check-prefix=IMPORT ; RUN: llvm-dis %t3.1.5.precodegen.bc -o - | FileCheck %s --check-prefix=CODEGEN ; When ret_ptr is preserved we return pointer to alias, so we can't internalize aliasee -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,ret_ptr,plx -r=%t1.bc,g.alias,l -r=%t1.bc,g,l \ +; RUN: llvm-lto2 run %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,ret_ptr,plx -r=%t1.bc,g.alias,l -r=%t1.bc,g,l \ ; RUN: %t2.bc -r=%t2.bc,g,pl -r=%t2.bc,g.alias,pl -save-temps -o %t4 ; RUN: llvm-dis %t4.1.3.import.bc -o - | FileCheck %s --check-prefix=PRESERVED ; When g.alias is preserved we can't internalize aliasee either -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,ret_ptr,pl -r=%t1.bc,g.alias,l -r=%t1.bc,g,l \ +; RUN: llvm-lto2 run %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,ret_ptr,pl -r=%t1.bc,g.alias,l -r=%t1.bc,g,l \ ; RUN: %t2.bc -r=%t2.bc,g,pl -r=%t2.bc,g.alias,plx -save-temps -o %t5 ; RUN: llvm-dis %t5.1.3.import.bc -o - | FileCheck %s --check-prefix=PRESERVED diff --git a/llvm/test/ThinLTO/X86/index-const-prop-cache.ll b/llvm/test/ThinLTO/X86/index-const-prop-cache.ll index 21146bf0408ed..c4641b4c58b7e 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-cache.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-cache.ll @@ -6,24 +6,24 @@ ; RUN: rm -Rf %t.cache && mkdir %t.cache ; Here @gFoo variable is writeable -; RUN: llvm-lto -thinlto-action=run -opaque-pointers %t1.bc %t4.bc %t2.bc \ +; RUN: llvm-lto -thinlto-action=run %t1.bc %t4.bc %t2.bc \ ; RUN: -exported-symbol=main -exported-symbol=test -thinlto-cache-dir=%t.cache ; RUN: ls %t.cache/llvmcache-* | count 3 ; Now gFoo is read-only and all modules should get different cache keys. -; RUN: llvm-lto -thinlto-action=run -opaque-pointers %t1.bc %t3.bc %t2.bc \ +; RUN: llvm-lto -thinlto-action=run %t1.bc %t3.bc %t2.bc \ ; RUN: -exported-symbol=main -exported-symbol=test -thinlto-cache-dir=%t.cache ; RUN: ls %t.cache/llvmcache-* | count 6 ; Do the same but with llvm-lto2 ; RUN: rm -Rf %t.cache && mkdir %t.cache -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t4.bc %t2.bc -cache-dir=%t.cache -o %t5 \ +; RUN: llvm-lto2 run %t1.bc %t4.bc %t2.bc -cache-dir=%t.cache -o %t5 \ ; RUN: -r=%t1.bc,main,plx -r=%t1.bc,foo,l \ ; RUN: -r=%t4.bc,test,plx -r=%t4.bc,foo,l -r=%t4.bc,bar,l \ ; RUN: -r=%t2.bc,foo,pl -r=%t2.bc,bar,pl -r=%t2.bc,rand, ; RUN: ls %t.cache/llvmcache-* | count 3 -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t3.bc %t2.bc -cache-dir %t.cache -o %t6 \ +; RUN: llvm-lto2 run %t1.bc %t3.bc %t2.bc -cache-dir %t.cache -o %t6 \ ; RUN: -r=%t1.bc,main,plx -r=%t1.bc,foo,l \ ; RUN: -r=%t3.bc,test,plx -r=%t3.bc,foo,l \ ; RUN: -r=%t2.bc,foo,pl -r=%t2.bc,bar,pl -r=%t2.bc,rand, diff --git a/llvm/test/ThinLTO/X86/index-const-prop-comdat.ll b/llvm/test/ThinLTO/X86/index-const-prop-comdat.ll index 4aa5f80e66aee..fe0b87377b5ac 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-comdat.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-comdat.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-comdat.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3 +; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3 ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s ; Comdats are not internalized even if they are read only. diff --git a/llvm/test/ThinLTO/X86/index-const-prop-dead.ll b/llvm/test/ThinLTO/X86/index-const-prop-dead.ll index b3c241de5ea98..a8622b5214914 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-dead.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-dead.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-define-g.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t2.bc -r=%t2.bc,g,pl \ +; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,g,pl \ ; RUN: %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,foo,pl -r=%t1.bc,g, -o %t3 ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s diff --git a/llvm/test/ThinLTO/X86/index-const-prop-full-lto.ll b/llvm/test/ThinLTO/X86/index-const-prop-full-lto.ll index 221f22db6fd1e..ccd9f33a0c310 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-full-lto.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-full-lto.ll @@ -1,7 +1,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-define-g.ll -o %t2.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-full-lto.ll -o %t3.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t2.bc -r=%t2.bc,g,pl \ +; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,g,pl \ ; RUN: %t1.bc -r=%t1.bc,foo,l -r=%t1.bc,main,plx -r=%t1.bc,g, \ ; RUN: %t3.bc -r=%t3.bc,foo,pl -r=%t3.bc,g, -o %t4 ; RUN: llvm-dis %t4.2.3.import.bc -o - | FileCheck %s diff --git a/llvm/test/ThinLTO/X86/index-const-prop-gvref-pie.ll b/llvm/test/ThinLTO/X86/index-const-prop-gvref-pie.ll index ce483ca93326d..c9ccdc7f6feaa 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-gvref-pie.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-gvref-pie.ll @@ -1,7 +1,7 @@ ;; The same as index-const-prop-gvref.ll, except for PIE. ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-gvref.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t2.bc -r=%t2.bc,b,pl -r=%t2.bc,a,pl \ +; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,b,pl -r=%t2.bc,a,pl \ ; RUN: %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,a, -r=%t1.bc,b, -o %t3 ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s --check-prefix=DEST diff --git a/llvm/test/ThinLTO/X86/index-const-prop-gvref.ll b/llvm/test/ThinLTO/X86/index-const-prop-gvref.ll index a308d3342e853..45bf345ea3a1c 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-gvref.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-gvref.ll @@ -1,12 +1,12 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-gvref.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -relocation-model=static -opaque-pointers -save-temps %t2.bc -r=%t2.bc,b,pl -r=%t2.bc,a,pl \ +; RUN: llvm-lto2 run -relocation-model=static -save-temps %t2.bc -r=%t2.bc,b,pl -r=%t2.bc,a,pl \ ; RUN: %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,a, -r=%t1.bc,b, -o %t3 ; RUN: llvm-dis %t3.1.3.import.bc -o - | FileCheck %s --check-prefix=SRC ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s --check-prefix=DEST ;; When producing an ELF DSO, clear dso_local for declarations to avoid direct access. -; RUN: llvm-lto2 run -opaque-pointers -relocation-model=pic -opaque-pointers -save-temps %t2.bc -r=%t2.bc,b,pl -r=%t2.bc,a,pl \ +; RUN: llvm-lto2 run -relocation-model=pic -save-temps %t2.bc -r=%t2.bc,b,pl -r=%t2.bc,a,pl \ ; RUN: %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,a, -r=%t1.bc,b, -o %t4 ; RUN: llvm-dis %t4.1.3.import.bc -o - | FileCheck %s --check-prefix=SRC ; RUN: llvm-dis %t4.2.3.import.bc -o - | FileCheck %s --check-prefix=DEST_DSO diff --git a/llvm/test/ThinLTO/X86/index-const-prop-ldst.ll b/llvm/test/ThinLTO/X86/index-const-prop-ldst.ll index d254c30efe468..ae68275d1f9f6 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-ldst.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-ldst.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-define-g.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3 +; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3 ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s ; The 'store' instruction in @main should prevent internalization diff --git a/llvm/test/ThinLTO/X86/index-const-prop-linkage.ll b/llvm/test/ThinLTO/X86/index-const-prop-linkage.ll index bed8135dc7b25..c20cf94050449 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop-linkage.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop-linkage.ll @@ -1,6 +1,6 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop-linkage.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t2.bc -r=%t2.bc,foo,pl -r=%t2.bc,g1,pl -r=%t2.bc,g2,pl -r=%t2.bc,g3, \ +; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,foo,pl -r=%t2.bc,g1,pl -r=%t2.bc,g2,pl -r=%t2.bc,g3, \ ; RUN: %t1.bc -r=%t1.bc,foo, -r=%t1.bc,main,plx -r=%t1.bc,g2, -o %t3 ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s diff --git a/llvm/test/ThinLTO/X86/index-const-prop.ll b/llvm/test/ThinLTO/X86/index-const-prop.ll index e1fa2e94a44db..5087ec6ad5cab 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop.ll @@ -6,7 +6,7 @@ ; -stats requires asserts ; REQUIRES: asserts -; RUN: opt -module-summary -opaque-pointers %s -o %t1.bc +; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop.ll -o %t2.bc ; RUN: llvm-lto -thinlto-action=thinlink -o %t3.index.bc %t1.bc %t2.bc ; RUN: llvm-lto -thinlto-action=import -exported-symbol=main %t1.bc -thinlto-index=%t3.index.bc -o %t1.imported.bc -stats 2>&1 | FileCheck %s --check-prefix=STATS diff --git a/llvm/test/ThinLTO/X86/index-const-prop2.ll b/llvm/test/ThinLTO/X86/index-const-prop2.ll index 834686a4695e1..7f02037e4194b 100644 --- a/llvm/test/ThinLTO/X86/index-const-prop2.ll +++ b/llvm/test/ThinLTO/X86/index-const-prop2.ll @@ -2,9 +2,9 @@ ; 1. Internalize global definition which is not used externally if all accesses to it are read-only ; 2. Make a local copy of internal definition if all accesses to it are readonly. This allows constant ; folding it during optimziation phase. -; RUN: opt -module-summary -opaque-pointers %s -o %t1.bc +; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -save-temps \ ; RUN: -r=%t2.bc,foo,pl \ ; RUN: -r=%t2.bc,bar,pl \ ; RUN: -r=%t2.bc,baz,pl \ @@ -21,7 +21,7 @@ ; RUN: llvm-dis %t3.1.5.precodegen.bc -o - | FileCheck %s --check-prefix=CODEGEN ; Now check that we won't internalize global (gBar) if it's externally referenced -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -save-temps \ ; RUN: -r=%t2.bc,foo,pl \ ; RUN: -r=%t2.bc,bar,pl \ ; RUN: -r=%t2.bc,baz,pl \ @@ -38,7 +38,7 @@ ; Run again but with main2 exported instead of main to check that write only ; variables are optimized out. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -save-temps \ ; RUN: -r=%t2.bc,foo,pl \ ; RUN: -r=%t2.bc,bar,pl \ ; RUN: -r=%t2.bc,baz,pl \ diff --git a/llvm/test/ThinLTO/X86/internalize.ll b/llvm/test/ThinLTO/X86/internalize.ll index a57d30705d199..2af88758b2ff1 100644 --- a/llvm/test/ThinLTO/X86/internalize.ll +++ b/llvm/test/ThinLTO/X86/internalize.ll @@ -13,7 +13,7 @@ ; RUN: -enable-lto-internalization=false --exported-symbol=_foo ; RUN: llvm-dis < %t1.bc.thinlto.internalized.bc | FileCheck %s --check-prefix=INTERNALIZE-OPTION-DISABLE -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,_foo,pxl \ ; RUN: -r=%t1.bc,_bar,pl \ ; RUN: -r=%t1.bc,_linkonce_func,pl \ @@ -25,7 +25,7 @@ ; Test the enable-lto-internalization option by setting it to false. ; This makes sure indices are not marked as internallinkage and therefore ; internalization does not happen. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -o %t.o -save-temps -enable-lto-internalization=false \ +; RUN: llvm-lto2 run %t1.bc -o %t.o -save-temps -enable-lto-internalization=false \ ; RUN: -r=%t1.bc,_foo,pxl \ ; RUN: -r=%t1.bc,_bar,pl \ ; RUN: -r=%t1.bc,_linkonce_func,pl \ diff --git a/llvm/test/ThinLTO/X86/lazyload_metadata.ll b/llvm/test/ThinLTO/X86/lazyload_metadata.ll index 5726a0c0daefc..1fea2d0432c69 100644 --- a/llvm/test/ThinLTO/X86/lazyload_metadata.ll +++ b/llvm/test/ThinLTO/X86/lazyload_metadata.ll @@ -1,14 +1,14 @@ ; Do setup work for all below tests: generate bitcode and combined index ; RUN: opt -module-summary %s -o %t.bc -bitcode-mdindex-threshold=0 ; RUN: opt -module-summary %p/Inputs/lazyload_metadata.ll -o %t2.bc -bitcode-mdindex-threshold=0 -; RUN: llvm-lto -opaque-pointers -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc ; REQUIRES: asserts ; Check that importing @globalfunc1 does not trigger loading all the global ; metadata for @globalfunc2 and @globalfunc3 -; RUN: llvm-lto -opaque-pointers -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -stats 2> %t4.txt -; RUN: llvm-lto -opaque-pointers -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -stats -disable-ondemand-mds-loading 2> %t5.txt +; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -stats 2> %t4.txt +; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -stats -disable-ondemand-mds-loading 2> %t5.txt ; RUN: cat %t4.txt %t5.txt | FileCheck %s ; Check llvm-lto call with lazy loading enabled diff --git a/llvm/test/ThinLTO/X86/linkonce_aliasee_ref_import.ll b/llvm/test/ThinLTO/X86/linkonce_aliasee_ref_import.ll index 0b6d02121fdc2..231a683430ed3 100644 --- a/llvm/test/ThinLTO/X86/linkonce_aliasee_ref_import.ll +++ b/llvm/test/ThinLTO/X86/linkonce_aliasee_ref_import.ll @@ -2,12 +2,12 @@ ; RUN: opt -module-summary %p/Inputs/linkonce_aliasee_ref_import.ll -o %t2.bc ; Import with instr limit to ensure only foo imported. -; RUN: llvm-lto -thinlto-action=run -opaque-pointers -exported-symbol=main -import-instr-limit=5 %t1.bc %t2.bc +; RUN: llvm-lto -thinlto-action=run -exported-symbol=main -import-instr-limit=5 %t1.bc %t2.bc ; RUN: llvm-nm -o - < %t1.bc.thinlto.o | FileCheck %s --check-prefix=NM1 ; RUN: llvm-nm -o - < %t2.bc.thinlto.o | FileCheck %s --check-prefix=NM2 ; Import with instr limit to ensure only foo imported. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,foo,pxl \ ; RUN: -r=%t1.bc,baz,pxl \ ; RUN: -r=%t1.bc,baz.clone,pxl \ diff --git a/llvm/test/ThinLTO/X86/llvm.used.ll b/llvm/test/ThinLTO/X86/llvm.used.ll index e22aaeca9c2a6..52e39fac507dc 100644 --- a/llvm/test/ThinLTO/X86/llvm.used.ll +++ b/llvm/test/ThinLTO/X86/llvm.used.ll @@ -1,10 +1,10 @@ ; Do setup work for all below tests: generate bitcode and combined index ; RUN: opt -module-summary %s -o %t.bc ; RUN: opt -module-summary %p/Inputs/llvm.used.ll -o %t2.bc -; RUN: llvm-lto -thinlto-action=thinlink -opaque-pointers -o %t3.bc %t.bc %t2.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc -; RUN: llvm-lto -thinlto-action=import -opaque-pointers %t2.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s +; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s ; CHECK: define available_externally void @globalfunc diff --git a/llvm/test/ThinLTO/X86/local_name_conflict_var.ll b/llvm/test/ThinLTO/X86/local_name_conflict_var.ll index 533d1a700ae5d..ed5c6e4fd4f98 100644 --- a/llvm/test/ThinLTO/X86/local_name_conflict_var.ll +++ b/llvm/test/ThinLTO/X86/local_name_conflict_var.ll @@ -6,12 +6,12 @@ ; RUN: opt -module-summary -module-hash %s -o %t.bc ; RUN: opt -module-summary -module-hash %p/Inputs/local_name_conflict_var1.ll -o %t2.bc ; RUN: opt -module-summary -module-hash %p/Inputs/local_name_conflict_var2.ll -o %t3.bc -; RUN: llvm-lto -thinlto-action=thinlink -opaque-pointers -o %t4.bc %t.bc %t2.bc %t3.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t4.bc %t.bc %t2.bc %t3.bc ; This module will import a() and b() which should cause the read only copy ; of baz from each of those modules to be imported. Check that the both are ; imported as local copies. -; RUN: llvm-lto -thinlto-action=import -exported-symbol=main -opaque-pointers %t.bc -thinlto-index=%t4.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORT +; RUN: llvm-lto -thinlto-action=import -exported-symbol=main %t.bc -thinlto-index=%t4.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORT ; IMPORT: @baz.llvm.{{.*}} = internal global i32 10 ; IMPORT: @baz.llvm.{{.*}} = internal global i32 10 diff --git a/llvm/test/ThinLTO/X86/lower_type_test_phi.ll b/llvm/test/ThinLTO/X86/lower_type_test_phi.ll index b2927d90c20fa..722ffe3cc2282 100644 --- a/llvm/test/ThinLTO/X86/lower_type_test_phi.ll +++ b/llvm/test/ThinLTO/X86/lower_type_test_phi.ll @@ -4,10 +4,10 @@ ; RUN: rm -rf %t && split-file %s %t && cd %t -; RUN: opt -opaque-pointers -thinlto-bc y.ll -o y.bc -; RUN: opt -opaque-pointers -thinlto-bc z.ll -o z.bc +; RUN: opt -thinlto-bc y.ll -o y.bc +; RUN: opt -thinlto-bc z.ll -o z.bc -; RUN: llvm-lto2 run -opaque-pointers y.bc z.bc -opaque-pointers -o out \ +; RUN: llvm-lto2 run y.bc z.bc -o out \ ; RUN: -r y.bc,main,plx \ ; RUN: -r y.bc,_Z2b1v, \ ; RUN: -r y.bc,_Z2b2v, \ diff --git a/llvm/test/ThinLTO/X86/module_asm2.ll b/llvm/test/ThinLTO/X86/module_asm2.ll index d3ee7635635cd..7ab7847f79439 100644 --- a/llvm/test/ThinLTO/X86/module_asm2.ll +++ b/llvm/test/ThinLTO/X86/module_asm2.ll @@ -4,11 +4,11 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/module_asm2.ll -o %t2.bc -; RUN: llvm-lto -thinlto-action=run -exported-symbol=main -exported-symbol=func1 -exported-symbol=func2 -exported-symbol=func3 -exported-symbol=callglobalfunc -exported-symbol=callweakfunc -opaque-pointers %t1.bc %t2.bc +; RUN: llvm-lto -thinlto-action=run -exported-symbol=main -exported-symbol=func1 -exported-symbol=func2 -exported-symbol=func3 -exported-symbol=callglobalfunc -exported-symbol=callweakfunc %t1.bc %t2.bc ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s --check-prefix=NM0 ; RUN: llvm-nm %t2.bc.thinlto.o | FileCheck %s --check-prefix=NM1 -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,foo,plx \ ; RUN: -r=%t1.bc,globalfunc,plx \ ; RUN: -r=%t1.bc,globalfunc,lx \ diff --git a/llvm/test/ThinLTO/X86/module_asm_glob.ll b/llvm/test/ThinLTO/X86/module_asm_glob.ll index a7fe377f8f90d..45b6113cb2476 100644 --- a/llvm/test/ThinLTO/X86/module_asm_glob.ll +++ b/llvm/test/ThinLTO/X86/module_asm_glob.ll @@ -5,8 +5,7 @@ ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s --check-prefix=NM0 ; RUN: llvm-nm %t2.bc.thinlto.o | FileCheck %s --check-prefix=NM1 -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,foo,lx \ ; RUN: -r=%t1.bc,foo,plx \ ; RUN: -r=%t1.bc,_simplefunction,pl \ diff --git a/llvm/test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll b/llvm/test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll index 5e9f5f9d8614d..c6e61edcd97a9 100644 --- a/llvm/test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll +++ b/llvm/test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll @@ -17,7 +17,7 @@ ; DIS-NOT: typeidMetadata ; Index based WPD -; RUN: llvm-lto2 run -opaque-pointers %t2.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t2.o -save-temps -pass-remarks=. \ ; RUN: -o %t3 \ ; RUN: -r=%t2.o,test,plx \ ; RUN: -r=%t2.o,_ZN1D1mEi, diff --git a/llvm/test/ThinLTO/X86/noinline.ll b/llvm/test/ThinLTO/X86/noinline.ll index 1270c12e46f88..cf965c6ff6b68 100644 --- a/llvm/test/ThinLTO/X86/noinline.ll +++ b/llvm/test/ThinLTO/X86/noinline.ll @@ -2,7 +2,7 @@ ; which, when takes place, causes promotion of its callee. ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/noinline.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t3.o \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t3.o \ ; RUN: -save-temps \ ; RUN: -r=%t1.bc,main,px \ ; RUN: -r=%t1.bc,foo, \ diff --git a/llvm/test/ThinLTO/X86/nonprevailing_weak_globals_import.ll b/llvm/test/ThinLTO/X86/nonprevailing_weak_globals_import.ll index 73dd98e275fa1..39d5f76ce8b71 100644 --- a/llvm/test/ThinLTO/X86/nonprevailing_weak_globals_import.ll +++ b/llvm/test/ThinLTO/X86/nonprevailing_weak_globals_import.ll @@ -3,8 +3,7 @@ ; RUN: opt -module-summary %t.dir/1.ll -o %t1.bc ; RUN: opt -module-summary %t.dir/2.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1.bc %t2.bc -o %t.out \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t.out \ ; RUN: -r=%t1.bc,main,plx \ ; RUN: -r=%t1.bc,G \ ; RUN: -r=%t2.bc,G,pl diff --git a/llvm/test/ThinLTO/X86/personality-local.ll b/llvm/test/ThinLTO/X86/personality-local.ll index 0975d46e3a10c..56878962b4d4d 100644 --- a/llvm/test/ThinLTO/X86/personality-local.ll +++ b/llvm/test/ThinLTO/X86/personality-local.ll @@ -1,8 +1,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %S/Inputs/personality-local.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t1.bc %t2.bc -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -o %t.o %t1.bc %t2.bc -save-temps \ ; RUN: -r %t2.bc,foo,p \ ; RUN: -r %t1.bc,foo,l \ ; RUN: -r %t1.bc,bar,p \ diff --git a/llvm/test/ThinLTO/X86/personality.ll b/llvm/test/ThinLTO/X86/personality.ll index 11b7637999f74..c23ee251e4e27 100644 --- a/llvm/test/ThinLTO/X86/personality.ll +++ b/llvm/test/ThinLTO/X86/personality.ll @@ -1,7 +1,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %S/Inputs/personality.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -o %t.o %t1.bc %t2.bc -save-temps \ +; RUN: llvm-lto2 run -o %t.o %t1.bc %t2.bc -save-temps \ ; RUN: -r %t2.bc,bar,p \ ; RUN: -r %t2.bc,personality_routine,p \ ; RUN: -r %t2.bc,personality_routine2,p \ diff --git a/llvm/test/ThinLTO/X86/pr35472.ll b/llvm/test/ThinLTO/X86/pr35472.ll index e20c463fdd702..f7b19e8ba7969 100644 --- a/llvm/test/ThinLTO/X86/pr35472.ll +++ b/llvm/test/ThinLTO/X86/pr35472.ll @@ -5,7 +5,7 @@ ; RUN: opt -module-hash -module-summary %s -o %t1.bc ; RUN: opt -module-hash -module-summary %p/Inputs/pr35472.ll -o %t2.bc -; RUN: llvm-lto -thinlto-action=run -opaque-pointers %t1.bc %t2.bc -exported-symbol=_Z5Alphav +; RUN: llvm-lto -thinlto-action=run %t1.bc %t2.bc -exported-symbol=_Z5Alphav ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s -check-prefix=ThinLTOa ; RUN: llvm-nm %t2.bc.thinlto.o | FileCheck %s -check-prefix=ThinLTOb diff --git a/llvm/test/ThinLTO/X86/reference_non_importable.ll b/llvm/test/ThinLTO/X86/reference_non_importable.ll index fccb41e78757a..52856346cb23b 100644 --- a/llvm/test/ThinLTO/X86/reference_non_importable.ll +++ b/llvm/test/ThinLTO/X86/reference_non_importable.ll @@ -1,8 +1,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/reference_non_importable.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -o %t.o -save-temps \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ ; RUN: -r=%t1.bc,_foo,pxl \ ; RUN: -r=%t1.bc,_b,pxl \ ; RUN: -r=%t2.bc,_main,pxl \ diff --git a/llvm/test/ThinLTO/X86/referenced_by_constant.ll b/llvm/test/ThinLTO/X86/referenced_by_constant.ll index 62606b9b01664..a336f6d13e65c 100644 --- a/llvm/test/ThinLTO/X86/referenced_by_constant.ll +++ b/llvm/test/ThinLTO/X86/referenced_by_constant.ll @@ -1,6 +1,6 @@ ; Do setup work for all below tests: generate bitcode and combined index -; RUN: opt -opaque-pointers -module-summary %s -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/referenced_by_constant.ll -o %t2.bc +; RUN: opt -module-summary %s -o %t.bc +; RUN: opt -module-summary %p/Inputs/referenced_by_constant.ll -o %t2.bc ; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc ; Check the import side: we currently import bar() and also promote/import diff --git a/llvm/test/ThinLTO/X86/section.ll b/llvm/test/ThinLTO/X86/section.ll index f4bf6f2685f47..e44853aa731ed 100644 --- a/llvm/test/ThinLTO/X86/section.ll +++ b/llvm/test/ThinLTO/X86/section.ll @@ -1,13 +1,13 @@ ; Do setup work for all below tests: generate bitcode and combined index ; RUN: opt -module-summary %s -o %t.bc ; RUN: opt -module-summary %p/Inputs/section.ll -o %t2.bc -; RUN: llvm-lto -thinlto-action=thinlink -opaque-pointers -o %t3.bc %t.bc %t2.bc +; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc ; Check that we don't promote 'var_with_section' -; RUN: llvm-lto -thinlto-action=promote -opaque-pointers %t2.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=PROMOTE +; RUN: llvm-lto -thinlto-action=promote %t2.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=PROMOTE ; PROMOTE: @var_with_section = internal global i32 0, section "some_section" -; RUN: llvm-lto -thinlto-action=import -opaque-pointers %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORT +; RUN: llvm-lto -thinlto-action=import %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORT ; Check that section prevent import of @reference_gv_with_section. ; IMPORT: declare void @reference_gv_with_section() ; Canary to check that importing is correctly set up. diff --git a/llvm/test/ThinLTO/X86/selective-save-temps.ll b/llvm/test/ThinLTO/X86/selective-save-temps.ll index 56b591e681fe2..5436ee6ec3af2 100644 --- a/llvm/test/ThinLTO/X86/selective-save-temps.ll +++ b/llvm/test/ThinLTO/X86/selective-save-temps.ll @@ -11,7 +11,7 @@ ;; Create the .all dir with save-temps saving everything, this will be used to compare ;; with the output from individualized save-temps later ; RUN: mkdir all all2 build subset subset2 -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o all/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o all/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -save-temps @@ -27,7 +27,7 @@ ;; After that, we'll diff all and all2 to make sure all contents are identical ;; Check preopt -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=preopt @@ -39,7 +39,7 @@ ;; Check promote ; RUN: rm -f all2/*.1.promote* -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=promote @@ -49,7 +49,7 @@ ; RUN: ls build | count 0 ;; Check internalize -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=internalize @@ -59,7 +59,7 @@ ; RUN: ls build | count 0 ;; Check import -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=import @@ -69,7 +69,7 @@ ; RUN: ls build | count 0 ;; Check opt -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=\opt @@ -80,7 +80,7 @@ ; RUN: ls build | count 0 ;; Check precodegen -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=precodegen @@ -90,7 +90,7 @@ ; RUN: ls build | count 0 ;; Check combinedindex -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=combinedindex @@ -103,7 +103,7 @@ ; RUN: ls build | count 0 ;; Check resolution -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=resolution @@ -118,7 +118,7 @@ ;; Check multi-stage composability ;; Similar to the above, but do it with a subset instead. ;; .all -> .subset, .all2 -> .subset2 -; RUN: llvm-lto2 run -opaque-pointers 1.bc 2.bc -o subset/a.out \ +; RUN: llvm-lto2 run 1.bc 2.bc -o subset/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=preopt,combinedindex,\opt @@ -127,14 +127,14 @@ ; RUN: diff -r subset subset2 ;; Check error messages -; RUN: not llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: not llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=prelink 2>&1 \ ; RUN: | FileCheck %s --check-prefix=ERR1 ; ERR1: invalid -select-save-temps argument: prelink -; RUN: not llvm-lto2 run -opaque-pointers 1.bc 2.bc -o build/a.out \ +; RUN: not llvm-lto2 run 1.bc 2.bc -o build/a.out \ ; RUN: -import-constants-with-refs -r=1.bc,main,plx -r=1.bc,_Z6getObjv,l \ ; RUN: -r=2.bc,_Z6getObjv,pl -r=2.bc,val,pl -r=2.bc,outer,pl \ ; RUN: -select-save-temps=preopt -save-temps 2>&1 \ diff --git a/llvm/test/ThinLTO/X86/type_test_noindircall.ll b/llvm/test/ThinLTO/X86/type_test_noindircall.ll index 3d14b78dc9fb7..2d0faaa256023 100644 --- a/llvm/test/ThinLTO/X86/type_test_noindircall.ll +++ b/llvm/test/ThinLTO/X86/type_test_noindircall.ll @@ -4,17 +4,17 @@ ; REQUIRES: x86-registered-target -; RUN: opt -opaque-pointers -thinlto-bc -o %t.o %s +; RUN: opt -thinlto-bc -o %t.o %s -; RUN: llvm-lto2 run -opaque-pointers %t.o -save-temps -pass-remarks=. \ +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -r=%t.o,_ZTVN12_GLOBAL__N_18RealFileE,px \ ; RUN: -o %t2 ; RUN: llvm-dis %t2.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR ; Try again without LTO unit splitting. -; RUN: opt -opaque-pointers -thinlto-bc -thinlto-split-lto-unit=false -o %t3.o %s -; RUN: llvm-lto2 run -opaque-pointers %t.o -save-temps -pass-remarks=. \ +; RUN: opt -thinlto-bc -thinlto-split-lto-unit=false -o %t3.o %s +; RUN: llvm-lto2 run %t.o -save-temps -pass-remarks=. \ ; RUN: -whole-program-visibility \ ; RUN: -r=%t.o,_ZTVN12_GLOBAL__N_18RealFileE,px \ ; RUN: -o %t4 diff --git a/llvm/test/ThinLTO/X86/visibility-elf.ll b/llvm/test/ThinLTO/X86/visibility-elf.ll index dc313c5890f30..aa11c3e06ff3b 100644 --- a/llvm/test/ThinLTO/X86/visibility-elf.ll +++ b/llvm/test/ThinLTO/X86/visibility-elf.ll @@ -3,7 +3,7 @@ ; RUN: opt -module-summary %t/b.ll -o %tb.bc ;; Test visibility propagation. The prevailing definitions are all from %tb.bc. -; RUN: llvm-lto2 run -opaque-pointers -save-temps -enable-import-metadata -o %t1.bc %ta.bc %tb.bc \ +; RUN: llvm-lto2 run -save-temps -enable-import-metadata -o %t1.bc %ta.bc %tb.bc \ ; RUN: -r=%ta.bc,var1,l -r=%ta.bc,var2,l \ ; RUN: -r=%ta.bc,hidden_def_weak_def,l -r=%ta.bc,protected_def_weak_def,l -r=%ta.bc,protected_def_weak_hidden_def,l \ ; RUN: -r=%ta.bc,protected_def_hidden_ref,l -r=%ta.bc,not_imported,l -r=%ta.bc,hidden_def_ref,l \ diff --git a/llvm/test/ThinLTO/X86/visibility-macho.ll b/llvm/test/ThinLTO/X86/visibility-macho.ll index 336e9ac43645b..d41ab4f1ef398 100644 --- a/llvm/test/ThinLTO/X86/visibility-macho.ll +++ b/llvm/test/ThinLTO/X86/visibility-macho.ll @@ -3,7 +3,7 @@ ; RUN: opt -module-summary %t/b.ll -o %tb.bc ;; Test visibility propagation. The prevailing definitions are all from %tb.bc. -; RUN: llvm-lto2 run -opaque-pointers -save-temps -enable-import-metadata -o %t1.bc %ta.bc %tb.bc \ +; RUN: llvm-lto2 run -save-temps -enable-import-metadata -o %t1.bc %ta.bc %tb.bc \ ; RUN: -r=%ta.bc,_var1,l -r=%ta.bc,_var2,l \ ; RUN: -r=%ta.bc,_hidden_def_weak_def,l -r=%ta.bc,_not_imported,l -r=%ta.bc,_hidden_def_ref,l \ ; RUN: -r=%ta.bc,_hidden_def_weak_ref,l \ diff --git a/llvm/test/ThinLTO/X86/weak_externals.ll b/llvm/test/ThinLTO/X86/weak_externals.ll index dfab3c36b823c..f206bd83fbee4 100644 --- a/llvm/test/ThinLTO/X86/weak_externals.ll +++ b/llvm/test/ThinLTO/X86/weak_externals.ll @@ -1,8 +1,7 @@ ; Test that linkonce_odr and weak_odr variables which are visible to regular ; object (and so are not readonly) are not internalized by thin LTO. ; RUN: opt -module-summary %s -o %t.bc -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t.bc -o %t.out \ -; RUN: -opaque-pointers \ +; RUN: llvm-lto2 run -save-temps %t.bc -o %t.out \ ; RUN: -r=%t.bc,_ZL5initSv,plx \ ; RUN: -r=%t.bc,_ZN9SingletonI1SE11getInstanceEv,lx \ ; RUN: -r=%t.bc,_ZZN9SingletonI1SE11getInstanceEvE8instance,lx \ diff --git a/llvm/test/ThinLTO/X86/windows-vftable.ll b/llvm/test/ThinLTO/X86/windows-vftable.ll index 5a85f1844a142..c38c10fc3e9c6 100644 --- a/llvm/test/ThinLTO/X86/windows-vftable.ll +++ b/llvm/test/ThinLTO/X86/windows-vftable.ll @@ -1,11 +1,11 @@ ;; Test an alias pointing to a GEP. -; RUN: opt -opaque-pointers -module-summary %s -o %t1.bc +; RUN: opt -module-summary %s -o %t1.bc ; RUN: cp %t1.bc %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -r=%t1.bc,"??_7bad_array_new_length@stdext@@6B@",pl -r=%t1.bc,"??_Gbad_array_new_length@stdext@@UEAAPEAXI@Z",pl \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -r=%t1.bc,"??_7bad_array_new_length@stdext@@6B@",pl -r=%t1.bc,"??_Gbad_array_new_length@stdext@@UEAAPEAXI@Z",pl \ ; RUN: -r=%t1.bc,"?_Throw_bad_array_new_length@std@@YAXXZ",pl \ ; RUN: -r=%t2.bc,"??_7bad_array_new_length@stdext@@6B@", -r=%t2.bc,"??_Gbad_array_new_length@stdext@@UEAAPEAXI@Z", \ ; RUN: -r=%t2.bc,"?_Throw_bad_array_new_length@std@@YAXXZ", -o %t3 --save-temps -; RUN: llvm-dis -opaque-pointers < %t3.2.1.promote.bc | FileCheck %s +; RUN: llvm-dis < %t3.2.1.promote.bc | FileCheck %s ; CHECK: @anon = private unnamed_addr constant { [2 x ptr] } { [2 x ptr] [ptr null, ptr @"??_Gbad_array_new_length@stdext@@UEAAPEAXI@Z"] }, comdat($"??_7bad_array_new_length@stdext@@6B@") ; CHECK: @"??_7bad_array_new_length@stdext@@6B@" = unnamed_addr alias ptr, getelementptr inbounds ({ [4 x ptr] }, ptr @anon, i32 0, i32 0, i32 1){{$}} diff --git a/llvm/test/ThinLTO/X86/writeonly-with-refs.ll b/llvm/test/ThinLTO/X86/writeonly-with-refs.ll index 0b8802be88d40..62ed9333dc434 100644 --- a/llvm/test/ThinLTO/X86/writeonly-with-refs.ll +++ b/llvm/test/ThinLTO/X86/writeonly-with-refs.ll @@ -1,6 +1,6 @@ -; RUN: opt -thinlto-bc -opaque-pointers %s -o %t1 +; RUN: opt -thinlto-bc %s -o %t1 ; RUN: opt -thinlto-bc %p/Inputs/writeonly-with-refs.ll -o %t2 -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1 %t2 -o %t-out \ +; RUN: llvm-lto2 run -save-temps %t1 %t2 -o %t-out \ ; RUN: -r=%t1,main,plx \ ; RUN: -r=%t1,_Z3foov,l \ ; RUN: -r=%t2,_Z3foov,pl \ @@ -13,7 +13,7 @@ ; CHECK: @outer = internal local_unnamed_addr global %struct.Q zeroinitializer ; Test again in distributed ThinLTO mode. -; RUN: llvm-lto2 run -opaque-pointers -save-temps %t1 %t2 -o %t-out \ +; RUN: llvm-lto2 run -save-temps %t1 %t2 -o %t-out \ ; RUN: -thinlto-distributed-indexes \ ; RUN: -r=%t1,main,plx \ ; RUN: -r=%t1,_Z3foov,l \ diff --git a/llvm/test/ThinLTO/X86/writeonly.ll b/llvm/test/ThinLTO/X86/writeonly.ll index 16bde383d137f..65c93a79afa90 100644 --- a/llvm/test/ThinLTO/X86/writeonly.ll +++ b/llvm/test/ThinLTO/X86/writeonly.ll @@ -2,7 +2,7 @@ ; -stats requires asserts ; REQUIRES: asserts -; RUN: opt -module-summary -opaque-pointers %s -o %t1.bc +; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop.ll -o %t2.bc ; RUN: llvm-lto -thinlto-action=thinlink -o %t3.index.bc %t1.bc %t2.bc diff --git a/llvm/test/ThinLTO/X86/writeonly2.ll b/llvm/test/ThinLTO/X86/writeonly2.ll index 71806d57daf81..f31f9b35a253f 100644 --- a/llvm/test/ThinLTO/X86/writeonly2.ll +++ b/llvm/test/ThinLTO/X86/writeonly2.ll @@ -3,7 +3,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %p/Inputs/index-const-prop.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers %t1.bc %t2.bc -save-temps \ +; RUN: llvm-lto2 run %t1.bc %t2.bc -save-temps \ ; RUN: -r=%t2.bc,foo,pl \ ; RUN: -r=%t2.bc,bar,pl \ ; RUN: -r=%t2.bc,baz,pl \ diff --git a/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll b/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll index 0df2e9c12edb4..ecf726c927c8d 100644 --- a/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll +++ b/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll @@ -3,9 +3,7 @@ ; Make sure we can still extract a single basic block ; RUN: echo 'foo end' >> %t ; RUN: echo 'bar bb14;bb20' >> %t -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=extract-blocks -extract-blocks-file=%t %s | FileCheck %s +; RUN: opt -S -passes=extract-blocks -extract-blocks-file=%t %s | FileCheck %s ; CHECK-LABEL: foo ; diff --git a/llvm/test/Transforms/CodeExtractor/PartialInlineAttributes.ll b/llvm/test/Transforms/CodeExtractor/PartialInlineAttributes.ll index 572b175ede692..914c186eb4ee8 100644 --- a/llvm/test/Transforms/CodeExtractor/PartialInlineAttributes.ll +++ b/llvm/test/Transforms/CodeExtractor/PartialInlineAttributes.ll @@ -1,6 +1,4 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s +; RUN: opt < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s define i32 @callee_most(i32 %v) unnamed_addr #0 #1 { entry: diff --git a/llvm/test/Transforms/CodeExtractor/PartialInlineDebug.ll b/llvm/test/Transforms/CodeExtractor/PartialInlineDebug.ll index f79749b9c547f..eb2fb4f4774d8 100644 --- a/llvm/test/Transforms/CodeExtractor/PartialInlineDebug.ll +++ b/llvm/test/Transforms/CodeExtractor/PartialInlineDebug.ll @@ -1,6 +1,4 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s +; RUN: opt < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s ; CHECK-LABEL: @callee ; CHECK: %mul = mul nsw i32 %v, 10, !dbg ![[DBG1:[0-9]+]] diff --git a/llvm/test/Transforms/CodeExtractor/PartialInlineVarArgsDebug.ll b/llvm/test/Transforms/CodeExtractor/PartialInlineVarArgsDebug.ll index 8979dbd543e33..d0f9e01f950a2 100644 --- a/llvm/test/Transforms/CodeExtractor/PartialInlineVarArgsDebug.ll +++ b/llvm/test/Transforms/CodeExtractor/PartialInlineVarArgsDebug.ll @@ -1,6 +1,4 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s +; RUN: opt < %s -S -passes=partial-inliner -skip-partial-inlining-cost-analysis=true | FileCheck %s ; CHECK-LABEL: @callee ; CHECK: %mul = mul nsw i32 %v, 10, !dbg ![[DBG1:[0-9]+]] diff --git a/llvm/test/Transforms/Coroutines/coro-spill-promise-02.ll b/llvm/test/Transforms/Coroutines/coro-spill-promise-02.ll index 42d16b9c31a68..5ea90d79ebc24 100644 --- a/llvm/test/Transforms/Coroutines/coro-spill-promise-02.ll +++ b/llvm/test/Transforms/Coroutines/coro-spill-promise-02.ll @@ -1,5 +1,5 @@ ; Check that we would take care of the value written to promise before @llvm.coro.begin. -; RUN: opt < %s -opaque-pointers -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s +; RUN: opt < %s -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s %"class.task::promise_type" = type { [64 x i8] } diff --git a/llvm/test/Transforms/EarlyCSE/PowerPC/read-reg.ll b/llvm/test/Transforms/EarlyCSE/PowerPC/read-reg.ll index e93af5644624c..757fd988d60b5 100644 --- a/llvm/test/Transforms/EarlyCSE/PowerPC/read-reg.ll +++ b/llvm/test/Transforms/EarlyCSE/PowerPC/read-reg.ll @@ -1,5 +1,5 @@ -; RUN: opt -opaque-pointers -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s -; RUN: opt -opaque-pointers -S -passes='early-cse' < %s | FileCheck %s +; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s +; RUN: opt -S -passes='early-cse' < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/FunctionImport/comdat.ll b/llvm/test/Transforms/FunctionImport/comdat.ll index e7ccf249bf3fd..5a75abc74fa93 100644 --- a/llvm/test/Transforms/FunctionImport/comdat.ll +++ b/llvm/test/Transforms/FunctionImport/comdat.ll @@ -3,9 +3,9 @@ ; REQUIRES: x86-registered-target -; RUN: opt -opaque-pointers -thinlto-bc -o %t1.bc %s -; RUN: opt -opaque-pointers -thinlto-bc -o %t2.bc %S/Inputs/comdat.ll -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t3 %t1.bc %t2.bc \ +; RUN: opt -thinlto-bc -o %t1.bc %s +; RUN: opt -thinlto-bc -o %t2.bc %S/Inputs/comdat.ll +; RUN: llvm-lto2 run -save-temps -o %t3 %t1.bc %t2.bc \ ; RUN: -r %t1.bc,lwt_fun,plx \ ; RUN: -r %t2.bc,main,plx \ ; RUN: -r %t2.bc,lwt_fun, diff --git a/llvm/test/Transforms/FunctionImport/funcimport.ll b/llvm/test/Transforms/FunctionImport/funcimport.ll index 37a16c9fb3548..01298258c62e9 100644 --- a/llvm/test/Transforms/FunctionImport/funcimport.ll +++ b/llvm/test/Transforms/FunctionImport/funcimport.ll @@ -1,20 +1,20 @@ ; REQUIRES: x86-registered-target ; Do setup work for all below tests: generate bitcode and combined index -; RUN: opt -opaque-pointers -module-summary %s -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/funcimport.ll -o %t2.bc +; RUN: opt -module-summary %s -o %t.bc +; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc ; RUN: llvm-lto -thinlto -print-summary-global-ids -o %t3 %t.bc %t2.bc 2>&1 | FileCheck %s --check-prefix=GUID ; Do the import now -; RUN: opt -opaque-pointers -passes=function-import -stats -print-imports -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIMDEF +; RUN: opt -passes=function-import -stats -print-imports -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIMDEF ; Try again with new pass manager -; RUN: opt -opaque-pointers -passes='function-import' -stats -print-imports -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIMDEF -; RUN: opt -opaque-pointers -passes='function-import' -debug-only=function-import -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s --check-prefix=DUMP +; RUN: opt -passes='function-import' -stats -print-imports -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIMDEF +; RUN: opt -passes='function-import' -debug-only=function-import -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s --check-prefix=DUMP ; "-stats" and "-debug-only" require +Asserts. ; REQUIRES: asserts ; Test import with smaller instruction limit -; RUN: opt -opaque-pointers -passes=function-import -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -import-instr-limit=5 -S | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIM5 +; RUN: opt -passes=function-import -enable-import-metadata -summary-file %t3.thinlto.bc %t.bc -import-instr-limit=5 -S | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIM5 ; INSTLIM5-NOT: @staticfunc.llvm. ; Test force import all diff --git a/llvm/test/Transforms/FunctionImport/import_stats.ll b/llvm/test/Transforms/FunctionImport/import_stats.ll index 4beb7e09b0cbf..50d2167c6a5ae 100644 --- a/llvm/test/Transforms/FunctionImport/import_stats.ll +++ b/llvm/test/Transforms/FunctionImport/import_stats.ll @@ -5,13 +5,13 @@ ; REQUIRES: x86-registered-target -; RUN: opt -opaque-pointers -module-summary %s -o %t.bc -; RUN: opt -opaque-pointers -module-summary %p/Inputs/import_stats.ll -o %t2.bc +; RUN: opt -module-summary %s -o %t.bc +; RUN: opt -module-summary %p/Inputs/import_stats.ll -o %t2.bc ; Test thin link stats with both new and old LTO -; RUN: llvm-lto -opaque-pointers -thinlto-action=run -stats %t.bc %t2.bc \ +; RUN: llvm-lto -thinlto-action=run -stats %t.bc %t2.bc \ ; RUN: 2>&1 | FileCheck %s --check-prefix=THINLINKSTATS -; RUN: llvm-lto2 run -opaque-pointers -stats -o %t3 %t.bc %t2.bc \ +; RUN: llvm-lto2 run -stats -o %t3 %t.bc %t2.bc \ ; RUN: -r %t.bc,hot_function,plx \ ; RUN: -r %t.bc,hot, \ ; RUN: -r %t.bc,critical, \ diff --git a/llvm/test/Transforms/GCOVProfiling/atomic-counter.ll b/llvm/test/Transforms/GCOVProfiling/atomic-counter.ll index e8b3995435b23..f5c5978edf5b9 100644 --- a/llvm/test/Transforms/GCOVProfiling/atomic-counter.ll +++ b/llvm/test/Transforms/GCOVProfiling/atomic-counter.ll @@ -1,6 +1,6 @@ ;; -fsanitize=thread requires the (potentially concurrent) counter updates to be atomic. ; RUN: mkdir -p %t && cd %t -; RUN: opt -opaque-pointers < %s -S -passes=insert-gcov-profiling -gcov-atomic-counter | FileCheck %s +; RUN: opt < %s -S -passes=insert-gcov-profiling -gcov-atomic-counter | FileCheck %s ; CHECK-LABEL: void @empty() ; CHECK-NEXT: entry: diff --git a/llvm/test/Transforms/GCOVProfiling/function-numbering.ll b/llvm/test/Transforms/GCOVProfiling/function-numbering.ll index 957064bdbd28f..76f978d3bc7d1 100644 --- a/llvm/test/Transforms/GCOVProfiling/function-numbering.ll +++ b/llvm/test/Transforms/GCOVProfiling/function-numbering.ll @@ -6,7 +6,7 @@ ; RUN: echo '!14 = !{!"%/t/function-numbering.ll", !0}' > %t/1 ; RUN: cat %s %t/1 > %t/2 -; RUN: opt -opaque-pointers -passes=insert-gcov-profiling -S < %t/2 | FileCheck --check-prefix GCDA %s +; RUN: opt -passes=insert-gcov-profiling -S < %t/2 | FileCheck --check-prefix GCDA %s ; RUN: llvm-cov gcov -n -dump %t/function-numbering.gcno 2>&1 | FileCheck --check-prefix GCNO %s ; RUN: opt -passes=insert-gcov-profiling -S < %t/2 -mtriple=s390x-unknown-linux | FileCheck --check-prefix EXT %s ; RUN: opt -passes=insert-gcov-profiling -S < %t/2 -mtriple=mips-linux-gnu | FileCheck --check-prefix MIPS_EXT %s diff --git a/llvm/test/Transforms/GCOVProfiling/noprofile.ll b/llvm/test/Transforms/GCOVProfiling/noprofile.ll index 89535632149ac..b5dad493e59ec 100644 --- a/llvm/test/Transforms/GCOVProfiling/noprofile.ll +++ b/llvm/test/Transforms/GCOVProfiling/noprofile.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: mkdir -p %t && cd %t -; RUN: opt -opaque-pointers < %s -passes=insert-gcov-profiling -S | FileCheck %s +; RUN: opt < %s -passes=insert-gcov-profiling -S | FileCheck %s ; Test that the noprofile attribute disables profiling. define dso_local i32 @no_instr(i32 %a) noprofile !dbg !9 { diff --git a/llvm/test/Transforms/GCOVProfiling/reset.ll b/llvm/test/Transforms/GCOVProfiling/reset.ll index fb0280d0ad566..8bd4a80455463 100644 --- a/llvm/test/Transforms/GCOVProfiling/reset.ll +++ b/llvm/test/Transforms/GCOVProfiling/reset.ll @@ -1,5 +1,5 @@ ; RUN: mkdir -p %t && cd %t -; RUN: opt -opaque-pointers < %s -S -passes=insert-gcov-profiling | FileCheck %s +; RUN: opt < %s -S -passes=insert-gcov-profiling | FileCheck %s target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GVNHoist/infinite-loop-indirect.ll b/llvm/test/Transforms/GVNHoist/infinite-loop-indirect.ll index 8d714012bdb8d..12e45dceca90f 100644 --- a/llvm/test/Transforms/GVNHoist/infinite-loop-indirect.ll +++ b/llvm/test/Transforms/GVNHoist/infinite-loop-indirect.ll @@ -2,7 +2,7 @@ ; ifdef INTEL_SYCL_OPAQUEPOINTER_READY ; COM: opt -S -passes=gvn-hoist < %s | FileCheck %s ; else -; RUN: opt -S -opaque-pointers -passes=gvn-hoist < %s | FileCheck %s +; RUN: opt -S -passes=gvn-hoist < %s | FileCheck %s ; endif ; Checking gvn-hoist in case of indirect branches. diff --git a/llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll b/llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll index 482b5004a0853..82e7f6449611e 100644 --- a/llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll +++ b/llvm/test/Transforms/GlobalOpt/constantexpr-dangle.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -passes='function(instcombine),globalopt' -S | FileCheck %s +; RUN: opt < %s -passes='function(instcombine),globalopt' -S | FileCheck %s ; CHECK: internal fastcc float @foo define internal float @foo() { diff --git a/llvm/test/Transforms/HotColdSplit/phi-with-distinct-outlined-values.ll b/llvm/test/Transforms/HotColdSplit/phi-with-distinct-outlined-values.ll index 1848aabdcb0b7..81e34bbfadb11 100644 --- a/llvm/test/Transforms/HotColdSplit/phi-with-distinct-outlined-values.ll +++ b/llvm/test/Transforms/HotColdSplit/phi-with-distinct-outlined-values.ll @@ -1,6 +1,4 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=hotcoldsplit -hotcoldsplit-threshold=0 < %s | FileCheck %s +; RUN: opt -S -passes=hotcoldsplit -hotcoldsplit-threshold=0 < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.14.0" diff --git a/llvm/test/Transforms/HotColdSplit/split-phis-in-exit-blocks.ll b/llvm/test/Transforms/HotColdSplit/split-phis-in-exit-blocks.ll index 21fc904f004dd..915b3393a53b4 100644 --- a/llvm/test/Transforms/HotColdSplit/split-phis-in-exit-blocks.ll +++ b/llvm/test/Transforms/HotColdSplit/split-phis-in-exit-blocks.ll @@ -1,6 +1,4 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -hotcoldsplit-threshold=0 -passes=hotcoldsplit -S < %s | FileCheck %s +; RUN: opt -hotcoldsplit-threshold=0 -passes=hotcoldsplit -S < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.14.0" diff --git a/llvm/test/Transforms/IROutliner/alloca-addrspace-1.ll b/llvm/test/Transforms/IROutliner/alloca-addrspace-1.ll index 8a2f1791bd528..a096e6d38e4ff 100644 --- a/llvm/test/Transforms/IROutliner/alloca-addrspace-1.ll +++ b/llvm/test/Transforms/IROutliner/alloca-addrspace-1.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs -; RUN: opt -opaque-pointers -S -passes=iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=iroutliner -ir-outlining-no-cost < %s | FileCheck %s target datalayout = "A5" diff --git a/llvm/test/Transforms/IROutliner/alloca-addrspace.ll b/llvm/test/Transforms/IROutliner/alloca-addrspace.ll index c8cee6efe2f7d..e8701500b502d 100644 --- a/llvm/test/Transforms/IROutliner/alloca-addrspace.ll +++ b/llvm/test/Transforms/IROutliner/alloca-addrspace.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs -; RUN: opt -S -opaque-pointers -passes=iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; Check alloca with non-0 address spaces works correctly. diff --git a/llvm/test/Transforms/IROutliner/different-order-phi-merges.ll b/llvm/test/Transforms/IROutliner/different-order-phi-merges.ll index 58569d4b18e8e..baf27edfca3d9 100644 --- a/llvm/test/Transforms/IROutliner/different-order-phi-merges.ll +++ b/llvm/test/Transforms/IROutliner/different-order-phi-merges.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; Check that differently ordered phi nodes are not matched when merged, instead ; generating two output paths. diff --git a/llvm/test/Transforms/IROutliner/duplicate-merging-phis.ll b/llvm/test/Transforms/IROutliner/duplicate-merging-phis.ll index e9673b173ed74..534efc38e3971 100644 --- a/llvm/test/Transforms/IROutliner/duplicate-merging-phis.ll +++ b/llvm/test/Transforms/IROutliner/duplicate-merging-phis.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; Make sure that when we merge phi nodes, we do not merge two different PHINodes ; as the same phi node. diff --git a/llvm/test/Transforms/IROutliner/exit-block-phi-node-value-attribution.ll b/llvm/test/Transforms/IROutliner/exit-block-phi-node-value-attribution.ll index 057b2eea58e79..3d3dbffcc243a 100644 --- a/llvm/test/Transforms/IROutliner/exit-block-phi-node-value-attribution.ll +++ b/llvm/test/Transforms/IROutliner/exit-block-phi-node-value-attribution.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; Make sure that each outlined region only analyzes on the incoming values in exit ; block phi nodes that come from the outlined region. Without this, more incoming diff --git a/llvm/test/Transforms/IROutliner/exit-phi-nodes-incoming-value-constant-argument.ll b/llvm/test/Transforms/IROutliner/exit-phi-nodes-incoming-value-constant-argument.ll index d8e5c95ec8dbb..cd60f936a9ed5 100644 --- a/llvm/test/Transforms/IROutliner/exit-phi-nodes-incoming-value-constant-argument.ll +++ b/llvm/test/Transforms/IROutliner/exit-phi-nodes-incoming-value-constant-argument.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; When consolidating PHINodes, the outliner replaces the incoming value with ; a corresponding value from the first outlined section. When this replaced diff --git a/llvm/test/Transforms/IROutliner/no-external-block-entries.ll b/llvm/test/Transforms/IROutliner/no-external-block-entries.ll index d0735cff2d452..44260097e4415 100644 --- a/llvm/test/Transforms/IROutliner/no-external-block-entries.ll +++ b/llvm/test/Transforms/IROutliner/no-external-block-entries.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; When the an outlined section contains a PHINode no incoming blocks outside ; the region, we need to make sure that we do not try to reassign diff --git a/llvm/test/Transforms/IROutliner/one-external-incoming-block-phi-node.ll b/llvm/test/Transforms/IROutliner/one-external-incoming-block-phi-node.ll index 290417036536d..77e3a827453aa 100644 --- a/llvm/test/Transforms/IROutliner/one-external-incoming-block-phi-node.ll +++ b/llvm/test/Transforms/IROutliner/one-external-incoming-block-phi-node.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; When the an outlined section contains a PHINode with an incoming block ; outside of the region, the predecessors to be handled specially to ensure that diff --git a/llvm/test/Transforms/IROutliner/phi-node-exit-path-order.ll b/llvm/test/Transforms/IROutliner/phi-node-exit-path-order.ll index 4378a79dc588c..4bbe6e7ea9918 100644 --- a/llvm/test/Transforms/IROutliner/phi-node-exit-path-order.ll +++ b/llvm/test/Transforms/IROutliner/phi-node-exit-path-order.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s +; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s ; A PHINode defines the global value number of a split phi node for ; an exit paths based on the canonical number for the incoming values, and diff --git a/llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll b/llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll index 01e3089cb7fdc..0c8d7a26a5130 100644 --- a/llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll +++ b/llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll @@ -148,9 +148,7 @@ define i1 @icmp_mismatch_flat_group_private_cmp_undef_swap(ptr addrspace(3) %gro } ; CHECK-LABEL: @icmp_flat_flat_from_group_vector( -; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; CHECK: %cmp = icmp eq <2 x ptr> %cast0, %cast1 -; endif +; CHECK: %cmp = icmp eq <2 x ptr addrspace(3)> %group.ptr.0, %group.ptr.1 define <2 x i1> @icmp_flat_flat_from_group_vector(<2 x ptr addrspace(3)> %group.ptr.0, <2 x ptr addrspace(3)> %group.ptr.1) #0 { %cast0 = addrspacecast <2 x ptr addrspace(3)> %group.ptr.0 to <2 x ptr> %cast1 = addrspacecast <2 x ptr addrspace(3)> %group.ptr.1 to <2 x ptr> diff --git a/llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll b/llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll index 7557ab22c0dac..9e051ae63bfc6 100644 --- a/llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll +++ b/llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll @@ -1,9 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 -; ifdef INTEL_SYCL_OPAQUEPOINTER_READY ; RUN: opt -S -passes=infer-address-spaces -assume-default-is-flat-addrspace %s | FileCheck %s -; else -; XFAIL: * -; endif define <4 x i32> @masked_gather_inferas(ptr addrspace(1) %out, <4 x i64> %index) { ; CHECK-LABEL: define <4 x i32> @masked_gather_inferas diff --git a/llvm/test/Transforms/InferAddressSpaces/vector-of-pointers.ll b/llvm/test/Transforms/InferAddressSpaces/vector-of-pointers.ll index d5eb699ff2848..f489bbe323479 100644 --- a/llvm/test/Transforms/InferAddressSpaces/vector-of-pointers.ll +++ b/llvm/test/Transforms/InferAddressSpaces/vector-of-pointers.ll @@ -1,9 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 -; ifdef INTEL_SYCL_OPAQUEPOINTER_READY ; RUN: opt -S -passes=infer-address-spaces -assume-default-is-flat-addrspace %s | FileCheck %s -; else -; XFAIL: * -; endif define void @double_ascast(<4 x ptr addrspace(3)> %input) { ; CHECK-LABEL: define void @double_ascast diff --git a/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll b/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll index a8c3b6fbeb893..fe5e51bbbab95 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -opaque-pointers -passes=instcombine -disable-output +; RUN: opt < %s -passes=instcombine -disable-output define <2 x i32> @f() { ret <2 x i32> undef diff --git a/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll b/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll index 2b3d06947cde1..2fbdd802b46b8 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll @@ -1,6 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature -; Add -opaque-pointers until they are not enabled by default -; RUN: opt -opaque-pointers < %s -passes=instcombine -S | FileCheck %s +; RUN: opt < %s -passes=instcombine -S | FileCheck %s define void @f(i16 %y) { ; CHECK-LABEL: define {{[^@]+}}@f diff --git a/llvm/test/Transforms/InstCombine/addsub-constant-folding.ll b/llvm/test/Transforms/InstCombine/addsub-constant-folding.ll index 36e81273e9a31..83a45e697e59e 100644 --- a/llvm/test/Transforms/InstCombine/addsub-constant-folding.ll +++ b/llvm/test/Transforms/InstCombine/addsub-constant-folding.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt --opaque-pointers < %s -passes=instcombine -S | FileCheck %s +; RUN: opt < %s -passes=instcombine -S | FileCheck %s declare void @use(i32 %arg) declare void @vec_use(<4 x i32> %arg) diff --git a/llvm/test/Transforms/InstCombine/cast-callee-deopt-bundles.ll b/llvm/test/Transforms/InstCombine/cast-callee-deopt-bundles.ll index ccad7d67f59ec..14ff3ee71094f 100644 --- a/llvm/test/Transforms/InstCombine/cast-callee-deopt-bundles.ll +++ b/llvm/test/Transforms/InstCombine/cast-callee-deopt-bundles.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -passes=instcombine -S < %s | FileCheck %s +; RUN: opt -passes=instcombine -S < %s | FileCheck %s declare void @foo(i32) diff --git a/llvm/test/Transforms/InstCombine/icmp-binop.ll b/llvm/test/Transforms/InstCombine/icmp-binop.ll index e2938be9422ee..60a12411ee910 100644 --- a/llvm/test/Transforms/InstCombine/icmp-binop.ll +++ b/llvm/test/Transforms/InstCombine/icmp-binop.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers < %s -passes=instcombine -S | FileCheck %s +; RUN: opt < %s -passes=instcombine -S | FileCheck %s declare void @use64(i64) declare void @llvm.assume(i1) diff --git a/llvm/test/Transforms/InstCombine/mul_fold.ll b/llvm/test/Transforms/InstCombine/mul_fold.ll index d90dddaa0650f..d20ac6070d108 100644 --- a/llvm/test/Transforms/InstCombine/mul_fold.ll +++ b/llvm/test/Transforms/InstCombine/mul_fold.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -opaque-pointers -passes=instcombine -S | FileCheck %s +; RUN: opt < %s -passes=instcombine -S | FileCheck %s declare i8 @use8(i8) declare i16 @use16(i16) diff --git a/llvm/test/Transforms/InstCombine/musttail-thunk.ll b/llvm/test/Transforms/InstCombine/musttail-thunk.ll index ff1ed859dff59..9e6e9086d451e 100644 --- a/llvm/test/Transforms/InstCombine/musttail-thunk.ll +++ b/llvm/test/Transforms/InstCombine/musttail-thunk.ll @@ -1,7 +1,5 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -passes=instcombine -S < %s | FileCheck %s -; RUN: opt -opaque-pointers -debugify-each -passes=instcombine -S < %s | FileCheck %s +; RUN: opt -passes=instcombine -S < %s | FileCheck %s +; RUN: opt -debugify-each -passes=instcombine -S < %s | FileCheck %s ; These are both direct calls, but make sure instcombine leaves the casts ; alone. diff --git a/llvm/test/Transforms/InstCombine/scalable-vector-struct.ll b/llvm/test/Transforms/InstCombine/scalable-vector-struct.ll index 8a9be180f3fd4..f359e89578555 100644 --- a/llvm/test/Transforms/InstCombine/scalable-vector-struct.ll +++ b/llvm/test/Transforms/InstCombine/scalable-vector-struct.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY -; RUN: opt -opaque-pointers -passes=instcombine -S < %s 2>&1 | FileCheck %s +; RUN: opt -passes=instcombine -S < %s 2>&1 | FileCheck %s ; endif %struct.test = type { , } diff --git a/llvm/test/Transforms/InstCombine/shuffle-binop.ll b/llvm/test/Transforms/InstCombine/shuffle-binop.ll index 2be0a41440c2f..8460f8b2c6cd3 100644 --- a/llvm/test/Transforms/InstCombine/shuffle-binop.ll +++ b/llvm/test/Transforms/InstCombine/shuffle-binop.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers -passes='instcombine' -S %s | FileCheck %s +; RUN: opt -passes='instcombine' -S %s | FileCheck %s define <4 x i8> @splat_binop_non_splat_x(<4 x i8> %x, <4 x i8> %y) { ; CHECK-LABEL: @splat_binop_non_splat_x( diff --git a/llvm/test/Transforms/LoopDeletion/two-predecessors.ll b/llvm/test/Transforms/LoopDeletion/two-predecessors.ll index c18d118f2864e..366203ec5bdea 100644 --- a/llvm/test/Transforms/LoopDeletion/two-predecessors.ll +++ b/llvm/test/Transforms/LoopDeletion/two-predecessors.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers < %s -passes=loop-deletion -S | FileCheck %s +; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" target triple = "aarch64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/LoopUnroll/debug-info.ll b/llvm/test/Transforms/LoopUnroll/debug-info.ll index e5c094de1a7ce..65553ee3af542 100644 --- a/llvm/test/Transforms/LoopUnroll/debug-info.ll +++ b/llvm/test/Transforms/LoopUnroll/debug-info.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers %s -S -o - -passes=loop-unroll | FileCheck %s +; RUN: opt %s -S -o - -passes=loop-unroll | FileCheck %s ; generated at -O3 from: ; void f() { ; for (int i = 1; i <=32; i <<=2 ) diff --git a/llvm/test/Transforms/LowerTypeTests/export-alias.ll b/llvm/test/Transforms/LowerTypeTests/export-alias.ll index b5297562e2af7..255e6b6ca4d17 100644 --- a/llvm/test/Transforms/LowerTypeTests/export-alias.ll +++ b/llvm/test/Transforms/LowerTypeTests/export-alias.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -S %s -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/exported-funcs.yaml | FileCheck %s +; RUN: opt -S %s -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/exported-funcs.yaml | FileCheck %s ; ; CHECK: @alias1 = weak alias void (), ptr @external_addrtaken ; CHECK: @alias2 = hidden alias void (), ptr @external_addrtaken diff --git a/llvm/test/Transforms/LowerTypeTests/export-allones.ll b/llvm/test/Transforms/LowerTypeTests/export-allones.ll index 4ca68b0d5ff2e..9708f4d761920 100644 --- a/llvm/test/Transforms/LowerTypeTests/export-allones.ll +++ b/llvm/test/Transforms/LowerTypeTests/export-allones.ll @@ -1,7 +1,7 @@ -; RUN: opt -opaque-pointers -mtriple=x86_64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,X86 %s +; RUN: opt -mtriple=x86_64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,X86 %s ; RUN: FileCheck --check-prefixes=SUMMARY,SUMMARY-X86 %s < %t -; RUN: opt -opaque-pointers -mtriple=aarch64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,ARM %s +; RUN: opt -mtriple=aarch64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,ARM %s ; RUN: FileCheck --check-prefixes=SUMMARY,SUMMARY-ARM %s < %t @foo = constant [2048 x i8] zeroinitializer, !type !0, !type !1, !type !2, !type !3, !type !4, !type !5, !type !6, !type !7, !type !8, !type !9, !type !10, !type !11, !type !12, !type !13, !type !14, !type !15, !type !16, !type !17, !type !18, !type !19, !type !20, !type !21, !type !22, !type !23, !type !24, !type !25, !type !26, !type !27, !type !28, !type !29, !type !30, !type !31, !type !32, !type !33, !type !34, !type !35, !type !36, !type !37, !type !38, !type !39, !type !40, !type !41, !type !42, !type !43, !type !44, !type !45, !type !46, !type !47, !type !48, !type !49, !type !50, !type !51, !type !52, !type !53, !type !54, !type !55, !type !56, !type !57, !type !58, !type !59, !type !60, !type !61, !type !62, !type !63, !type !64, !type !65, !type !66, !type !67, !type !68, !type !69, !type !70, !type !71, !type !72, !type !73, !type !74, !type !75, !type !76, !type !77, !type !78, !type !79, !type !80, !type !81, !type !82, !type !83, !type !84, !type !85, !type !86, !type !87, !type !88, !type !89, !type !90, !type !91, !type !92, !type !93, !type !94, !type !95, !type !96, !type !97, !type !98, !type !99, !type !100, !type !101, !type !102, !type !103, !type !104, !type !105, !type !106, !type !107, !type !108, !type !109, !type !110, !type !111, !type !112, !type !113, !type !114, !type !115, !type !116, !type !117, !type !118, !type !119, !type !120, !type !121, !type !122, !type !123, !type !124, !type !125, !type !126, !type !127, !type !128, !type !129, !type !130 diff --git a/llvm/test/Transforms/LowerTypeTests/export-bytearray.ll b/llvm/test/Transforms/LowerTypeTests/export-bytearray.ll index 8216dd11616a6..fef93d016267e 100644 --- a/llvm/test/Transforms/LowerTypeTests/export-bytearray.ll +++ b/llvm/test/Transforms/LowerTypeTests/export-bytearray.ll @@ -1,7 +1,7 @@ -; RUN: opt -opaque-pointers -mtriple=x86_64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,X86 %s +; RUN: opt -mtriple=x86_64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,X86 %s ; RUN: FileCheck --check-prefixes=SUMMARY,SUMMARY-X86 %s < %t -; RUN: opt -opaque-pointers -mtriple=aarch64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,ARM %s +; RUN: opt -mtriple=aarch64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefixes=CHECK,ARM %s ; RUN: FileCheck --check-prefixes=SUMMARY,SUMMARY-ARM %s < %t @foo = constant [2048 x i8] zeroinitializer, !type !0, !type !1, !type !2, !type !3 diff --git a/llvm/test/Transforms/LowerTypeTests/export-icall.ll b/llvm/test/Transforms/LowerTypeTests/export-icall.ll index 47c0f9ebc86a9..bb766fc2ea737 100644 --- a/llvm/test/Transforms/LowerTypeTests/export-icall.ll +++ b/llvm/test/Transforms/LowerTypeTests/export-icall.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/export-icall.yaml -lowertypetests-write-summary=%t %s | FileCheck %s +; RUN: opt -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/export-icall.yaml -lowertypetests-write-summary=%t %s | FileCheck %s ; RUN: FileCheck --check-prefix=SUMMARY %s < %t target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/LowerTypeTests/export-inline.ll b/llvm/test/Transforms/LowerTypeTests/export-inline.ll index 03b03e9c79011..23d96a0c86840 100644 --- a/llvm/test/Transforms/LowerTypeTests/export-inline.ll +++ b/llvm/test/Transforms/LowerTypeTests/export-inline.ll @@ -1,7 +1,7 @@ -; RUN: opt -opaque-pointers -mtriple=x86_64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefix=CHECK %s +; RUN: opt -mtriple=x86_64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefix=CHECK %s ; RUN: FileCheck --check-prefixes=SUMMARY,SUMMARY-X86 %s < %t -; RUN: opt -opaque-pointers -mtriple=aarch64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefix=CHECK %s +; RUN: opt -mtriple=aarch64-unknown-linux -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck --check-prefix=CHECK %s ; RUN: FileCheck --check-prefixes=SUMMARY,SUMMARY-ARM %s < %t @foo = constant [2048 x i8] zeroinitializer, !type !0, !type !1, !type !2, !type !3 diff --git a/llvm/test/Transforms/LowerTypeTests/export-single.ll b/llvm/test/Transforms/LowerTypeTests/export-single.ll index 631a531d7cf40..7a62e3bb5f671 100644 --- a/llvm/test/Transforms/LowerTypeTests/export-single.ll +++ b/llvm/test/Transforms/LowerTypeTests/export-single.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck %s +; RUN: opt -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/use-typeid1-typeid2.yaml -lowertypetests-write-summary=%t %s | FileCheck %s ; RUN: FileCheck --check-prefix=SUMMARY %s < %t @foo = constant i32 42, !type !0 diff --git a/llvm/test/Transforms/LowerTypeTests/pr37625.ll b/llvm/test/Transforms/LowerTypeTests/pr37625.ll index ab29c91df670f..639cc3fa32bcb 100644 --- a/llvm/test/Transforms/LowerTypeTests/pr37625.ll +++ b/llvm/test/Transforms/LowerTypeTests/pr37625.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/exported-funcs.yaml -lowertypetests-write-summary=%t %s | FileCheck %s +; RUN: opt -S -passes=lowertypetests -lowertypetests-summary-action=export -lowertypetests-read-summary=%S/Inputs/exported-funcs.yaml -lowertypetests-write-summary=%t %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/MoveAutoInit/clobber.ll b/llvm/test/Transforms/MoveAutoInit/clobber.ll index 3f3f2ba613fd2..f1f7f63bf8078 100644 --- a/llvm/test/Transforms/MoveAutoInit/clobber.ll +++ b/llvm/test/Transforms/MoveAutoInit/clobber.ll @@ -4,7 +4,7 @@ ; ifdef INTEL_SYCL_OPAQUEPOINTER_READY ; COM: opt < %s -S -passes='move-auto-init' -verify-memoryssa | FileCheck %s ; else -; RUN: opt < %s -S -opaque-pointers -passes='move-auto-init' -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes='move-auto-init' -verify-memoryssa | FileCheck %s ; endif target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/no_speculative_loads_with_asan.ll b/llvm/test/Transforms/NewGVN/no_speculative_loads_with_asan.ll index acfe2d7241363..b1d71e8757284 100644 --- a/llvm/test/Transforms/NewGVN/no_speculative_loads_with_asan.ll +++ b/llvm/test/Transforms/NewGVN/no_speculative_loads_with_asan.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers -passes=newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" declare noalias i8* @_Znam(i64) #1 diff --git a/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll b/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll index 1fa6661350ecc..ac07148c75521 100644 --- a/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll +++ b/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers -passes=newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Test cases where initially a PHI-of-ops can be simplified to an existing ; value, but later we need to revisit the decision because the leader of diff --git a/llvm/test/Transforms/NewGVN/pr42422-phi-of-ops.ll b/llvm/test/Transforms/NewGVN/pr42422-phi-of-ops.ll index e352d724a599a..cbdf209d1ce50 100644 --- a/llvm/test/Transforms/NewGVN/pr42422-phi-of-ops.ll +++ b/llvm/test/Transforms/NewGVN/pr42422-phi-of-ops.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers -passes=newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s define void @d() { ; CHECK-LABEL: @d( diff --git a/llvm/test/Transforms/PGOProfile/branch1.ll b/llvm/test/Transforms/PGOProfile/branch1.ll index 141ecc6d1efb4..22c4fd5d3c10f 100644 --- a/llvm/test/Transforms/PGOProfile/branch1.ll +++ b/llvm/test/Transforms/PGOProfile/branch1.ll @@ -1,13 +1,13 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --check-prefix=GEN-COMDAT -; RUN: opt -opaque-pointers < %s -mtriple=x86_64-apple-darwin -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --check-prefix=GEN-DARWIN-LINKONCE +; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --check-prefix=GEN-COMDAT +; RUN: opt < %s -mtriple=x86_64-apple-darwin -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --check-prefix=GEN-DARWIN-LINKONCE ; RUN: llvm-profdata merge %S/Inputs/branch1.proftext -o %t.profdata ; RUN: llvm-profdata merge %S/Inputs/branch1_large_count.proftext -o %t.l.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.l.profdata -S | FileCheck %s --check-prefix=USE-LARGE +; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.l.profdata -S | FileCheck %s --check-prefix=USE-LARGE -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -pass-remarks=pgo-instrumentation -pgo-emit-branch-prob -S 2>&1| FileCheck %s --check-prefix=ANALYSIS +; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -pass-remarks=pgo-instrumentation -pgo-emit-branch-prob -S 2>&1| FileCheck %s --check-prefix=ANALYSIS target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/branch2.ll b/llvm/test/Transforms/PGOProfile/branch2.ll index 367887f873e07..82478e75cb262 100644 --- a/llvm/test/Transforms/PGOProfile/branch2.ll +++ b/llvm/test/Transforms/PGOProfile/branch2.ll @@ -1,10 +1,10 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY ; RUN: llvm-profdata merge %S/Inputs/branch2.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY ; RUN: llvm-profdata merge %S/Inputs/branch2_entry.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/comdat.ll b/llvm/test/Transforms/PGOProfile/comdat.ll index ac35c14549cca..765a77538a9b1 100644 --- a/llvm/test/Transforms/PGOProfile/comdat.ll +++ b/llvm/test/Transforms/PGOProfile/comdat.ll @@ -1,6 +1,6 @@ ;; Test comdat functions. -; RUN: opt -opaque-pointers < %s -mtriple=x86_64-linux -passes=pgo-instr-gen,instrprof -S | FileCheck %s --check-prefixes=ELF -; RUN: opt -opaque-pointers < %s -mtriple=x86_64-windows -passes=pgo-instr-gen,instrprof -S | FileCheck %s --check-prefixes=COFF +; RUN: opt < %s -mtriple=x86_64-linux -passes=pgo-instr-gen,instrprof -S | FileCheck %s --check-prefixes=ELF +; RUN: opt < %s -mtriple=x86_64-windows -passes=pgo-instr-gen,instrprof -S | FileCheck %s --check-prefixes=COFF $linkonceodr = comdat any $weakodr = comdat any diff --git a/llvm/test/Transforms/PGOProfile/criticaledge.ll b/llvm/test/Transforms/PGOProfile/criticaledge.ll index 16f78a3490961..c24925c68fa32 100644 --- a/llvm/test/Transforms/PGOProfile/criticaledge.ll +++ b/llvm/test/Transforms/PGOProfile/criticaledge.ll @@ -1,10 +1,10 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefix=GEN ; RUN: llvm-profdata merge %S/Inputs/criticaledge.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE ; -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefix=GEN ; RUN: llvm-profdata merge %S/Inputs/criticaledge_entry.proftext -o %t2.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t2.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t2.profdata -S | FileCheck %s --check-prefix=USE target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/instr_entry_bb.ll b/llvm/test/Transforms/PGOProfile/instr_entry_bb.ll index 5321bbd5a8871..ee088674e35e2 100644 --- a/llvm/test/Transforms/PGOProfile/instr_entry_bb.ll +++ b/llvm/test/Transforms/PGOProfile/instr_entry_bb.ll @@ -1,8 +1,8 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry -S | FileCheck %s --check-prefix=GEN -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen,instrprof -pgo-instrument-entry -atomic-first-counter -S | FileCheck %s --check-prefix=GENA +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -passes=pgo-instr-gen,instrprof -pgo-instrument-entry -atomic-first-counter -S | FileCheck %s --check-prefix=GENA ; RUN: llvm-profdata merge %S/Inputs/branch2.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -pgo-instrument-entry -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -pgo-instrument-entry -S | FileCheck %s --check-prefix=USE target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/loop1.ll b/llvm/test/Transforms/PGOProfile/loop1.ll index cdc03fdba99cd..ece7ea21b8ee5 100644 --- a/llvm/test/Transforms/PGOProfile/loop1.ll +++ b/llvm/test/Transforms/PGOProfile/loop1.ll @@ -1,9 +1,9 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY ; RUN: llvm-profdata merge %S/Inputs/loop1.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY ; RUN: llvm-profdata merge %S/Inputs/loop1_entry.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/loop2.ll b/llvm/test/Transforms/PGOProfile/loop2.ll index e058c9042b230..071f8a6d5ad59 100644 --- a/llvm/test/Transforms/PGOProfile/loop2.ll +++ b/llvm/test/Transforms/PGOProfile/loop2.ll @@ -1,9 +1,9 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY ; RUN: llvm-profdata merge %S/Inputs/loop2.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY ; RUN: llvm-profdata merge %S/Inputs/loop2_entry.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/preinline.ll b/llvm/test/Transforms/PGOProfile/preinline.ll index 2e31f9ee38b2b..9afc89d2e4430 100644 --- a/llvm/test/Transforms/PGOProfile/preinline.ll +++ b/llvm/test/Transforms/PGOProfile/preinline.ll @@ -1,5 +1,5 @@ -; RUN: opt -opaque-pointers < %s -O2 -pgo-kind=pgo-instr-gen-pipeline -S | FileCheck %s --check-prefix=GEN -; RUN: opt -opaque-pointers < %s -O2 -pgo-kind=pgo-instr-gen-pipeline -profile-file=default.profraw -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -O2 -pgo-kind=pgo-instr-gen-pipeline -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -O2 -pgo-kind=pgo-instr-gen-pipeline -profile-file=default.profraw -S | FileCheck %s --check-prefix=GEN target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/profdata_priv_alias.ll b/llvm/test/Transforms/PGOProfile/profdata_priv_alias.ll index 7eb02f671bebe..806a2ab9b82d3 100644 --- a/llvm/test/Transforms/PGOProfile/profdata_priv_alias.ll +++ b/llvm/test/Transforms/PGOProfile/profdata_priv_alias.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers -S -passes=pgo-instr-gen,instrprof < %s | FileCheck %s +; RUN: opt -S -passes=pgo-instr-gen,instrprof < %s | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/single_bb.ll b/llvm/test/Transforms/PGOProfile/single_bb.ll index 92a62d461710d..b6d85ed084018 100644 --- a/llvm/test/Transforms/PGOProfile/single_bb.ll +++ b/llvm/test/Transforms/PGOProfile/single_bb.ll @@ -1,4 +1,4 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/switch.ll b/llvm/test/Transforms/PGOProfile/switch.ll index 79fb120766d19..b0b32182b5baa 100644 --- a/llvm/test/Transforms/PGOProfile/switch.ll +++ b/llvm/test/Transforms/PGOProfile/switch.ll @@ -1,9 +1,9 @@ -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=false -S | FileCheck %s --check-prefixes=GEN,NOTENTRY ; RUN: llvm-profdata merge %S/Inputs/switch.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=false -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,ENTRY ; RUN: llvm-profdata merge %S/Inputs/switch_entry.proftext -o %t.profdata -; RUN: opt -opaque-pointers < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-instrument-entry=true -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/PGOProfile/thinlto_cspgo_gen.ll b/llvm/test/Transforms/PGOProfile/thinlto_cspgo_gen.ll index bca579dcb6149..266e2597a63a2 100644 --- a/llvm/test/Transforms/PGOProfile/thinlto_cspgo_gen.ll +++ b/llvm/test/Transforms/PGOProfile/thinlto_cspgo_gen.ll @@ -2,7 +2,7 @@ ; RUN: opt -passes='thinlto-pre-link' --cs-profilegen-file=alloc -cspgo-kind=cspgo-instr-gen-pipeline -module-summary %s -o %t1.bc ; RUN: opt -passes='thinlto-pre-link' --cs-profilegen-file=alloc -cspgo-kind=cspgo-instr-gen-pipeline -module-summary %S/Inputs/thinlto_cspgo_bar_gen.ll -o %t2.bc -; RUN: llvm-lto2 run -opaque-pointers -lto-cspgo-profile-file=alloc -lto-cspgo-gen -save-temps -o %t %t1.bc %t2.bc \ +; RUN: llvm-lto2 run -lto-cspgo-profile-file=alloc -lto-cspgo-gen -save-temps -o %t %t1.bc %t2.bc \ ; RUN: -r=%t1.bc,foo,pl \ ; RUN: -r=%t1.bc,bar,l \ ; RUN: -r=%t1.bc,main,plx \ diff --git a/llvm/test/Transforms/PGOProfile/thinlto_cspgo_use.ll b/llvm/test/Transforms/PGOProfile/thinlto_cspgo_use.ll index f0375fbab530b..6d35946a28ff3 100644 --- a/llvm/test/Transforms/PGOProfile/thinlto_cspgo_use.ll +++ b/llvm/test/Transforms/PGOProfile/thinlto_cspgo_use.ll @@ -3,7 +3,7 @@ ; RUN: opt -module-summary %s -o %t1.bc ; RUN: opt -module-summary %S/Inputs/thinlto_cspgo_bar_use.ll -o %t2.bc ; RUN: llvm-profdata merge %S/Inputs/thinlto_cs.proftext -o %t3.profdata -; RUN: llvm-lto2 run -opaque-pointers -lto-cspgo-profile-file=%t3.profdata -pgo-instrument-entry=false -save-temps -o %t %t1.bc %t2.bc \ +; RUN: llvm-lto2 run -lto-cspgo-profile-file=%t3.profdata -pgo-instrument-entry=false -save-temps -o %t %t1.bc %t2.bc \ ; RUN: -r=%t1.bc,foo,pl \ ; RUN: -r=%t1.bc,bar,l \ ; RUN: -r=%t1.bc,main,plx \ diff --git a/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp2.ll b/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp2.ll index 3c4043736d361..5f611008b2171 100644 --- a/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp2.ll +++ b/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp2.ll @@ -15,7 +15,7 @@ ; Use -import-instr-limit=5 so that we don't import _ZL3barv, which would ; hide the problem. -; RUN: llvm-lto2 run -opaque-pointers -save-temps -import-instr-limit=5 -o %t3 %t.bc %t2a.bc %t2b.bc -r %t.bc,fptr,plx -r %t.bc,main,plx -r %t2a.bc,_ZL3barv,l -r %t2b.bc,_ZL3barv,pl -print-imports 2>&1 | FileCheck %s --check-prefix=IMPORTS2 +; RUN: llvm-lto2 run -save-temps -import-instr-limit=5 -o %t3 %t.bc %t2a.bc %t2b.bc -r %t.bc,fptr,plx -r %t.bc,main,plx -r %t2a.bc,_ZL3barv,l -r %t2b.bc,_ZL3barv,pl -print-imports 2>&1 | FileCheck %s --check-prefix=IMPORTS2 ; IMPORTS2-NOT: Import _ZL3barv ; IMPORTS2: Import _ZL3foov.llvm.0 ; IMPORTS2-NOT: Import _ZL3barv diff --git a/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll b/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll index 03a5bd7f62595..f509ab907b7fc 100644 --- a/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll +++ b/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll @@ -6,7 +6,7 @@ ; Test to make sure importing and dead stripping works in the ; case where the target is a local function that also indirectly calls itself. -; RUN: llvm-lto2 run -opaque-pointers -thinlto-threads=1 -save-temps -o %t3 %t.bc %t2.bc -r %t.bc,fptr,plx -r %t.bc,main,plx -r %t2.bc,_Z6updatei,pl -r %t2.bc,fptr,l +; RUN: llvm-lto2 run -thinlto-threads=1 -save-temps -o %t3 %t.bc %t2.bc -r %t.bc,fptr,plx -r %t.bc,main,plx -r %t2.bc,_Z6updatei,pl -r %t2.bc,fptr,l ; RUN: llvm-dis %t3.1.3.import.bc -o - | FileCheck %s --check-prefix=IMPORTS ; Make sure we import the promted indirectly called target diff --git a/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp_droppeddead.ll b/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp_droppeddead.ll index 80d824f809b92..fcaf8da0857bf 100644 --- a/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp_droppeddead.ll +++ b/llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp_droppeddead.ll @@ -5,10 +5,10 @@ ; Tests that with dead stripping in the thin link enabled (default), we do not ; promote to target of the dropped dead symbol _ZL3foov. This can happen with a ; sample profile collected for one binary used to optimize for another binary. -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t2 %t.bc -r %t.bc,fptr,plx \ +; RUN: llvm-lto2 run -save-temps -o %t2 %t.bc -r %t.bc,fptr,plx \ ; RUN: -r %t.bc,main,plx -r %t.bc,_ZL3foov,l ; RUN: llvm-dis < %t2.1.4.opt.bc | FileCheck %s --check-prefix=OPT -; RUN: llvm-lto2 run -opaque-pointers -save-temps -o %t2 %t.bc -r %t.bc,fptr,plx \ +; RUN: llvm-lto2 run -save-temps -o %t2 %t.bc -r %t.bc,fptr,plx \ ; RUN: -r %t.bc,main,plx -r %t.bc,_ZL3foov,l -compute-dead=false ; RUN: llvm-dis < %t2.1.4.opt.bc | FileCheck %s --check-prefix=OPT-NODEAD diff --git a/llvm/test/Transforms/PhaseOrdering/X86/simplifycfg-late.ll b/llvm/test/Transforms/PhaseOrdering/X86/simplifycfg-late.ll index de84c035f6e54..02ca48effbff3 100644 --- a/llvm/test/Transforms/PhaseOrdering/X86/simplifycfg-late.ll +++ b/llvm/test/Transforms/PhaseOrdering/X86/simplifycfg-late.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers < %s -passes="lto" -S | FileCheck %s +; RUN: opt < %s -passes="lto" -S | FileCheck %s target datalayout = "i32:32:32-i64:64:64" target triple = "x86_64--" diff --git a/llvm/test/Transforms/RewriteStatepointsForGC/call-gc-result.ll b/llvm/test/Transforms/RewriteStatepointsForGC/call-gc-result.ll index 18943702b346c..c12ca5c25c850 100644 --- a/llvm/test/Transforms/RewriteStatepointsForGC/call-gc-result.ll +++ b/llvm/test/Transforms/RewriteStatepointsForGC/call-gc-result.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers < %s -passes=rewrite-statepoints-for-gc -S | FileCheck %s +; RUN: opt < %s -passes=rewrite-statepoints-for-gc -S | FileCheck %s ;; This test is to verify that gc_result from a call statepoint ;; can have preceding phis in its parent basic block. Unlike diff --git a/llvm/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic-cconv.ll b/llvm/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic-cconv.ll index e54d1dd2bf76d..89a26f35b7e62 100644 --- a/llvm/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic-cconv.ll +++ b/llvm/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic-cconv.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s +; RUN: opt -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.11.0" diff --git a/llvm/test/Transforms/RewriteStatepointsForGC/deopt-lowering-attrs.ll b/llvm/test/Transforms/RewriteStatepointsForGC/deopt-lowering-attrs.ll index 4f43271591a1c..07e6770fd557a 100644 --- a/llvm/test/Transforms/RewriteStatepointsForGC/deopt-lowering-attrs.ll +++ b/llvm/test/Transforms/RewriteStatepointsForGC/deopt-lowering-attrs.ll @@ -1,7 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s +; RUN: opt -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s ; Check that the "deopt-lowering" function attribute gets transcoded into ; flags on the resulting statepoint diff --git a/llvm/test/Transforms/SCCP/arg-count-mismatch.ll b/llvm/test/Transforms/SCCP/arg-count-mismatch.ll index 6b451897ecafa..54bf8d349b831 100644 --- a/llvm/test/Transforms/SCCP/arg-count-mismatch.ll +++ b/llvm/test/Transforms/SCCP/arg-count-mismatch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature -; RUN: opt < %s -opaque-pointers -passes=ipsccp -S -o - | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S -o - | FileCheck %s ; The original C source looked like this: ; diff --git a/llvm/test/Transforms/SCCP/arg-type-mismatch.ll b/llvm/test/Transforms/SCCP/arg-type-mismatch.ll index d9e188b466517..6361280801bf3 100644 --- a/llvm/test/Transforms/SCCP/arg-type-mismatch.ll +++ b/llvm/test/Transforms/SCCP/arg-type-mismatch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature -; RUN: opt < %s -opaque-pointers -passes=ipsccp -S -o - | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S -o - | FileCheck %s ; This test is just to verify that we do not crash/assert due to mismatch in ; argument type between the caller and callee. diff --git a/llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll b/llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll index 8d0d1e976a67e..f211698026bbd 100644 --- a/llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll +++ b/llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup -S -mtriple=x86_64-unknown-linux-gnu | FileCheck %s -; RUN: opt -opaque-pointers < %s -passes='simplifycfg' -S -mtriple=x86_64-unknown-linux-gnu | FileCheck %s +; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup -S -mtriple=x86_64-unknown-linux-gnu | FileCheck %s +; RUN: opt < %s -passes='simplifycfg' -S -mtriple=x86_64-unknown-linux-gnu | FileCheck %s ; In the presence of "-no-jump-tables"="true", simplifycfg should not convert switches to lookup tables. diff --git a/llvm/test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll b/llvm/test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll index 2fd9c9408634d..cf244e6b63457 100644 --- a/llvm/test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll +++ b/llvm/test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers -S -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s -; RUN: opt -opaque-pointers -S -passes='simplifycfg' < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s +; RUN: opt -S -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s +; RUN: opt -S -passes='simplifycfg' < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s ; rdar://17887153 target datalayout = "e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" diff --git a/llvm/test/Transforms/SimplifyCFG/X86/switch-table-bug.ll b/llvm/test/Transforms/SimplifyCFG/X86/switch-table-bug.ll index 2db0c21e40d23..37001f4fba2aa 100644 --- a/llvm/test/Transforms/SimplifyCFG/X86/switch-table-bug.ll +++ b/llvm/test/Transforms/SimplifyCFG/X86/switch-table-bug.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers -S -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s -; RUN: opt -opaque-pointers -S -passes='simplifycfg' < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s +; RUN: opt -S -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s +; RUN: opt -S -passes='simplifycfg' < %s -mtriple=x86_64-apple-darwin12.0.0 | FileCheck %s ; rdar://17735071 target datalayout = "e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" diff --git a/llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-large-types.ll b/llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-large-types.ll index 6712ca4c259fe..70f42761e79c0 100644 --- a/llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-large-types.ll +++ b/llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-large-types.ll @@ -1,8 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --scrub-attributes --check-globals -; RUN: opt -opaque-pointers -passes=simplifycfg --switch-to-lookup -S %s | FileCheck %s -; RUN: opt -opaque-pointers '-passes=simplifycfg' -data-layout="e" -S %s | FileCheck %s +; RUN: opt -passes=simplifycfg --switch-to-lookup -S %s | FileCheck %s +; RUN: opt '-passes=simplifycfg' -data-layout="e" -S %s | FileCheck %s ;; If basic integer types are natively supported, the value is generated inline instead of using a global -; RUN: opt -opaque-pointers '-passes=simplifycfg' -data-layout="e-n8:16:32:64" -S %s | FileCheck %s --check-prefix=INLINE +; RUN: opt '-passes=simplifycfg' -data-layout="e-n8:16:32:64" -S %s | FileCheck %s --check-prefix=INLINE target triple = "x86_64-unknown-linux-gnu" ;. diff --git a/llvm/test/Transforms/SimplifyCFG/rangereduce.ll b/llvm/test/Transforms/SimplifyCFG/rangereduce.ll index 6d6ad72234bca..b1a3802a2bb58 100644 --- a/llvm/test/Transforms/SimplifyCFG/rangereduce.ll +++ b/llvm/test/Transforms/SimplifyCFG/rangereduce.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -opaque-pointers < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup -S | FileCheck %s -; RUN: opt -opaque-pointers < %s -passes='simplifycfg' -S | FileCheck %s +; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -switch-to-lookup -S | FileCheck %s +; RUN: opt < %s -passes='simplifycfg' -S | FileCheck %s target datalayout = "e-n32" diff --git a/llvm/test/Transforms/Util/add-TLI-mappings.ll b/llvm/test/Transforms/Util/add-TLI-mappings.ll index 101c95977a0af..8168656a6490c 100644 --- a/llvm/test/Transforms/Util/add-TLI-mappings.ll +++ b/llvm/test/Transforms/Util/add-TLI-mappings.ll @@ -1,9 +1,7 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: opt -opaque-pointers -vector-library=SVML -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,SVML -; RUN: opt -opaque-pointers -vector-library=MASSV -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,MASSV -; RUN: opt -opaque-pointers -vector-library=LIBMVEC-X86 -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,LIBMVEC-X86 -; RUN: opt -opaque-pointers -vector-library=Accelerate -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,ACCELERATE +; RUN: opt -vector-library=SVML -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,SVML +; RUN: opt -vector-library=MASSV -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,MASSV +; RUN: opt -vector-library=LIBMVEC-X86 -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,LIBMVEC-X86 +; RUN: opt -vector-library=Accelerate -passes=inject-tli-mappings -S < %s | FileCheck %s --check-prefixes=COMMON,ACCELERATE target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Verifier/byval-1.ll b/llvm/test/Verifier/byval-1.ll index 595abe98b3410..0d303fc9eb851 100644 --- a/llvm/test/Verifier/byval-1.ll +++ b/llvm/test/Verifier/byval-1.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers < %s -o /dev/null 2>&1 | FileCheck %s +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s ; CHECK: Attribute 'byval(i32)' applied to incompatible type! ; CHECK-NEXT: ptr @h diff --git a/llvm/test/Verifier/callbr.ll b/llvm/test/Verifier/callbr.ll index 65389b2cd60fd..9b819c5fed48b 100644 --- a/llvm/test/Verifier/callbr.ll +++ b/llvm/test/Verifier/callbr.ll @@ -1,4 +1,4 @@ -; RUN: not opt -opaque-pointers -S %s -passes=verify 2>&1 | FileCheck %s +; RUN: not opt -S %s -passes=verify 2>&1 | FileCheck %s ; CHECK: Number of label constraints does not match number of callbr dests ; CHECK-NEXT: #too_few_label_constraints diff --git a/llvm/test/Verifier/dllstorage.ll b/llvm/test/Verifier/dllstorage.ll index 5a00d8c18d204..dae26575ae0e2 100644 --- a/llvm/test/Verifier/dllstorage.ll +++ b/llvm/test/Verifier/dllstorage.ll @@ -1,6 +1,4 @@ -; TODO: Remove -opaque-pointers flag when the project supports opaque pointers -; by default -; RUN: not opt -opaque-pointers -passes=verify %s 2>&1 | FileCheck %s +; RUN: not opt -passes=verify %s 2>&1 | FileCheck %s target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-windows-gnu" diff --git a/llvm/test/Verifier/get-active-lane-mask.ll b/llvm/test/Verifier/get-active-lane-mask.ll index 8f43a8cf78d56..141476e6f83d9 100644 --- a/llvm/test/Verifier/get-active-lane-mask.ll +++ b/llvm/test/Verifier/get-active-lane-mask.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers < %s -o /dev/null 2>&1 | FileCheck %s +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s declare <4 x i32> @llvm.get.active.lane.mask.v4i32.i32(i32, i32) diff --git a/llvm/test/Verifier/jumptable.ll b/llvm/test/Verifier/jumptable.ll index d96bbb7958f13..e7b74c310c824 100644 --- a/llvm/test/Verifier/jumptable.ll +++ b/llvm/test/Verifier/jumptable.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers -disable-output %s 2>&1 | FileCheck %s +; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s define i32 @f() jumptable { ret i32 0 diff --git a/llvm/test/Verifier/llvm.compiler_used-invalid-type.ll b/llvm/test/Verifier/llvm.compiler_used-invalid-type.ll index e044b9bd5e16e..c699a0e45871e 100644 --- a/llvm/test/Verifier/llvm.compiler_used-invalid-type.ll +++ b/llvm/test/Verifier/llvm.compiler_used-invalid-type.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers < %s -o /dev/null 2>&1 | FileCheck %s +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s @llvm.compiler.used = appending global [1 x i32] [i32 0], section "llvm.metadata" diff --git a/llvm/test/Verifier/llvm.used-invalid-type.ll b/llvm/test/Verifier/llvm.used-invalid-type.ll index 154480f0b7c5e..ca97082ed5835 100644 --- a/llvm/test/Verifier/llvm.used-invalid-type.ll +++ b/llvm/test/Verifier/llvm.used-invalid-type.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers < %s -o /dev/null 2>&1 | FileCheck %s +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s @llvm.used = appending global [1 x i32] [i32 0], section "llvm.metadata" diff --git a/llvm/test/Verifier/llvm.used-invalid-type2.ll b/llvm/test/Verifier/llvm.used-invalid-type2.ll index f5efe92225d94..ce1a2fbd49bd5 100644 --- a/llvm/test/Verifier/llvm.used-invalid-type2.ll +++ b/llvm/test/Verifier/llvm.used-invalid-type2.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers < %s -o /dev/null 2>&1 | FileCheck %s +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s @llvm.used = appending global i32 0, section "llvm.metadata" ; CHECK: Only global arrays can have appending linkage! diff --git a/llvm/test/Verifier/metadata-function-dbg.ll b/llvm/test/Verifier/metadata-function-dbg.ll index f1b9c78febab8..23ac6f31c9e1a 100644 --- a/llvm/test/Verifier/metadata-function-dbg.ll +++ b/llvm/test/Verifier/metadata-function-dbg.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers %s -disable-output 2>&1 | FileCheck %s +; RUN: llvm-as %s -disable-output 2>&1 | FileCheck %s ; CHECK: function declaration may only have a unique !dbg attachment declare !dbg !4 void @f1() diff --git a/llvm/test/Verifier/nofpclass.ll b/llvm/test/Verifier/nofpclass.ll index 7bd1d605a9888..ea140ac6d97ef 100644 --- a/llvm/test/Verifier/nofpclass.ll +++ b/llvm/test/Verifier/nofpclass.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers -disable-output %s 2>&1 | FileCheck %s +; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s ; CHECK: 'nofpclass(nan)' applied to incompatible type! ; CHECK-NEXT: ptr @nofpclass_int_return diff --git a/llvm/test/Verifier/speculatable-callsite-invalid.ll b/llvm/test/Verifier/speculatable-callsite-invalid.ll index 190b0c596bce2..88bb698968efe 100644 --- a/llvm/test/Verifier/speculatable-callsite-invalid.ll +++ b/llvm/test/Verifier/speculatable-callsite-invalid.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -opaque-pointers %s -o /dev/null 2>&1 | FileCheck %s +; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s ; Make sure that speculatable is not allowed on a call site if the ; declaration is not also speculatable. diff --git a/llvm/test/Verifier/speculatable-callsite.ll b/llvm/test/Verifier/speculatable-callsite.ll index 1197c7a7b99dc..1dd34a5055c00 100644 --- a/llvm/test/Verifier/speculatable-callsite.ll +++ b/llvm/test/Verifier/speculatable-callsite.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as -opaque-pointers %s -o /dev/null +; RUN: llvm-as %s -o /dev/null ; Make sure speculatable is accepted on a call site if the declaration ; is also speculatable. diff --git a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll index d6503f1a38b42..67d0ca602da40 100644 --- a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll +++ b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll @@ -1,13 +1,13 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY ;; Check that we accept functions with '$' in the name. -; RUN: llc -opaque-pointers -mtriple=x86_64 < %s | FileCheck %s +; RUN: llc -mtriple=x86_64 < %s | FileCheck %s ;; Check that we accept .Ldsolocal$local: below the function label. -; RUN: llc -opaque-pointers -mtriple=x86_64 -relocation-model=pic < %s | FileCheck %s --check-prefix=PIC +; RUN: llc -mtriple=x86_64 -relocation-model=pic < %s | FileCheck %s --check-prefix=PIC ;; Check that we accept .seh_proc below the function label. -; RUN: llc -opaque-pointers -mtriple=x86_64-windows -relocation-model=pic < %s | FileCheck %s --check-prefix=WIN +; RUN: llc -mtriple=x86_64-windows -relocation-model=pic < %s | FileCheck %s --check-prefix=WIN ; endif @gv0 = dso_local global i32 0, align 4 diff --git a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll.expected b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll.expected index e2b78614637c7..ab1e3e6027952 100644 --- a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll.expected +++ b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll.expected @@ -1,13 +1,13 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; ifndef INTEL_SYCL_OPAQUEPOINTER_READY ;; Check that we accept functions with '$' in the name. -; RUN: llc -opaque-pointers -mtriple=x86_64 < %s | FileCheck %s +; RUN: llc -mtriple=x86_64 < %s | FileCheck %s ;; Check that we accept .Ldsolocal$local: below the function label. -; RUN: llc -opaque-pointers -mtriple=x86_64 -relocation-model=pic < %s | FileCheck %s --check-prefix=PIC +; RUN: llc -mtriple=x86_64 -relocation-model=pic < %s | FileCheck %s --check-prefix=PIC ;; Check that we accept .seh_proc below the function label. -; RUN: llc -opaque-pointers -mtriple=x86_64-windows -relocation-model=pic < %s | FileCheck %s --check-prefix=WIN +; RUN: llc -mtriple=x86_64-windows -relocation-model=pic < %s | FileCheck %s --check-prefix=WIN ; endif @gv0 = dso_local global i32 0, align 4 diff --git a/llvm/test/tools/llvm-extract/extract-blocks-with-groups.ll b/llvm/test/tools/llvm-extract/extract-blocks-with-groups.ll index f62aecf7e3c1b..057e70008ff96 100644 --- a/llvm/test/tools/llvm-extract/extract-blocks-with-groups.ll +++ b/llvm/test/tools/llvm-extract/extract-blocks-with-groups.ll @@ -1,4 +1,4 @@ -; RUN: llvm-extract -opaque-pointers -bb 'foo:if;then;else' -bb 'bar:bb14;bb20' -S %s | FileCheck %s +; RUN: llvm-extract -bb 'foo:if;then;else' -bb 'bar:bb14;bb20' -S %s | FileCheck %s ; Extract two groups of basic blocks in two different functions. diff --git a/llvm/test/tools/llvm-lto2/X86/slp-vectorize-pm.ll b/llvm/test/tools/llvm-lto2/X86/slp-vectorize-pm.ll index 1cc2d9ce5c4cf..f5cadc127ef84 100644 --- a/llvm/test/tools/llvm-lto2/X86/slp-vectorize-pm.ll +++ b/llvm/test/tools/llvm-lto2/X86/slp-vectorize-pm.ll @@ -1,19 +1,19 @@ ; RUN: opt -module-summary %s -o %t1.bc ; Test SLP and Loop Vectorization are enabled by default at O2 and O3. -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -o %t2.o -O0 -r %t1.bc,foo,plx -debug-pass-manager \ +; RUN: llvm-lto2 run %t1.bc -o %t2.o -O0 -r %t1.bc,foo,plx -debug-pass-manager \ ; RUN: -save-temps 2>&1 | FileCheck %s --check-prefix=CHECK-O0-SLP ; RUN: llvm-dis %t2.o.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-O0-LPV -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -o %t3.o -O1 -r %t1.bc,foo,plx -debug-pass-manager \ +; RUN: llvm-lto2 run %t1.bc -o %t3.o -O1 -r %t1.bc,foo,plx -debug-pass-manager \ ; RUN: -save-temps 2>&1 | FileCheck %s --check-prefix=CHECK-O1-SLP ; RUN: llvm-dis %t3.o.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-O1-LPV -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -o %t4.o -O2 -r %t1.bc,foo,plx -debug-pass-manager \ +; RUN: llvm-lto2 run %t1.bc -o %t4.o -O2 -r %t1.bc,foo,plx -debug-pass-manager \ ; RUN: -save-temps 2>&1 | FileCheck %s --check-prefix=CHECK-O2-SLP ; RUN: llvm-dis %t4.o.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-O2-LPV -; RUN: llvm-lto2 run -opaque-pointers %t1.bc -o %t5.o -O3 -r %t1.bc,foo,plx -debug-pass-manager \ +; RUN: llvm-lto2 run %t1.bc -o %t5.o -O3 -r %t1.bc,foo,plx -debug-pass-manager \ ; RUN: -save-temps 2>&1 | FileCheck %s --check-prefix=CHECK-O3-SLP ; RUN: llvm-dis %t5.o.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-O3-LPV diff --git a/llvm/test/tools/llvm-reduce/Inputs/llvm-dis-and-filecheck.py b/llvm/test/tools/llvm-reduce/Inputs/llvm-dis-and-filecheck.py index 60cfb2400f8a2..2244542d9b2dc 100755 --- a/llvm/test/tools/llvm-reduce/Inputs/llvm-dis-and-filecheck.py +++ b/llvm/test/tools/llvm-reduce/Inputs/llvm-dis-and-filecheck.py @@ -25,10 +25,7 @@ bitcode_file = sys.argv[-1] ir_file = bitcode_file + ".ll" -# NOTE: llvm-dis is always invoked with -opaque-pointers. This is not an -# issue with existing tests using this script. -# Remove the option once llvm-dis can handle opaque pointers by default. -disassemble = subprocess.Popen([llvm_dis, "-opaque-pointers", "--preserve-ll-uselistorder", "-o", ir_file, bitcode_file]) +disassemble = subprocess.Popen([llvm_dis, "--preserve-ll-uselistorder", "-o", ir_file, bitcode_file]) if os.path.exists(ir_file + ".0"): ir_file = ir_file + ".0" diff --git a/llvm/test/tools/llvm-reduce/file-output-type.test b/llvm/test/tools/llvm-reduce/file-output-type.test index 37db1921550fd..93b9ca4acb089 100644 --- a/llvm/test/tools/llvm-reduce/file-output-type.test +++ b/llvm/test/tools/llvm-reduce/file-output-type.test @@ -4,44 +4,44 @@ # RUN: llvm-as -o test-output-format.bc %p/Inputs/test-output-format.ll # A .ll input file should default to text output in reduced.ll -# RUN: llvm-reduce -opaque-pointers --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll +# RUN: llvm-reduce --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll # RUN: llvm-as -disable-output reduced.ll # A .bc input file should default to bitcode output, in reduced.bc (with bitcode intermediates) # RUN: rm -f reduced.ll reduced.bc -# RUN: llvm-reduce -opaque-pointers --delta-passes=instructions --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc -# RUN: llvm-dis -opaque-pointers -disable-output reduced.bc +# RUN: llvm-reduce --delta-passes=instructions --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc +# RUN: llvm-dis -disable-output reduced.bc # A .bc input file with a requested .bc output should produce bitcode -# RUN: llvm-reduce -opaque-pointers --delta-passes=instructions -o %t.0.bc --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc -# RUN: llvm-dis -opaque-pointers -disable-output %t.0.bc +# RUN: llvm-reduce --delta-passes=instructions -o %t.0.bc --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc +# RUN: llvm-dis -disable-output %t.0.bc # A .bc input file with a requested .ll output # RUN: rm -f reduced.ll reduced.bc -# RUN: llvm-reduce -opaque-pointers --delta-passes=instructions -o %t.0.ll --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc -# RUN: llvm-dis -opaque-pointers -disable-output %t.0.ll +# RUN: llvm-reduce --delta-passes=instructions -o %t.0.ll --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc +# RUN: llvm-dis -disable-output %t.0.ll # A file name ending in .bc -# RUN: llvm-reduce -opaque-pointers -o %t.1.bc --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll +# RUN: llvm-reduce -o %t.1.bc --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll # RUN: llvm-as -disable-output %t.1.bc # Make sure an explicit -output-bitcode produces bitcode output regardless of suffix -# RUN: llvm-reduce -opaque-pointers -output-bitcode -o %t.2_no_suffix --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll -# RUN: llvm-dis -opaque-pointers -disable-output %t.2_no_suffix +# RUN: llvm-reduce -output-bitcode -o %t.2_no_suffix --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll +# RUN: llvm-dis -disable-output %t.2_no_suffix # Make sure an explicit -output-bitcode overrides .ll suffix -# RUN: llvm-reduce -opaque-pointers -output-bitcode -o %t.2.ll --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll -# RUN: llvm-dis -opaque-pointers -disable-output %t.2.ll +# RUN: llvm-reduce -output-bitcode -o %t.2.ll --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll +# RUN: llvm-dis -disable-output %t.2.ll # Make sure MIR ignores requests for bitcode -# RUN: llvm-reduce -opaque-pointers -output-bitcode --delta-passes=instructions -o %t.3 --test FileCheck --test-arg --check-prefix=MIR --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.mir +# RUN: llvm-reduce -output-bitcode --delta-passes=instructions -o %t.3 --test FileCheck --test-arg --check-prefix=MIR --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.mir # RUN: llc -x mir -run-pass=none -o /dev/null %t.3 diff --git a/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll b/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll index b45531baaf87a..5d6f1083b84f7 100644 --- a/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll +++ b/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll @@ -1,8 +1,8 @@ ; This reuses llvm/test/tools/llvm-reduce/operands-skip.ll ; REQUIRES: thread_support -; RUN: llvm-reduce -opaque-pointers -j 2 %S/operands-skip.ll -o %t.1 --delta-passes=operands-skip --test FileCheck --test-arg %S/operands-skip.ll --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file +; RUN: llvm-reduce -j 2 %S/operands-skip.ll -o %t.1 --delta-passes=operands-skip --test FileCheck --test-arg %S/operands-skip.ll --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file ; RUN: FileCheck %S/operands-skip.ll --input-file %t.1 --check-prefixes=REDUCED -; RUN: llvm-reduce -opaque-pointers -j 4 %S/operands-skip.ll -o %t.2 --delta-passes=operands-skip --test FileCheck --test-arg %S/operands-skip.ll --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file +; RUN: llvm-reduce -j 4 %S/operands-skip.ll -o %t.2 --delta-passes=operands-skip --test FileCheck --test-arg %S/operands-skip.ll --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file ; RUN: FileCheck %S/operands-skip.ll --input-file %t.2 --check-prefixes=REDUCED diff --git a/llvm/test/tools/llvm-reduce/temporary-files-as-bitcode-split.ll b/llvm/test/tools/llvm-reduce/temporary-files-as-bitcode-split.ll index c76f1dad328de..40a6656200f54 100644 --- a/llvm/test/tools/llvm-reduce/temporary-files-as-bitcode-split.ll +++ b/llvm/test/tools/llvm-reduce/temporary-files-as-bitcode-split.ll @@ -1,7 +1,7 @@ ; RUN: opt --thinlto-bc --thinlto-split-lto-unit %s -o %t0 -; RUN: llvm-reduce -opaque-pointers -write-tmp-files-as-bitcode --delta-passes=function-bodies,basic-blocks %t0 -o %t1 \ +; RUN: llvm-reduce -write-tmp-files-as-bitcode --delta-passes=function-bodies,basic-blocks %t0 -o %t1 \ ; RUN: --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s -; RUN: llvm-dis -opaque-pointers < %t1* | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s +; RUN: llvm-dis < %t1* | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s @g = internal global i8 42, !type !0 diff --git a/sycl/test/check_device_code/cuda/ldg.cpp b/sycl/test/check_device_code/cuda/ldg.cpp index e0ae28ac6a5f3..157c46a66affa 100644 --- a/sycl/test/check_device_code/cuda/ldg.cpp +++ b/sycl/test/check_device_code/cuda/ldg.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xclang -fnative-half-type -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xclang -fnative-half-type -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xclang -fnative-half-type -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include #include @@ -82,220 +81,144 @@ int main() { q.submit([=](sycl::handler &h) { h.single_task([=] { - //CHECK: tail call half @llvm.nvvm.ldg.global.f.f16.p0f16(half* %{{.*}}, i32 2) //CHECK-OPAQUE: tail call half @llvm.nvvm.ldg.global.f.f16.p0(ptr %{{.*}}, i32 2) auto cached_h = ldg(&in_h[0]); - //CHECK: tail call float @llvm.nvvm.ldg.global.f.f32.p0f32(float* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call float @llvm.nvvm.ldg.global.f.f32.p0(ptr %{{.*}}, i32 4) auto cached_f = ldg(&in_f[0]); - //CHECK: tail call double @llvm.nvvm.ldg.global.f.f64.p0f64(double* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call double @llvm.nvvm.ldg.global.f.f64.p0(ptr %{{.*}}, i32 8) auto cached_d = ldg(&in_d[0]); - //CHECK: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0v2f16(<2 x half>* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0(ptr %{{.*}}, i32 4) auto cached_h2 = ldg(&in_h2[0]); - //CHECK: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0v2f16(<2 x half>* %{{.*}}, i32 4) - //CHECK: tail call half @llvm.nvvm.ldg.global.f.f16.p0f16(half* nonnull %{{.*}}, i32 2) //CHECK-OPAQUE: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0(ptr %{{.*}}, i32 4) //CHECK-OPAQUE: tail call half @llvm.nvvm.ldg.global.f.f16.p0(ptr nonnull %{{.*}}, i32 2) auto cached_h3 = ldg(&in_h3[0]); - //CHECK: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0v2f16(<2 x half>* %{{.*}}, i32 4) - //CHECK: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0v2f16(<2 x half>* nonnull %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0(ptr %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x half> @llvm.nvvm.ldg.global.f.v2f16.p0(ptr nonnull %{{.*}}, i32 4) auto cached_h4 = ldg(&in_h4[0]); - //CHECK: tail call <2 x float> @llvm.nvvm.ldg.global.f.v2f32.p0v2f32(<2 x float>* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x float> @llvm.nvvm.ldg.global.f.v2f32.p0(ptr %{{.*}}, i32 8) auto cached_f2 = ldg(&in_f2[0]); - //CHECK: tail call <2 x float> @llvm.nvvm.ldg.global.f.v2f32.p0v2f32(<2 x float>* %{{.*}}, i32 8) - //CHECK: tail call float @llvm.nvvm.ldg.global.f.f32.p0f32(float* nonnull %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x float> @llvm.nvvm.ldg.global.f.v2f32.p0(ptr %{{.*}}, i32 8) //CHECK-OPAQUE: tail call float @llvm.nvvm.ldg.global.f.f32.p0(ptr nonnull %{{.*}}, i32 4) auto cached_f3 = ldg(&in_f3[0]); - //CHECK: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0v2f64(<2 x double>* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0(ptr %{{.*}}, i32 16) auto cached_d2 = ldg(&in_d2[0]); - //CHECK: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0v2f64(<2 x double>* %{{.*}}, i32 16) - //CHECK: tail call double @llvm.nvvm.ldg.global.f.f64.p0f64(double* nonnull %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0(ptr %{{.*}}, i32 16) //CHECK-OPAQUE: tail call double @llvm.nvvm.ldg.global.f.f64.p0(ptr nonnull %{{.*}}, i32 8) auto cached_d3 = ldg(&in_d3[0]); - //CHECK: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0v2f64(<2 x double>* %{{.*}}, i32 16) - //CHECK: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0v2f64(<2 x double>* nonnull %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0(ptr %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x double> @llvm.nvvm.ldg.global.f.v2f64.p0(ptr nonnull %{{.*}}, i32 16) auto cached_d4 = ldg(&in_d4[0]); - //CHECK: tail call <4 x float> @llvm.nvvm.ldg.global.f.v4f32.p0v4f32(<4 x float>* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <4 x float> @llvm.nvvm.ldg.global.f.v4f32.p0(ptr %{{.*}}, i32 16) auto cached_f4 = ldg(&in_f4[0]); // Unsigned variants are identical to signed variants, but this leads to // correct behavior. - //CHECK: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0i8(i8* %{{.*}}, i32 1) //CHECK-OPAQUE: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0(ptr %{{.*}}, i32 1) auto cached_c = ldg(&in_c[0]); - //CHECK: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0i8(i8* %{{.*}}, i32 1) //CHECK-OPAQUE: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0(ptr %{{.*}}, i32 1) auto cached_sc = ldg(&in_sc[0]); - //CHECK: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0i16(i16* %{{.*}}, i32 2) //CHECK-OPAQUE: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0(ptr %{{.*}}, i32 2) auto cached_s = ldg(&in_s[0]); - //CHECK: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0i32(i32* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0(ptr %{{.*}}, i32 4) auto cached_i = ldg(&in_i[0]); - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr %{{.*}}, i32 8) auto cached_l = ldg(&in_l[0]); - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr %{{.*}}, i32 8) auto cached_ll = ldg(&in_ll[0]); - //CHECK: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0i8(i8* %{{.*}}, i32 1) //CHECK-OPAQUE: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0(ptr %{{.*}}, i32 1) auto cached_uc = ldg(&in_uc[0]); - //CHECK: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0i16(i16* %{{.*}}, i32 2) //CHECK-OPAQUE: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0(ptr %{{.*}}, i32 2) auto cached_us = ldg(&in_us[0]); - //CHECK: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0i32(i32* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0(ptr %{{.*}}, i32 4) auto cached_ui = ldg(&in_ui[0]); - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr %{{.*}}, i32 8) auto cached_ul = ldg(&in_ul[0]); - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr %{{.*}}, i32 8) auto cached_ull = ldg(&in_ull[0]); - //CHECK: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0v2i8(<2 x i8>* %{{.*}}, i32 2) //CHECK-OPAQUE: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0(ptr %{{.*}}, i32 2) auto cached_c2 = ldg(&in_c2[0]); - //CHECK: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0v2i8(<2 x i8>* %{{.*}}, i32 2) - //CHECK: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0i8(i8* nonnull %{{.*}}, i32 1) //CHECK-OPAQUE: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0(ptr %{{.*}}, i32 2) //CHECK-OPAQUE: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0(ptr nonnull %{{.*}}, i32 1) auto cached_c3 = ldg(&in_c3[0]); - //CHECK: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0v2i8(<2 x i8>* %{{.*}}, i32 2) //CHECK-OPAQUE: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0(ptr %{{.*}}, i32 2) auto cached_sc2 = ldg(&in_sc2[0]); - //CHECK: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0v2i8(<2 x i8>* %{{.*}}, i32 2) - //CHECK: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0i8(i8* nonnull %{{.*}}, i32 1) //CHECK-OPAQUE: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0(ptr %{{.*}}, i32 2) //CHECK-OPAQUE: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0(ptr nonnull %{{.*}}, i32 1) auto cached_sc3 = ldg(&in_sc3[0]); - //CHECK: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0v2i16(<2 x i16>* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0(ptr %{{.*}}, i32 4) auto cached_s2 = ldg(&in_s2[0]); - //CHECK: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0v2i16(<2 x i16>* %{{.*}}, i32 4) - //CHECK: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0i16(i16* nonnull %{{.*}}, i32 2) //CHECK-OPAQUE: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0(ptr %{{.*}}, i32 4) //CHECK-OPAQUE: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0(ptr nonnull %{{.*}}, i32 2) auto cached_s3 = ldg(&in_s3[0]); - //CHECK: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0v2i32(<2 x i32>* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0(ptr %{{.*}}, i32 8) auto cached_i2 = ldg(&in_i2[0]); - //CHECK: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0v2i32(<2 x i32>* %{{.*}}, i32 8) - //CHECK: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0i32(i32* nonnull %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0(ptr %{{.*}}, i32 8) //CHECK-OPAQUE: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0(ptr nonnull %{{.*}}, i32 4) auto cached_i3 = ldg(&in_i3[0]); - //CHECK: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0v2i{{32|64}}(<2 x i{{32|64}}>* %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0(ptr %{{.*}}, i32 {{8|16}}) auto cached_l2 = ldg(&in_l2[0]); - //CHECK: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0v2i{{32|64}}(<2 x i{{32|64}}>* %{{.*}}, i32 {{8|16}}) - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* nonnull %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0(ptr %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr nonnull %{{.*}}, i32 8) auto cached_l3 = ldg(&in_l3[0]); - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr %{{.*}}, i32 16) auto cached_ll2 = ldg(&in_ll2[0]); - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* %{{.*}}, i32 16) - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* nonnull %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr %{{.*}}, i32 16) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr nonnull %{{.*}}, i32 8) auto cached_ll3 = ldg(&in_ll3[0]); - //CHECK: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0v2i{{32|64}}(<2 x i{{32|64}}>* %{{.*}}, i32 {{8|16}}) - //CHECK: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0v2i{{32|64}}(<2 x i{{32|64}}>* nonnull %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0(ptr %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call <2 x i{{32|64}}> @llvm.nvvm.ldg.global.i.v2i{{32|64}}.p0(ptr nonnull %{{.*}}, i32 {{8|16}}) auto cached_l4 = ldg(&in_l4[0]); - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* %{{.*}}, i32 16) - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* nonnull %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr nonnull %{{.*}}, i32 16) auto cached_ll4 = ldg(&in_ll4[0]); - //CHECK: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0v2i8(<2 x i8>* %{{.*}}, i32 2) //CHECK-OPAQUE: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0(ptr %{{.*}}, i32 2) auto cached_uc2 = ldg(&in_uc2[0]); - //CHECK: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0v2i8(<2 x i8>* %{{.*}}, i32 2) - //CHECK: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0i8(i8* nonnull %{{.*}}, i32 1) //CHECK-OPAQUE: tail call <2 x i8> @llvm.nvvm.ldg.global.i.v2i8.p0(ptr %{{.*}}, i32 2) //CHECK-OPAQUE: tail call i8 @llvm.nvvm.ldg.global.i.i8.p0(ptr nonnull %{{.*}}, i32 1) auto cached_uc3 = ldg(&in_uc3[0]); - //CHECK: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0v2i16(<2 x i16>* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0(ptr %{{.*}}, i32 4) auto cached_us2 = ldg(&in_us2[0]); - //CHECK: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0v2i16(<2 x i16>* %{{.*}}, i32 4) - //CHECK: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0i16(i16* nonnull %{{.*}}, i32 2) //CHECK-OPAQUE: tail call <2 x i16> @llvm.nvvm.ldg.global.i.v2i16.p0(ptr %{{.*}}, i32 4) //CHECK-OPAQUE: tail call i16 @llvm.nvvm.ldg.global.i.i16.p0(ptr nonnull %{{.*}}, i32 2) auto cached_us3 = ldg(&in_us3[0]); - //CHECK: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0v2i32(<2 x i32>* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0(ptr %{{.*}}, i32 8) auto cached_ui2 = ldg(&in_ui2[0]); - //CHECK: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0v2i32(<2 x i32>* %{{.*}}, i32 8) - //CHECK: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0i32(i32* nonnull %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <2 x i32> @llvm.nvvm.ldg.global.i.v2i32.p0(ptr %{{.*}}, i32 8) //CHECK-OPAQUE: tail call i32 @llvm.nvvm.ldg.global.i.i32.p0(ptr nonnull %{{.*}}, i32 4) auto cached_ui3 = ldg(&in_ui3[0]); - //CHECK: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0v2i{{64|32}}(<2 x i{{64|32}}>* %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0(ptr %{{.*}}, i32 {{8|16}}) auto cached_ul2 = ldg(&in_ul2[0]); - //CHECK: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0v2i{{64|32}}(<2 x i{{64|32}}>* %{{.*}}, i32 {{8|16}}) - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* nonnull %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0(ptr %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr nonnull %{{.*}}, i32 8) auto cached_ul3 = ldg(&in_ul3[0]); - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr %{{.*}}, i32 16) auto cached_ull2 = ldg(&in_ull2[0]); - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* %{{.*}}, i32 16) - //CHECK: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0i64(i64* nonnull %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr %{{.*}}, i32 16) //CHECK-OPAQUE: tail call i64 @llvm.nvvm.ldg.global.i.i64.p0(ptr nonnull %{{.*}}, i32 8) auto cached_ull3 = ldg(&in_ull3[0]); - //CHECK: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0v2i{{64|32}}(<2 x i{{64|32}}>* %{{.*}}, i32 {{8|16}}) - //CHECK: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0v2i{{64|32}}(<2 x i{{64|32}}>* nonnull %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0(ptr %{{.*}}, i32 {{8|16}}) //CHECK-OPAQUE: tail call <2 x i{{64|32}}> @llvm.nvvm.ldg.global.i.v2i{{64|32}}.p0(ptr nonnull %{{.*}}, i32 {{8|16}}) auto cached_ul4 = ldg(&in_ul4[0]); - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* %{{.*}}, i32 16) - //CHECK: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0v2i64(<2 x i64>* nonnull %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <2 x i64> @llvm.nvvm.ldg.global.i.v2i64.p0(ptr nonnull %{{.*}}, i32 16) auto cached_ull4 = ldg(&in_ull4[0]); - //CHECK: tail call <4 x i8> @llvm.nvvm.ldg.global.i.v4i8.p0v4i8(<4 x i8>* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <4 x i8> @llvm.nvvm.ldg.global.i.v4i8.p0(ptr %{{.*}}, i32 4) auto cached_c4 = ldg(&in_c4[0]); - //CHECK: tail call <4 x i8> @llvm.nvvm.ldg.global.i.v4i8.p0v4i8(<4 x i8>* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <4 x i8> @llvm.nvvm.ldg.global.i.v4i8.p0(ptr %{{.*}}, i32 4) auto cached_sc4 = ldg(&in_sc4[0]); - //CHECK: tail call <4 x i16> @llvm.nvvm.ldg.global.i.v4i16.p0v4i16(<4 x i16>* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <4 x i16> @llvm.nvvm.ldg.global.i.v4i16.p0(ptr %{{.*}}, i32 8) auto cached_s4 = ldg(&in_s4[0]); - //CHECK: tail call <4 x i32> @llvm.nvvm.ldg.global.i.v4i32.p0v4i32(<4 x i32>* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <4 x i32> @llvm.nvvm.ldg.global.i.v4i32.p0(ptr %{{.*}}, i32 16) auto cached_i4 = ldg(&in_i4[0]); - //CHECK: tail call <4 x i8> @llvm.nvvm.ldg.global.i.v4i8.p0v4i8(<4 x i8>* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call <4 x i8> @llvm.nvvm.ldg.global.i.v4i8.p0(ptr %{{.*}}, i32 4) auto cached_uc4 = ldg(&in_uc4[0]); - //CHECK: tail call <4 x i16> @llvm.nvvm.ldg.global.i.v4i16.p0v4i16(<4 x i16>* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call <4 x i16> @llvm.nvvm.ldg.global.i.v4i16.p0(ptr %{{.*}}, i32 8) auto cached_us4 = ldg(&in_us4[0]); - //CHECK: tail call <4 x i32> @llvm.nvvm.ldg.global.i.v4i32.p0v4i32(<4 x i32>* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call <4 x i32> @llvm.nvvm.ldg.global.i.v4i32.p0(ptr %{{.*}}, i32 16) auto cached_ui4 = ldg(&in_ui4[0]); }); diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-bfloat16-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-bfloat16-test.cpp index f7da4ab4f83cd..80b67b14a55ac 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-bfloat16-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-bfloat16-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include @@ -45,25 +44,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.row.row.bf16(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.row.row.bf16(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -81,25 +75,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.col.col.bf16(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.col.col.bf16(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -117,25 +106,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.row.row.bf16(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.row.row.bf16(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -153,25 +137,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.col.col.bf16(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.col.col.bf16(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -189,25 +168,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.row.row.bf16(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.row.row.bf16(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -225,25 +199,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.bf16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.bf16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.col.col.bf16(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.col.col.bf16(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-double-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-double-test.cpp index 13094c3d78484..31f77dc55b16f 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-double-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-double-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include @@ -55,25 +54,20 @@ int main() { joint_matrix sub_b{}; - //CHECK: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.load.c.row.stride.f64.p1f64(double addrspace(1)* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.load.c.row.stride.f64.p1(ptr addrspace(1) %{{.*}}, i32 8) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), N, layout::row_major); - //CHECK: tail call double @llvm.nvvm.wmma.m8n8k4.load.a.row.stride.f64.p1f64(double addrspace(1)* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call double @llvm.nvvm.wmma.m8n8k4.load.a.row.stride.f64.p1(ptr addrspace(1) %{{.*}}, i32 4) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), K); - //CHECK: tail call double @llvm.nvvm.wmma.m8n8k4.load.b.row.stride.f64.p1f64(double addrspace(1)* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call double @llvm.nvvm.wmma.m8n8k4.load.b.row.stride.f64.p1(ptr addrspace(1) %{{.*}}, i32 8) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), N); - //CHECK: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.mma.row.row.f64(double %{{.*}}, double %{{.*}}, double %{{.*}}, double {{.*}} //CHECK-OPAQUE: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.mma.row.row.f64(double {{.*}}, double {{.*}}, double {{.*}}, double {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - //CHECK: tail call void @llvm.nvvm.wmma.m8n8k4.store.d.row.stride.f64.p1f64(double addrspace(1)* %{{.*}}, double %{{.*}}, double %{{.*}}, i32 8) //CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n8k4.store.d.row.stride.f64.p1(ptr addrspace(1) %{{.*}}, double {{.*}}, double {{.*}}, i32 8) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -91,25 +85,20 @@ int main() { joint_matrix sub_b{}; - //CHECK: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.load.c.col.stride.f64.p1f64(double addrspace(1)* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.load.c.col.stride.f64.p1(ptr addrspace(1) %{{.*}}, i32 8) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), M, layout::col_major); - //CHECK: tail call double @llvm.nvvm.wmma.m8n8k4.load.a.col.stride.f64.p1f64(double addrspace(1)* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call double @llvm.nvvm.wmma.m8n8k4.load.a.col.stride.f64.p1(ptr addrspace(1) %{{.*}}, i32 8) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), M); - //CHECK: tail call double @llvm.nvvm.wmma.m8n8k4.load.b.col.stride.f64.p1f64(double addrspace(1)* %{{.*}}, i32 4) //CHECK-OPAQUE: tail call double @llvm.nvvm.wmma.m8n8k4.load.b.col.stride.f64.p1(ptr addrspace(1) %{{.*}}, i32 4) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), K); - //CHECK: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.mma.col.col.f64(double %{{.*}}, double %{{.*}}, double %{{.*}}, double {{.*}} //CHECK-OPAQUE: tail call { double, double } @llvm.nvvm.wmma.m8n8k4.mma.col.col.f64(double {{.*}}, double {{.*}}, double {{.*}}, double {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - //CHECK: tail call void @llvm.nvvm.wmma.m8n8k4.store.d.col.stride.f64.p1f64(double addrspace(1)* %{{.*}}, double %{{.*}}, double %{{.*}}, i32 8) //CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n8k4.store.d.col.stride.f64.p1(ptr addrspace(1) %{{.*}}, double {{.*}}, double {{.*}}, i32 8) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-float-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-float-test.cpp index 7f4c5e30ab3bf..7c24179022d55 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-float-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-float-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include @@ -44,25 +43,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.row.row.f32.f32(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.row.row.f32.f32(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -80,25 +74,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.col.col.f32.f32(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.mma.col.col.f32.f32(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -116,25 +105,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.row.row.f32.f32(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.row.row.f32.f32(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -152,25 +136,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.col.col.f32.f32(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m32n8k16.mma.col.col.f32.f32(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -188,25 +167,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.row.row.f32.f32(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.row.row.f32.f32(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -224,25 +198,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.col.col.f32.f32(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float {{.*}} // CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m8n32k16.mma.col.col.f32.f32(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.f32.p1f32(float addrspace(1)* %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, float %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.f32.p1(ptr addrspace(1) %{{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-half-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-half-test.cpp index d651b6ad9b926..0e0b4ce903be2 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-half-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-half-half-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include @@ -44,25 +43,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.mma.row.row.f16.f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> {{.*}} // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.mma.row.row.f16.f16(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f16.p0i32(i32* %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f16.p0(ptr %{{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -80,25 +74,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.mma.col.col.f16.f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> {{.*}} // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m16n16k16.mma.col.col.f16.f16(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f16.p0i32(i32* %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f16.p0(ptr %{{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -116,25 +105,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.mma.row.row.f16.f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> {{.*}} // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.mma.row.row.f16.f16(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.f16.p0i32(i32* %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.f16.p0(ptr %{{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -152,25 +136,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.mma.col.col.f16.f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> {{.*}} // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m32n8k16.mma.col.col.f16.f16(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.f16.p0i32(i32* %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.f16.p0(ptr %{{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -188,25 +167,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.mma.row.row.f16.f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> {{.*}} // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.mma.row.row.f16.f16(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.f16.p0i32(i32* %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.f16.p0(ptr %{{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -224,25 +198,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.f16.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.f16.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.mma.col.col.f16.f16(<2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> {{.*}} // CHECK-OPAQUE: tail call { <2 x half>, <2 x half>, <2 x half>, <2 x half> } @llvm.nvvm.wmma.m8n32k16.mma.col.col.f16.f16(<2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.f16.p0i32(i32* %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, <2 x half> %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.f16.p0(ptr %{{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, <2 x half> {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-int8-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-int8-test.cpp index da075d5bbfd87..575039723d56e 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-int8-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-int8-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_72 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_72 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_72 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include @@ -44,25 +43,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.row.row.s8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.row.row.s8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -80,25 +74,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.col.col.s8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.col.col.s8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -116,25 +105,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.row.row.s8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.row.row.s8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -152,25 +136,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.col.col.s8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.col.col.s8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -188,25 +167,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.row.row.s8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.row.row.s8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -224,25 +198,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.s8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.s8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.col.col.s8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.col.col.s8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-tf32-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-tf32-test.cpp index 9ae46e6256bed..8ada375fff395 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-tf32-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-tf32-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE // IMPORTANT: before updating sm version support beyond sm_90 read the following // NOTE! @@ -67,23 +66,19 @@ int main() { sub_b{}; joint_matrix sub_c{}; - //CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.a.row.stride.tf32.p0i32(i32* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.a.row.stride.tf32.p0(ptr %{{.*}}, i32 8) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), K); - //CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.b.row.stride.tf32.p0i32(i32* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.b.row.stride.tf32.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), N); - //CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f32.p1f32(float addrspace(1)* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.f32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), N, layout::row_major); - // CHECK: tail call i32 @llvm.nvvm.f2tf32.rna(float {{.*}} // Round a, b to tf32 for (auto i = 0; i < 4; ++i) get_wi_data(sg, sub_a)[i] = @@ -93,9 +88,7 @@ int main() { get_wi_data(sg, sub_b)[i] = round_to_tf32(get_wi_data(sg, sub_b)[i]); - //CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k8.mma.row.row.tf32(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 %{{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - //CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f32.p1f32(float addrspace(1)* {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 {{.*}} //CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.f32.p1(ptr addrspace(1) {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 {{.*}} joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -122,23 +115,19 @@ int main() { sub_b{}; joint_matrix sub_c{}; - //CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.a.col.stride.tf32.p0i32(i32* %{{.*}}, i32 8) //CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.a.col.stride.tf32.p0(ptr %{{.*}}, i32 8) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), K); - //CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.b.col.stride.tf32.p0i32(i32* %{{.*}}, i32 16) //CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k8.load.b.col.stride.tf32.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), N); - //CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f32.p1f32(float addrspace(1)* {{.*}}, i32 {{.*}}) //CHECK-OPAQUE: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.f32.p1(ptr addrspace(1) {{.*}}, i32 {{.*}}) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), N, layout::col_major); - // CHECK: tail call i32 @llvm.nvvm.f2tf32.rna(float {{.*}} // Round a, b to tf32 for (auto i = 0; i < 4; ++i) get_wi_data(sg, sub_a)[i] = @@ -148,9 +137,7 @@ int main() { get_wi_data(sg, sub_b)[i] = round_to_tf32(get_wi_data(sg, sub_b)[i]); - //CHECK: tail call { float, float, float, float, float, float, float, float } @llvm.nvvm.wmma.m16n16k8.mma.col.col.tf32(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - //CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f32.p1f32(float addrspace(1)* {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) //CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.f32.p1(ptr addrspace(1) {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, float {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), diff --git a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-uint8-test.cpp b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-uint8-test.cpp index 3fb078ab306dd..69bc136e79776 100644 --- a/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-uint8-test.cpp +++ b/sycl/test/check_device_code/cuda/matrix/matrix-nvptx-uint8-test.cpp @@ -1,7 +1,6 @@ // REQUIRES: cuda -// RUN: %clangxx -Xclang -no-opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_72 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s -// RUN: %clangxx -Xclang -opaque-pointers -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_72 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE +// RUN: %clangxx -fsycl-device-only -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_72 -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4 -S -Xclang -emit-llvm %s -o -| FileCheck %s --check-prefixes=CHECK-OPAQUE #include @@ -44,25 +43,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.row.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.row.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.row.row.u8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.row.row.u8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -80,25 +74,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.c.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.a.col.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32 } @llvm.nvvm.wmma.m16n16k16.load.b.col.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.col.col.u8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m16n16k16.mma.col.col.u8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m16n16k16.store.d.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -116,25 +105,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.row.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.row.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.row.row.u8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.row.row.u8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -152,25 +136,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.c.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.load.a.col.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m32n8k16.load.b.col.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.col.col.u8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m32n8k16.mma.col.col.u8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m32n8k16.store.d.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -188,25 +167,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::row_major); - // CHECK: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.row.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.row.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.row.row.u8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.row.row.u8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.row.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(), @@ -224,25 +198,20 @@ int main() { joint_matrix sub_b{}; - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.c.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 16) joint_matrix_load( sg, sub_c, accC.template get_multi_ptr(), stride, layout::col_major); - // CHECK: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call i32 @llvm.nvvm.wmma.m8n32k16.load.a.col.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_a, accA.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.u8.p0i32(i32* %{{.*}}, i32 16) // CHECK-OPAQUE: tail call { i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.load.b.col.stride.u8.p0(ptr %{{.*}}, i32 16) joint_matrix_load( sg, sub_b, accB.template get_multi_ptr(), stride); - // CHECK: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.col.col.u8(i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 {{.*}} // CHECK-OPAQUE: tail call { i32, i32, i32, i32, i32, i32, i32, i32 } @llvm.nvvm.wmma.m8n32k16.mma.col.col.u8(i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}) sub_c = joint_matrix_mad(sg, sub_a, sub_b, sub_c); - // CHECK: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.s32.p1i32(i32 addrspace(1)* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 %{{.*}}, i32 16) // CHECK-OPAQUE: tail call void @llvm.nvvm.wmma.m8n32k16.store.d.col.stride.s32.p1(ptr addrspace(1) %{{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 {{.*}}, i32 16) joint_matrix_store( sg, sub_c, accD.template get_multi_ptr(),