Skip to content

Commit

Permalink
Add support for XeHPCVG platform
Browse files Browse the repository at this point in the history
.
  • Loading branch information
vmustya authored and sys-cmllvm committed Dec 15, 2023
1 parent 27492a7 commit da892e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,8 @@
###
"dpas" : { "result" : "anyvector",
"arguments" : [0,"anyvector","anyvector","int"],
"attributes" : "NoMem"
"attributes" : "NoMem",
"platforms" : [ "XeHP+", "~XeLPG", "~XeHPCVG" ],
},

### ``llvm.genx.dpas2.<return type>.<vector type>.<vector type>.<vector type>`` : dpas instruction (Dot Product Accumulate Systolic)
Expand All @@ -1604,7 +1605,8 @@
###
"dpas2" : { "result" : "anyvector",
"arguments" : ["anyvector","anyvector","anyvector","int","int", "int", "int", "int", "int"],
"attributes" : "NoMem"
"attributes" : "NoMem",
"platforms" : [ "XeHP+", "~XeLPG", "~XeHPCVG" ],
},

### ``llvm.genx.dpas.nosrc0.<return type>.<vector type>.<vector type>`` : dpas instruction (Dot Product Accumulate Systolic) with no src0
Expand All @@ -1618,7 +1620,8 @@
###
"dpas_nosrc0" : { "result" : "anyvector",
"arguments" : ["anyvector","anyvector","int"],
"attributes" : "NoMem"
"attributes" : "NoMem",
"platforms" : [ "XeHP+", "~XeLPG", "~XeHPCVG" ],
},

### ``llvm.genx.dpasw.<return type>.<vector type>.<vector type>`` : dpasw instruction (Dot Product Accumulate Systolic)
Expand All @@ -1633,7 +1636,9 @@
###
"dpasw" : { "result" : "anyvector",
"arguments" : [0,"anyvector","anyvector","int"],
"attributes" : "NoMem"
"attributes" : "NoMem",
"platforms" : [
"XeHP", "XeHPG", "XeLPGPlus" ],
},

### ``llvm.genx.dpasw.nosrc0.<return type>.<vector type>.<vector type>`` : dpasw instruction (Dot Product Accumulate Systolic) with no src0
Expand All @@ -1647,7 +1652,9 @@
###
"dpasw_nosrc0" : { "result" : "anyvector",
"arguments" : ["anyvector","anyvector","int"],
"attributes" : "NoMem"
"attributes" : "NoMem",
"platforms" : [
"XeHP", "XeHPG", "XeLPGPlus" ],
},

### ``llvm.genx.*dp4a*.<return type>.<vector type>.<vector type>.<vector type>`` : dp4a instruction (Dot Product 4 Accumulate)
Expand Down
3 changes: 2 additions & 1 deletion GenXIntrinsics/include/llvm/GenXIntrinsics/Intrinsics.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"XeLPG",
"XeLPGPlus",
"XeHPC",
"XeHPCVG",
"Xe2",
]

Expand Down Expand Up @@ -572,7 +573,7 @@ def platformExprProcess(curr_line,platf_expr,platforms):
platf_id = platforms.get(platf_expr[1:])
if platf_id is None:
raise NameError("Error in platf in " + str(Intrinsics[ID_array[i]]))
curr_line[j] = 0;
curr_line[platf_id] = 0;
elif platf_expr == "ALL":
curr_line = [1]*len(platforms)
else:
Expand Down

0 comments on commit da892e1

Please sign in to comment.