[PATCH] D120329: [SelectionDAG] Emit calls to __divei4 and friends for division/remainder of large integers
LuoYuanke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 03:38:48 PST 2022
LuoYuanke added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:3949
+
+ return TLI.LowerCallTo(CLI).first;
+}
----------------
I notice in RFC (https://discourse.llvm.org/t/rfc-add-support-for-division-of-large-bitint-builtins-selectiondag-globalisel-clang/60329) the prototype of the function is `void __udivei4(unsigned int *quo, unsigned int *a, unsigned int *b, unsigned int bits);`. I didn't find the code to pass `quo` and the code to load the value from `quo` after the call.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120329/new/
https://reviews.llvm.org/D120329
More information about the llvm-commits
mailing list