Skip to content

Commit 23a0bdc

Browse files
mshelegoigcbot
authored andcommitted
Enable legacy memory intrinsic translation by default
.
1 parent fb1b7d6 commit 23a0bdc

File tree

10 files changed

+27
-17
lines changed

10 files changed

+27
-17
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenX.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ def : Proc<"XeHPG", [
383383
FeatureMultiIndirectByteRegioning,
384384
FeatureSLM128K,
385385
FeatureThreadPayloadInMemory,
386+
FeatureTransLegacy,
386387
]>;
387388

388389
def : Proc<"XeLPG", [
@@ -404,6 +405,7 @@ def : Proc<"XeLPG", [
404405
FeatureMultiIndirectByteRegioning,
405406
FeatureSLM128K,
406407
FeatureThreadPayloadInMemory,
408+
FeatureTransLegacy,
407409
]>;
408410

409411
def : Proc<"XeLPGPlus", [
@@ -425,6 +427,7 @@ def : Proc<"XeLPGPlus", [
425427
FeatureMultiIndirectByteRegioning,
426428
FeatureSLM128K,
427429
FeatureThreadPayloadInMemory,
430+
FeatureTransLegacy,
428431
]>;
429432

430433
def : Proc<"XeHPC", [
@@ -451,6 +454,7 @@ def : Proc<"XeHPC", [
451454
FeatureSLM128K,
452455
FeatureSwitchjmp,
453456
FeatureThreadPayloadInMemory,
457+
FeatureTransLegacy,
454458
]>;
455459

456460
def : Proc<"XeHPCVG", [
@@ -477,6 +481,7 @@ def : Proc<"XeHPCVG", [
477481
FeatureSLM128K,
478482
FeatureSwitchjmp,
479483
FeatureThreadPayloadInMemory,
484+
FeatureTransLegacy,
480485
]>;
481486

482487
def : Proc<"Xe2", [

IGC/VectorCompiler/test/CisaBuilder/math_f16.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;=========================== begin_copyright_notice ============================
22
;
3-
; Copyright (C) 2023 Intel Corporation
3+
; Copyright (C) 2023-2024 Intel Corporation
44
;
55
; SPDX-License-Identifier: MIT
66
;
@@ -14,6 +14,7 @@
1414

1515
; COM: ;;;;;;;;;; CHECKERS ;;;;;;;;;;
1616

17+
; CHECK: .decl {{V[^ ]+}} v_type=G type=hf num_elts=8
1718
; CHECK: .decl [[SRC:V[^ ]+]] v_type=G type=hf num_elts=8
1819
; CHECK: cos (M1, 8) [[COS:V[^ ]+]](0,0)<1> [[SRC]](0,0)<1;1,0>
1920
; CHECK: exp (M1, 8) [[EXP:V[^ ]+]](0,0)<1> [[SRC]](0,0)<1;1,0>

IGC/VectorCompiler/test/CisaBuilder/math_f32.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;=========================== begin_copyright_notice ============================
22
;
3-
; Copyright (C) 2023 Intel Corporation
3+
; Copyright (C) 2023-2024 Intel Corporation
44
;
55
; SPDX-License-Identifier: MIT
66
;
@@ -14,6 +14,7 @@
1414

1515
; COM: ;;;;;;;;;; CHECKERS ;;;;;;;;;;
1616

17+
; CHECK: .decl {{V[^ ]+}} v_type=G type=f num_elts=8
1718
; CHECK: .decl [[SRC:V[^ ]+]] v_type=G type=f num_elts=8
1819
; CHECK: cos (M1, 8) [[COS:V[^ ]+]](0,0)<1> [[SRC]](0,0)<1;1,0>
1920
; CHECK: exp (M1, 8) [[EXP:V[^ ]+]](0,0)<1> [[SRC]](0,0)<1;1,0>

IGC/VectorCompiler/test/CisaBuilder/rdtsc.ll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@
1414

1515
; COM: ;;;;;;;;;; CHECKERS ;;;;;;;;;;
1616

17+
; CHECK: .decl [[SURF:V[^ ]+]] v_type=G type=d num_elts=1 align=dword
1718
; CHECK: .decl [[TMC_1:V[^ ]+]] v_type=G type=q num_elts=1 align=qword
1819
; CHECK: .decl [[TMC_2:V[^ ]+]] v_type=G type=q num_elts=1 align=qword
1920
; CHECK: .decl [[RES:V[^ ]+]] v_type=G type=d num_elts=8 align=GRF
21+
; CHECK: .decl [[ALIAS_SURF:V[^ ]+]] v_type=G type=ud num_elts=1 alias=<[[SURF]], 0>
2022
; CHECK: .decl [[ALIAS_1:V[^ ]+]] v_type=G type=d num_elts=2 alias=<[[TMC_1]], 0>
2123
; CHECK: .decl [[ALIAS_2:V[^ ]+]] v_type=G type=d num_elts=2 alias=<[[TMC_2]], 0>
2224
; CHECK: .decl [[ALIAS_RES:V[^ ]+]] v_type=G type=q num_elts=4 alias=<[[RES]], 0>
2325
; CHECK: .decl [[SURFACE:T[^ ]+]] v_type=T num_elts=1
2426

27+
; CHECK: movs (M1, 1) [[ALIAS_SURF]](0,0)<1> [[SURFACE]](0)
2528
; CHECK: mov (M1, 2) [[ALIAS_1]](0,0)<1> %tsc(0,0)<1;1,0>
2629
; CHECK: mov (M1, 2) [[ALIAS_2]](0,0)<1> %tsc(0,0)<1;1,0>
2730
; CHECK: mov (M1, 1) [[ALIAS_RES]](0,0)<1> [[TMC_1]](0,0)<0;1,0>
2831
; CHECK: mov (M1, 1) [[ALIAS_RES]](0,1)<1> [[TMC_2]](0,0)<0;1,0>
29-
; CHECK: oword_st (2) [[SURFACE]] 0x0:ud [[RES]]
32+
; CHECK: lsc_store.ugm (M1, 1) bti([[SURF]])[{{V[^ ]+}}]:a32 [[RES]]:d32x8t
3033

3134
; COM: ;;;;;;;;;; KERNEL ;;;;;;;;;;
3235

IGC/VectorCompiler/test/GenXLegacyToLscTranslator/atomic.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
;=========================== begin_copyright_notice ============================
22
;
3-
; Copyright (C) 2023 Intel Corporation
3+
; Copyright (C) 2023-2024 Intel Corporation
44
;
55
; SPDX-License-Identifier: MIT
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -mattr=+translate_legacy_message -S < %s 2>&1 | FileCheck %s
9+
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -S < %s 2>&1 | FileCheck %s
1010

1111
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1212
target triple = "genx64-unknown-unknown"

IGC/VectorCompiler/test/GenXLegacyToLscTranslator/gather-scatter.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
;=========================== begin_copyright_notice ============================
22
;
3-
; Copyright (C) 2023 Intel Corporation
3+
; Copyright (C) 2023-2024 Intel Corporation
44
;
55
; SPDX-License-Identifier: MIT
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -mattr=+translate_legacy_message -S < %s 2>&1 | FileCheck %s
9+
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator \
10+
; RUN: -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -S < %s 2>&1 | FileCheck %s
1011

1112
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1213
target triple = "genx64-unknown-unknown"

IGC/VectorCompiler/test/GenXLegacyToLscTranslator/gather4-scatter4.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
;=========================== begin_copyright_notice ============================
22
;
3-
; Copyright (C) 2023 Intel Corporation
3+
; Copyright (C) 2023-2024 Intel Corporation
44
;
55
; SPDX-License-Identifier: MIT
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -mattr=+translate_legacy_message -S < %s 2>&1 | FileCheck %s
9+
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator \
10+
; RUN: -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -S < %s 2>&1 | FileCheck %s
1011

1112
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1213
target triple = "genx64-unknown-unknown"

IGC/VectorCompiler/test/GenXLegacyToLscTranslator/media-block-ld.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
; RUN: -mtriple=spir64-unknown-unknown -S < %s | FileCheck %s
1111

1212
; RUN: %opt %use_old_pass_manager% -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPG \
13-
; RUN: -mattr=+translate_legacy_message -mtriple=spir64-unknown-unknown -S < %s | \
14-
; RUN: FileCheck --check-prefix=NOTYPED %s
13+
; RUN: -mtriple=spir64-unknown-unknown -S < %s | FileCheck --check-prefix=NOTYPED %s
1514

1615
; COM: media.ld -> llvm.vc.internal.lsc.load.2d.tgm.bti
1716

IGC/VectorCompiler/test/GenXLegacyToLscTranslator/media-block-st.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
;============================ end_copyright_notice =============================
88

99
; RUN: %opt %use_old_pass_manager% -GenXLegacyToLscTranslator -march=genx64 -mcpu=Xe2 \
10-
; RUN: -mattr=+translate_legacy_message -mtriple=spir64-unknown-unknown -S < %s | \
11-
; RUN: FileCheck %s
10+
; RUN: -mtriple=spir64-unknown-unknown -S < %s | FileCheck %s
1211

1312
; RUN: %opt %use_old_pass_manager% -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPG \
14-
; RUN: -mattr=+translate_legacy_message -mtriple=spir64-unknown-unknown -S < %s | \
15-
; RUN: FileCheck --check-prefix=NOTYPED %s
13+
; RUN: -mtriple=spir64-unknown-unknown -S < %s | FileCheck --check-prefix=NOTYPED %s
1614

1715
; COM: media.st -> llvm.genx.lsc.store2d.typed.bti
1816

IGC/VectorCompiler/test/GenXLegacyToLscTranslator/oword.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
;=========================== begin_copyright_notice ============================
22
;
3-
; Copyright (C) 2023 Intel Corporation
3+
; Copyright (C) 2023-2024 Intel Corporation
44
;
55
; SPDX-License-Identifier: MIT
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -mattr=+translate_legacy_message -S < %s 2>&1 | FileCheck %s
9+
; RUN: %opt %use_old_pass_manager% -enable-debugify -GenXLegacyToLscTranslator \
10+
; RUN: -march=genx64 -mcpu=XeHPC -mtriple=spir64-unknown-unknown -S < %s 2>&1 | FileCheck %s
1011

1112
target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
1213
target triple = "genx64-unknown-unknown"

0 commit comments

Comments
 (0)