This is an archive of the discontinued LLVM Phabricator instance.

[X86][AMX] enable amx cast intrinsics in FE.
ClosedPublic

Authored by LuoYuanke on Mar 28 2022, 3:07 AM.

Details

Summary

We have some discission in D99152 and llvm-dev and finially come up with
a solution to add amx specific cast intrinsics. We've support the
intrinsics in llvm IR. This patch is to replace bitcast with amx cast
intrinsics in code emitting in FE.

Diff Detail

Event Timeline

LuoYuanke created this revision.Mar 28 2022, 3:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2022, 3:07 AM
Herald added a subscriber: pengfei. · View Herald Transcript
LuoYuanke requested review of this revision.Mar 28 2022, 3:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2022, 3:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
clang/lib/CodeGen/CGBuiltin.cpp
5416–5418

Can we fold it in CreateBitCast(ArgValue, PTy) function ?

LuoYuanke added inline comments.Mar 29 2022, 12:40 AM
clang/lib/CodeGen/CGBuiltin.cpp
5416–5418

I don't think so. We have amx specific cast to avoid some unexpected optimization for bitcast.

xiangzhangllvm added inline comments.Mar 29 2022, 1:00 AM
clang/lib/CodeGen/CGBuiltin.cpp
5416–5418

That is not big issue.
If nobody objected, I'll accept it soon.

This revision is now accepted and ready to land.Mar 29 2022, 10:27 PM
This revision was automatically updated to reflect the committed changes.