[PATCH] D117787: [NVPTX] abs, neg, min, max intrinsics for half types

Jakub Chlanda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 20 07:25:25 PST 2022


jchlanda created this revision.
jchlanda added reviewers: jholewinski, steffenlarsen, asavonic, sebastian-ne.
Herald added a subscriber: hiraditya.
jchlanda requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, jdoerfert.
Herald added projects: clang, LLVM.

This patch extends `abs` and `neg` intrinsics to support `bf16` and `bf16x2` data formats.
Extends `min` and `max` to support `.NaN` modifier and `f16`, `f16x2`, `bf16` and `bf16x2` data formats.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117787

Files:
  clang/include/clang/Basic/BuiltinsNVPTX.def
  clang/test/CodeGen/builtins-nvptx-native-half-type.c
  clang/test/CodeGen/builtins-nvptx.c
  llvm/include/llvm/IR/IntrinsicsNVVM.td
  llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
  llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
  llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
  llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70-instcombine.ll
  llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117787.401636.patch
Type: text/x-patch
Size: 35363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220120/91c46ab7/attachment-0001.bin>


More information about the cfe-commits mailing list