Skip to content

Commit ac5bbd1

Browse files
igorban-inteligcbot
authored andcommitted
Modify tests for execute with new-pm plugin
.
1 parent 4a967b4 commit ac5bbd1

File tree

160 files changed

+816
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+816
-334
lines changed

IGC/VectorCompiler/include/GenXPassRegistry.def

+1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ FUNCTION_PASS("GenXStatePointerFence", GenXStatePointerFencePass())
4040
FUNCTION_PASS("CMLowerVLoadVStore", CMLowerVLoadVStorePass())
4141
FUNCTION_PASS("GenXTypeLegalization", GenXTypeLegalizationPass())
4242
FUNCTION_PASS("GenXTranslateIntrinsics", GenXTranslateIntrinsicsPass())
43+
FUNCTION_PASS("GenXLowerAggrCopies", GenXLowerAggrCopiesPass())
4344

4445
#undef FUNCTION_PASS

IGC/VectorCompiler/include/vc/GenXOpts/CMABI.h

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SPDX-License-Identifier: MIT
1010

1111
namespace llvm {
1212
void initializeCMABIPass(PassRegistry &);
13+
void initializeCMABILegacyPass(PassRegistry &);
1314
}
1415

1516
struct CMABIPass : public llvm::PassInfoMixin<CMABIPass> {

IGC/VectorCompiler/include/vc/GenXOpts/GenXOptsNewPM.h

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class PassRegistry;
4545
#include "GenXPrintfPhiClonning.h"
4646
#include "GenXPrintfResolution.h"
4747
#include "GenXSimplify.h"
48-
#include "GenXStatePointerFence.h"
4948
#include "GenXTrampolineInsertion.h"
5049
#include "GenXTranslateIntrinsics.h"
5150
#include "GenXTranslateSPIRVBuiltins.h"

IGC/VectorCompiler/lib/GenXCodeGen/GenXLowerAggrCopies.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,14 @@ bool GenXLowerAggrCopies::runOnFunction(Function &F) {
223223
if (doLinearExpand) {
224224
expandMemMov2VecLoadStore(Memcpy);
225225
} else {
226-
#if LLVM_VERSION_MAJOR < 16
226+
#if LLVM_VERSION_MAJOR >= 16
227+
if (!TTIp) {
228+
const TargetTransformInfo &TTI = getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F);
229+
#endif
227230
expandMemCpyAsLoop(Memcpy, TTI);
228-
#else
229-
expandMemCpyAsLoop(Memcpy, *TTIp);
231+
#if LLVM_VERSION_MAJOR >= 16
232+
}
233+
else expandMemCpyAsLoop(Memcpy, *TTIp);
230234
#endif
231235
}
232236
} else if (MemMoveInst *Memmove = dyn_cast<MemMoveInst>(MemCall)) {

IGC/VectorCompiler/lib/GenXCodeGen/GenXTargetMachine.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ void initializeGenXPasses(PassRegistry &registry) {
199199
#if LLVM_VERSION_MAJOR < 16
200200
initializeCMABILegacyPass(registry);
201201
#else // LLVM_VERSION_MAJOR < 16
202+
initializeCMABILegacyPass(registry);
202203
initializeCMABIPass(registry);
203204
#endif // LLVM_VERSION_MAJOR < 16
204205
initializeCMLowerVLoadVStorePass(registry);

IGC/VectorCompiler/lib/GenXCodeGen/Utils/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ set(CISA_JSON_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cisa_gen_intrinsics.json")
1212
set(CISA_OUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/../")
1313
set(CISA_OUT_FILES "${CISA_OUT_PATH}/GenXIntrinsicInfoTable.inc"
1414
"${CISA_OUT_PATH}/GenXIntrinsicsBuildMap.inc")
15-
message(" >>${CISA_OUT_PATH}<< -> ${CMAKE_CURRENT_BINARY_DIR}")
16-
message(" COMMAND -> ${PYTHON_EXECUTABLE} ${CISA_GEN_INTRINSICS} ${CISA_JSON_FILE} ${CISA_OUT_PATH} <-")
17-
message(" ${CMAKE_CURRENT_SOURCE_DIR}")
1815
add_custom_command(
1916
OUTPUT ${CISA_OUT_FILES}
2017
COMMAND ${PYTHON_EXECUTABLE} ${CISA_GEN_INTRINSICS} ${CISA_JSON_FILE} ${CISA_OUT_PATH}

IGC/VectorCompiler/lib/GenXOpts/CMTrans/CMABI.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,11 @@ void CMABIBase<CallGraphImpl>::diagnoseOverlappingArgs(CallInst *CI) {
10651065

10661066
char CMABILegacy::ID = 0;
10671067
// Can't template CMABILegacy here
1068-
INITIALIZE_PASS_BEGIN(CMABILegacy, "CMABI",
1068+
INITIALIZE_PASS_BEGIN(CMABILegacy, "CMABILegacy",
10691069
"Fix ABI issues for the genx backend", false, false)
10701070
INITIALIZE_PASS_DEPENDENCY(CallGraphWrapperPass)
10711071
INITIALIZE_PASS_DEPENDENCY(CMABIAnalysis)
1072-
INITIALIZE_PASS_END(CMABILegacy, "CMABI", "Fix ABI issues for the genx backend",
1072+
INITIALIZE_PASS_END(CMABILegacy, "CMABILegacy", "Fix ABI issues for the genx backend",
10731073
false, false)
10741074

10751075
#if LLVM_VERSION_MAJOR >= 16

IGC/VectorCompiler/lib/GenXOpts/CMTrans/GenXBTIAssignment.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ ModulePass *createGenXBTIAssignmentPass() {
128128
return new GenXBTIAssignment();
129129
}
130130
} // namespace llvm
131-
#endif
132-
133-
#if LLVM_VERSION_MAJOR >= 16
131+
#else // LLVM_VERSION_MAJOR < 16
134132
PreservedAnalyses
135133
GenXBTIAssignmentPass::run(llvm::Module &M,
136134
llvm::AnalysisManager<llvm::Module> &AM) {

IGC/VectorCompiler/lib/PassPluginLibrary/Plugin.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SPDX-License-Identifier: MIT
99
#include "llvm/Passes/PassBuilder.h"
1010
#include "llvm/Passes/PassPlugin.h"
1111

12+
#include "vc/GenXCodeGen/GenXLowerAggrCopies.h"
1213
#include "vc/GenXCodeGen/GenXVerify.h"
1314
#include "vc/GenXOpts/GenXOptsNewPM.h"
1415
#include "vc/Support/BackendConfig.h"

IGC/VectorCompiler/test/BTIAssignment/debug_shift.ll

+10-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88

99
; Check that bti assignment starts from 1 if debuggable kernels needed.
1010

11-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -vc-reserve-bti-zero -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_RESERVE
12-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -vc-reserve-bti-zero -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_RESERVE
13-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_NO_RESERVE
14-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_NO_RESERVE
11+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -vc-reserve-bti-zero -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_RESERVE
12+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -vc-reserve-bti-zero -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_RESERVE
13+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_NO_RESERVE
14+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_NO_RESERVE
15+
16+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment -vc-reserve-bti-zero -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_RESERVE
17+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment -vc-reserve-bti-zero -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_RESERVE
18+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_NO_RESERVE
19+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefix=CHECK_NO_RESERVE
20+
1521

1622
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1723
target triple = "spir64-unknown-unknown"

IGC/VectorCompiler/test/BTIAssignment/i32_arg_bindless.ll

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
; Check that bti is assigned to i32 state arguments and
1010
; bindless buffers are still passed as kernel arguments.
1111

12-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -vc-use-bindless-buffers -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=BUF,CHECK-TYPED-PTRS
13-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -vc-use-bindless-buffers -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=BUF,CHECK-OPAQUE-PTRS
14-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -vc-use-bindless-images -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=IMG,CHECK-TYPED-PTRS
15-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -vc-use-bindless-images -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=IMG,CHECK-OPAQUE-PTRS
12+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -vc-use-bindless-buffers -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=BUF,CHECK-TYPED-PTRS
13+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -vc-use-bindless-buffers -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=BUF,CHECK-OPAQUE-PTRS
14+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -vc-use-bindless-images -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=IMG,CHECK-TYPED-PTRS
15+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -vc-use-bindless-images -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=IMG,CHECK-OPAQUE-PTRS
16+
17+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment -vc-use-bindless-buffers -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=BUF,CHECK-TYPED-PTRS
18+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment -vc-use-bindless-buffers -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=BUF,CHECK-OPAQUE-PTRS
19+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment -vc-use-bindless-images -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=IMG,CHECK-TYPED-PTRS
20+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment -vc-use-bindless-images -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=IMG,CHECK-OPAQUE-PTRS
1621

1722
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1823
target triple = "spir64-unknown-unknown"

IGC/VectorCompiler/test/BTIAssignment/i32_args.ll

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
; Check that bti is assigned to i32 state arguments.
1010

11-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
12-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
11+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
12+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
13+
14+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
15+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
1316

1417
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1518
target triple = "spir64-unknown-unknown"

IGC/VectorCompiler/test/BTIAssignment/pointer_args.ll

+9-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88

99
; Check that bti is assigned to opaque pointer state arguments.
1010

11-
; RUN: %opt_typed_ptrs %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS,RAW,RAW-TYPED-PTRS
12-
; RUN: %opt_typed_ptrs %use_old_pass_manager% -GenXBTIAssignment -instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS,CLEAN
13-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,RAW,RAW-OPAQUE-PTRS
14-
; RUN: %opt_llvm-15 %use_old_pass_manager% -GenXBTIAssignment -instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,CLEAN
15-
; RUN: %opt_llvm-16 %use_old_pass_manager% --passes=GenXBTIAssignment,instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,CLEAN
11+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS,RAW,RAW-TYPED-PTRS
12+
; RUN: %opt_legacy_typed %use_old_pass_manager% -GenXBTIAssignment -instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS,CLEAN
13+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,RAW,RAW-OPAQUE-PTRS
14+
; RUN: %opt_legacy_opaque %use_old_pass_manager% -GenXBTIAssignment -instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,CLEAN
15+
16+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS,RAW,RAW-TYPED-PTRS
17+
; RUN: %opt_new_pm_typed -passes=GenXBTIAssignment,instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS,CLEAN
18+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,RAW,RAW-OPAQUE-PTRS
19+
; RUN: %opt_new_pm_opaque -passes=GenXBTIAssignment,instcombine -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS,CLEAN
1620

1721
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1822
target triple = "spir64-unknown-unknown"

IGC/VectorCompiler/test/Baling/mem-ordering.ll

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
; RUN: %opt %use_old_pass_manager% -GenXFuncBaling -print-baling-info -disable-output \
1010
; RUN: -march=genx64 -mcpu=Xe2 -mtriple=spir64-unknown-unknown -S < %s | FileCheck %s
1111

12-
declare <1 x i32> @llvm.genx.lsc.load.slm.v1i32.i1.i32(i1, i8, i8, i8, i16, i32, i8, i8, i8, i8, i32, i32) nounwind readonly
13-
declare void @llvm.genx.lsc.fence.v32i1(<32 x i1>) nounwind
14-
declare <16 x i32> @llvm.genx.wrregioni.v16i32.v1i32.i16.i1(<16 x i32>, <1 x i32>, i32, i32, i32, i16, i32, i1) nounwind readnone
12+
declare <1 x i32> @llvm.genx.lsc.load.slm.v1i32.i1.i32(i1, i8, i8, i8, i16, i32, i8, i8, i8, i8, i32, i32) nounwind readonly willreturn
13+
declare void @llvm.genx.lsc.fence.v32i1(<32 x i1>) nounwind willreturn
14+
declare <16 x i32> @llvm.genx.wrregioni.v16i32.v1i32.i16.i1(<16 x i32>, <1 x i32>, i32, i32, i32, i16, i32, i1) nounwind readnone willreturn
1515

1616
; CHECK-LABEL: test
1717
define <16 x i32> @test(<16 x i32> %val) {

IGC/VectorCompiler/test/CMABI/byval_sret.ll

+14-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,24 @@
99
; UNSUPPORTED: llvm_11_or_less
1010
; COM: default behavior: structure is passed by value if possible + size is less then threshold (see vc-max-cmabi-byval-size option).
1111
; COM: all structures of the test are supposed to be less then this threshold.
12-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-TYPED-PTRS,BIG-ON,BIG-ON-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
13-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-OPAQUE-PTRS,BIG-ON,BIG-ON-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
12+
; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-TYPED-PTRS,BIG-ON,BIG-ON-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
13+
; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-OPAQUE-PTRS,BIG-ON,BIG-ON-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
14+
; RUN: %opt_new_pm_typed -passes=CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-TYPED-PTRS,BIG-ON,BIG-ON-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
15+
; RUN: %opt_new_pm_opaque -passes=CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-OPAQUE-PTRS,BIG-ON,BIG-ON-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
16+
1417

1518
; COM: vc-max-cmabi-byval-size=0: turn off byval generation for CM ABI.
16-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%CMABI -vc-max-cmabi-byval-size=0 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-OFF,SMALL-OFF-TYPED-PTRS,BIG-OFF-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
17-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%CMABI -vc-max-cmabi-byval-size=0 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-OFF,SMALL-OFF-OPAQUE-PTRS,BIG-OFF-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
19+
; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABILegacy -vc-max-cmabi-byval-size=0 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-OFF,SMALL-OFF-TYPED-PTRS,BIG-OFF-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
20+
; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABILegacy -vc-max-cmabi-byval-size=0 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-OFF,SMALL-OFF-OPAQUE-PTRS,BIG-OFF-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
21+
; RUN: %opt_new_pm_typed -passes=CMABI -vc-max-cmabi-byval-size=0 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-OFF,SMALL-OFF-TYPED-PTRS,BIG-OFF-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
22+
; RUN: %opt_new_pm_opaque -passes=CMABI -vc-max-cmabi-byval-size=0 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-OFF,SMALL-OFF-OPAQUE-PTRS,BIG-OFF-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
23+
1824

1925
; COM: vc-max-cmabi-byval-size=8: very small threshold for byval generation for CM ABI.
20-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%CMABI -vc-max-cmabi-byval-size=8 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-TYPED-PTRS,BIG-OFF-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
21-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%CMABI -vc-max-cmabi-byval-size=8 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-OPAQUE-PTRS,BIG-OFF-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
26+
; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABILegacy -vc-max-cmabi-byval-size=8 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-TYPED-PTRS,BIG-OFF-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
27+
; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABILegacy -vc-max-cmabi-byval-size=8 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-OPAQUE-PTRS,BIG-OFF-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
28+
; RUN: %opt_new_pm_typed -passes=CMABI -vc-max-cmabi-byval-size=8 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-TYPED-PTRS,BIG-OFF-TYPED-PTRS,COMMON,COMMON-TYPED-PTRS
29+
; RUN: %opt_new_pm_opaque -passes=CMABI -vc-max-cmabi-byval-size=8 -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=SMALL-ON,SMALL-ON-OPAQUE-PTRS,BIG-OFF-OPAQUE-PTRS,COMMON,COMMON-OPAQUE-PTRS
2230

2331
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
2432
target triple = "spir64-unknown-unknown"

IGC/VectorCompiler/test/CMABI/copy_in_out_simple.ll

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
10-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
9+
; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
10+
; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
11+
12+
; RUN: %opt_new_pm_typed -passes=CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
13+
; RUN: %opt_new_pm_opaque -passes=CMABI -march=genx64 -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
1114

1215
target datalayout = "e-p:64:64-i64:64-n8:16:32"
1316

IGC/VectorCompiler/test/CMABI/debug-bool.ll

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
;
77
;============================ end_copyright_notice =============================
88
;
9-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
10-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
9+
; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
10+
; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
11+
;
12+
; RUN: %opt_new_pm_typed -passes=CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-TYPED-PTRS
13+
; RUN: %opt_new_pm_opaque -passes=CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-OPAQUE-PTRS
14+
;
1115
; ------------------------------------------------
1216
; CMABI
1317
; ------------------------------------------------

IGC/VectorCompiler/test/CMABI/debug-contexpr.ll

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
;
77
;============================ end_copyright_notice =============================
88
;
9-
; RUN: %opt_typed_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s
10-
; RUN: %opt_opaque_ptrs %use_old_pass_manager% %pass_pref%CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s
9+
; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s
10+
; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABILegacy -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s
11+
;
12+
; RUN: %opt_new_pm_typed -passes=CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s
13+
; RUN: %opt_new_pm_opaque -passes=CMABI -march=genx64 -mtriple=spir64-unknown-unknown -mcpu=Gen9 -S < %s | FileCheck %s
14+
;
1115
; ------------------------------------------------
1216
; CMABI
1317
; ------------------------------------------------

0 commit comments

Comments
 (0)