llvm-project
2853de04 - RuntimeLibcalls: Add signatures for the divrem libcalls (#238554)

Commit
6 days ago
RuntimeLibcalls: Add signatures for the divrem libcalls (#238554) Add struct types to the signature table so libcalls returning multiple values can be described in TableGen. Use them for the ARM, Windows and AVR divmod functions, which return the quotient and remainder in registers, instead of building their types in C++. The other divrem libcalls use the compiler-rt prototype, which stores the remainder through a pointer. AVR gets its own __divmodsi4 and __udivmodsi4, since ARM Darwin uses the compiler-rt functions with those names. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading