[PATCH] D120327: compiler-rt: Add udivmodei5 to builtins and add bitint library
Jacob Lifshay via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 10:14:52 PDT 2022
programmerjake added a comment.
In D120327#3399900 <https://reviews.llvm.org/D120327#3399900>, @erichkeane wrote:
> This sounds like a really good idea to me. The LLVM code generation "Knows" how big this value needs to be and can do it on the stack of the caller. So it would generate IR the equivalent of:
>
> ...
>
> Right?
looks good to me! I think the buffer should be big enough for the Knuth division algorithm (the one APInt uses afaict), even if we decide we want the shift-subtract algorithm at first...that way we can upgrade later.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120327/new/
https://reviews.llvm.org/D120327
More information about the llvm-commits
mailing list