This is an archive of the discontinued LLVM Phabricator instance.

[X86][FP16] Add more builtins to avoid multi evaluation problems & add 2 missed intrinsics
ClosedPublic

Authored by pengfei on Sep 23 2021, 8:14 AM.

Diff Detail

Event Timeline

pengfei requested review of this revision.Sep 23 2021, 8:14 AM
pengfei created this revision.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 23 2021, 8:14 AM
craig.topper added inline comments.Sep 23 2021, 11:12 AM
clang/include/clang/Basic/BuiltinsX86.def
2021

Why move the mask? Its always the last or second to last operand on most if not all builtins.

clang/lib/Headers/avx512fp16intrin.h
3003

This isn't in the intrinsics guide.

pengfei added inline comments.Sep 23 2021, 6:06 PM
clang/include/clang/Basic/BuiltinsX86.def
2021

Just noticed that. Thanks Craig!

clang/lib/Headers/avx512fp16intrin.h
3003

We update the source of intrinsics guide at the same time when we adding new intrinsics. But there's delay between they are displayed on website. I will discuss with website maintainer about the release period.

pengfei updated this revision to Diff 374704.Sep 23 2021, 6:06 PM

Move mask to the second to last operand.

This revision is now accepted and ready to land.Sep 26 2021, 11:06 AM
This revision was landed with ongoing or failed builds.Sep 26 2021, 6:27 PM
This revision was automatically updated to reflect the committed changes.