This patch adds a convenience class for using FixedPointSemantics
to build fixed-point operations in IR.
RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-August/144025.html
Paths
| Differential D85314
[IR] Add FixedPointBuilder. ClosedPublic Authored by ebevhan on Aug 5 2020, 7:45 AM.
Details
Summary This patch adds a convenience class for using FixedPointSemantics RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-August/144025.html
Diff Detail
Event TimelineComment Actions I'm assuming that you've extracted this code out of the corresponded Clang code and that there's nothing functionally wrong with it. The interface looks fine. Can we add LLVM tests for this, or that too difficult to fit into the existing test infrastructure, and we should just wait to test it by moving Clang to use it? Comment Actions
The conversion code is lifted straight from there, but I did fold the signed/unsigned changes from D82663, so the emission of binops is not strictly the same as Clang currently. Should I split this up? I was thinking it would be better to rely on Clang for the tests here since the amount of duplication it would cause to test in LLVM as well doesn't seem very constructive. Comment Actions
No, I have no objection to that, I think.
Okay. This revision is now accepted and ready to land.Aug 19 2020, 10:28 AM This revision was landed with ongoing or failed builds.Aug 20 2020, 1:31 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 283869 llvm/include/llvm/IR/FixedPointBuilder.h
llvm/include/llvm/module.modulemap
|
clang-format suggested style edits found: