-
- Downloads
[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
Showing
- clang/include/clang/Basic/BuiltinsPPC.def 7 additions, 0 deletionsclang/include/clang/Basic/BuiltinsPPC.def
- clang/lib/Basic/Targets/PPC.cpp 6 additions, 0 deletionsclang/lib/Basic/Targets/PPC.cpp
- clang/lib/CodeGen/CGBuiltin.cpp 12 additions, 0 deletionsclang/lib/CodeGen/CGBuiltin.cpp
- clang/lib/Sema/SemaChecking.cpp 27 additions, 0 deletionsclang/lib/Sema/SemaChecking.cpp
- clang/test/CodeGen/PowerPC/builtins-ppc.c 28 additions, 0 deletionsclang/test/CodeGen/PowerPC/builtins-ppc.c
- clang/test/Sema/builtins-ppc.c 28 additions, 0 deletionsclang/test/Sema/builtins-ppc.c
- llvm/include/llvm/IR/IntrinsicsPowerPC.td 31 additions, 0 deletionsllvm/include/llvm/IR/IntrinsicsPowerPC.td
- llvm/lib/Target/PowerPC/PPCISelLowering.cpp 26 additions, 0 deletionsllvm/lib/Target/PowerPC/PPCISelLowering.cpp
- llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-maxmin.ll 257 additions, 0 deletionsllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-maxmin.ll
Loading
Please register or sign in to comment