[PATCH] D122567: [X86][AMX] enable amx cast intrinsics in FE.

LuoYuanke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 00:40:30 PDT 2022


LuoYuanke added inline comments.


================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:5413-5415
+        if (PTy->isX86_AMXTy())
+          ArgValue = Builder.CreateIntrinsic(Intrinsic::x86_cast_vector_to_tile,
+                                             {ArgValue->getType()}, {ArgValue});
----------------
xiangzhangllvm wrote:
> Can we fold it in CreateBitCast(ArgValue, PTy) function ?
I don't think so. We have amx specific cast to avoid some unexpected optimization for bitcast.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122567/new/

https://reviews.llvm.org/D122567



More information about the cfe-commits mailing list