[PATCH] D51370: [X86] Add intrinsics for KADD instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 11:00:32 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.

These are intrinsics for supporting kadd builtins in clang. These builtins are already in gcc to implement intrinsics from icc. Though they are missing from the Intel Intrinsics Guide.

This instruction adds two mask registers together as if they were scalar rather than a vXi1. We might be able to get away with a bitcast to scalar and a normal add instruction, but that would require DAG combine smarts in the backend to recoqnize add+bitcast. For now I'd prefer to go with the easiest implementation so we can get these builtins in to clang with good codegen.


https://reviews.llvm.org/D51370

Files:
  include/llvm/IR/IntrinsicsX86.td
  lib/Target/X86/X86IntrinsicsInfo.h
  test/CodeGen/X86/avx512bw-intrinsics.ll
  test/CodeGen/X86/avx512dq-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51370.162904.patch
Type: text/x-patch
Size: 8239 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180828/fb0d9f45/attachment-0001.bin>


More information about the llvm-commits mailing list