Skip to content

Commit e7ddd67

Browse files
aparshin-inteligcbot
authored andcommitted
introduce PVCXT_A0 platform
PVCXT_A0 is almost PVCXT, but some functionality is missing
1 parent 8b7db92 commit e7ddd67

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

IGC/VectorCompiler/cmake/supported_platforms_list.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ set(SUPPORTED_VC_PLATFORMS
1414
"ADLS"
1515
"DG2"
1616
"PVC"
17+
"PVCXT_A0"
1718
"PVCXT"
1819
)
1920

IGC/VectorCompiler/lib/GenXCodeGen/GenX.td

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,23 @@ def : Proc<"PVC", [FeatureLongLong, FeatureGRFByteSize64,
249249
FeatureInstr64BitRotate,
250250
FeatureBfMixedModeWidth16,
251251
FeatureHasLSC]>;
252+
def : Proc<"PVCXT_A0", [FeatureLongLong, FeatureGRFByteSize64,
253+
FeatureLSCMaxWidth32,
254+
FeaturePartialI64Emulation,
255+
FeatureSwitchjmp,
256+
FeatureFP64,
257+
FeatureHasPackedFloat,
258+
FeatureThreadPayloadInMemory,
259+
FeatureInstr64BitRotate,
260+
FeatureBfMixedModeWidth16,
261+
FeatureHasLSC]>;
252262
def : Proc<"PVCXT", [FeatureLongLong, FeatureGRFByteSize64,
253263
FeatureLSCMaxWidth32,
254264
FeaturePartialI64Emulation,
255265
FeatureSwitchjmp,
256266
FeatureInstrAdd64,
257267
FeatureFP64,
268+
FeatureHasPackedFloat,
258269
FeatureThreadPayloadInMemory,
259270
FeatureInstr64BitRotate,
260271
FeatureBfMixedModeWidth16,

IGC/VectorCompiler/lib/GenXCodeGen/GenXSubtarget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void GenXSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
6868
.Cases("XEHP", "XEHP_SDV", XE_HP_SDV)
6969
.Case("DG2", XE_DG2)
7070
.Case("PVC", XE_PVC)
71+
.Case("PVCXT_A0", XE_PVCXT_A0)
7172
.Case("PVCXT", XE_PVCXT)
7273
.Default(UNDEFINED_ARCH);
7374

IGC/VectorCompiler/lib/GenXCodeGen/GenXSubtarget.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class GenXSubtarget final : public GenXGenSubtargetInfo {
6767
XE_HP_SDV,
6868
XE_DG2,
6969
XE_PVC,
70+
XE_PVCXT_A0,
7071
XE_PVCXT,
7172
};
7273

@@ -271,11 +272,13 @@ class GenXSubtarget final : public GenXGenSubtargetInfo {
271272
/// * isDG2 - true if target is DG2
272273
bool isDG2() const { return GenXVariant == XE_DG2; }
273274
/// * isPVC - true if target is PVC
274-
bool isPVC() const { return isPVCXL() || isPVCXT(); }
275+
bool isPVC() const { return isPVCXL() || isPVCXT_A0() || isPVCXT(); }
275276

276277
/// * isPVCXT - true if target is PVCXT
277278
bool isPVCXT() const { return GenXVariant == XE_PVCXT; }
278279

280+
/// * isPVCXT_A0 - true if target is PVCXT_A0
281+
bool isPVCXT_A0() const { return GenXVariant == XE_PVCXT_A0; }
279282

280283
/// * isPVCXL - true if target is PVCXL
281284
bool isPVCXL() const { return GenXVariant == XE_PVC; }
@@ -428,6 +431,7 @@ class GenXSubtarget final : public GenXGenSubtargetInfo {
428431
return TARGET_PLATFORM::Xe_DG2;
429432
case XE_PVC:
430433
return TARGET_PLATFORM::Xe_PVC;
434+
case XE_PVCXT_A0:
431435
case XE_PVCXT:
432436
return TARGET_PLATFORM::Xe_PVCXT;
433437
case GENX_KBL:

IGC/common/VCPlatformSelector.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ inline const char *getPlatformStr(PLATFORM Platform, unsigned &RevId) {
6060
RevId &= cmc::ComputeTileMaskPVC;
6161
if (RevId < REVISION_B)
6262
return "PVC";
63-
return "PVCXT";
63+
else if (RevId < REVISION_D)
64+
return "PVCXT_A0"; // PVC XT A0 RevID==0x3==REVISION_B
65+
else
66+
return "PVCXT";
6467
}
6568
default:
6669
break;

0 commit comments

Comments
 (0)