ΒΆbool expandRemainder(llvm::BinaryOperator* Rem)

Description

Generate code to calculate the remainder of two integers, replacing Rem with the generated code. This currently generates code using the udiv expansion, but future work includes generating more specialized code, e.g. when more information about the operands are known. Implements both 32bit and 64bit scalar division. Replace Rem with generated code.

Declared at: llvm/include/llvm/Transforms/Utils/IntegerDivision.h:32

Parameters

llvm::BinaryOperator* Rem