[PATCH] D117887: [NVPTX] Expose float tys min, max, abs, neg as builtins
Jakub Chlanda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 21 05:52:16 PST 2022
jchlanda created this revision.
jchlanda added reviewers: csigg, tra, bkramer.
Herald added subscribers: asavonic, hiraditya, jholewinski.
jchlanda requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, jdoerfert.
Herald added projects: clang, LLVM.
Adds support for the following builtins:
- abs, neg:
- bf16,
- bf16x2
- min, max
- f16, f16 ftz, f16 nan, f16 nan ftz
- f16x2, f16x2 ftz, f16x2 nan, f16x2 nan ftz
- bf16, bf16 nan
- bf16x2, bf16x2 nan
- f32 ftz, f32 nan, f32 nan ftz
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117887
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/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: D117887.401965.patch
Type: text/x-patch
Size: 39821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220121/da696af3/attachment-0001.bin>
More information about the cfe-commits
mailing list