[PATCH] D123363: [SelectionDAG] Update emission of udivmodei5 to latest ABI changes
Matthias Gehre via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 23:52:43 PDT 2022
mgehre-amd created this revision.
mgehre-amd added reviewers: LuoYuanke, pengfei.
Herald added subscribers: ecnelises, hiraditya.
Herald added a project: All.
mgehre-amd requested review of this revision.
Herald added a project: LLVM.
This updates https://reviews.llvm.org/D120329 to the changed interface of
https://reviews.llvm.org/D120327.
In particular:
- We call __udivmodei5 / __divmodei5 instead of __divei4,__udivei4,__modei4,__umodei4 to avoid requiring dynamic allocation
- __udivmodei5/__divmodei5 take the number of words instead of number of bits as argument
- The argument 'a' needs to hold on extra word to allow for implementations that need that scratch space
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123363
Files:
llvm/include/llvm/IR/RuntimeLibcalls.def
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/AArch64/udivmodei5.ll
llvm/test/CodeGen/X86/udivmodei5.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123363.421426.patch
Type: text/x-patch
Size: 60032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220408/b2d96765/attachment.bin>
More information about the llvm-commits
mailing list