================
@@ -387,3 +390,91 @@ let Features = "movrs,avx10.2", Attributes = [NoThrow, 
RequiredVectorWidth<256>]
 let Features = "movrs,avx10.2", Attributes = [NoThrow, 
RequiredVectorWidth<512>] in {
   def vmovrsw512 : X86Builtin<"_Vector<32, short>(_Vector<32, short const 
*>)">;
 }
+
+// ACE (AI Compute Extensions) builtins.
+// Tile movement - a single builtin handles both the immediate and register 
index
+// forms; the lowering code checks whether the index is constant and selects 
the
+// appropriate instruction.
+let Features = "acev1", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
+  def tilemovcolinsert : X86Builtin<"void(_Constant unsigned char, _Vector<16, 
int>, unsigned int)">;
+  // ACE tilemovrow writes to the tile, whereas AMX tilemovrow reads from it.
+  def tilemovrowinsert : X86Builtin<"void(_Constant unsigned char, _Vector<16, 
int>, unsigned int)">;
+  def acev1_tilemovrowextract : X86Builtin<"_Vector<16, int>(_Constant 
unsigned char, unsigned int)">;
+}
+
+// Shared instructions - user-facing (immediate tile ID).
+let Features = "acev1", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
+  def acev1_tilezero : X86Builtin<"void(_Constant unsigned char)">;
----------------
ganeshgit wrote:

Yes modified it. Now we have ACE and AMX tilezero handled separately.

https://github.com/llvm/llvm-project/pull/208408
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to