[all-commits] [llvm/llvm-project] b38935: [Clang][PowerPC] Add max/min intrinsics to Clang a...
orcguru via All-commits
all-commits at lists.llvm.org
Tue Apr 5 19:48:23 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b389354b285744f700fd9372c8707fa056d7cb37
https://github.com/llvm/llvm-project/commit/b389354b285744f700fd9372c8707fa056d7cb37
Author: Ting Wang <Ting.Wang.SH at ibm.com>
Date: 2022-04-05 (Tue, 05 Apr 2022)
Changed paths:
M clang/include/clang/Basic/BuiltinsPPC.def
M clang/lib/Basic/Targets/PPC.cpp
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Sema/SemaChecking.cpp
M clang/test/CodeGen/PowerPC/builtins-ppc.c
M clang/test/Sema/builtins-ppc.c
M llvm/include/llvm/IR/IntrinsicsPowerPC.td
M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
A llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-maxmin.ll
Log Message:
-----------
[Clang][PowerPC] Add max/min intrinsics to Clang and PPC backend
Add support for builtin_[max|min] which has below prototype:
A builtin_max (A1, A2, A3, ...)
All arguments must have the same type; they must all be float, double, or long double.
Internally use SelectCC to get the result.
Reviewed By: qiucf
Differential Revision: https://reviews.llvm.org/D122478
More information about the All-commits
mailing list