[PATCH] D103050: [CodeGen] Refactor libcall lookups for RTLIB::POWI_*
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 24 14:44:33 PDT 2021
bjope created this revision.
bjope added a reviewer: efriedma.
Herald added a subscriber: hiraditya.
bjope requested review of this revision.
Herald added a project: LLVM.
Use RuntimeLibcalls to get a common way to pick correct RTLIB::POWI_*
libcall for a given value type.
This includes a small refactoring of ExpandFPLibCall and
ExpandArgFPLibCall in SelectionDAGLegalize to share a bit of code,
plus adding an ExpandFPLibCall version that can be called directly
when expanding FPOWI/STRICT_FPOWI to ensure that we actually use
the same RTLIB::Libcall when expanding the libcall as we used when
checking the legality of such a call by doing a getLibcallName check.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103050
Files:
llvm/include/llvm/CodeGen/RuntimeLibcalls.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103050.347510.patch
Type: text/x-patch
Size: 11439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210524/bad80a32/attachment.bin>
More information about the llvm-commits
mailing list