ΒΆbool expandDivision(llvm::BinaryOperator* Div)
bool expandDivision(llvm::BinaryOperator* Div)
Description
Generate code to divide two integers, replacing Div with the generated code. This currently generates code similarly to compiler-rt's implementations, but future work includes generating more specialized code when more information about the operands are known. Implements both 32bit and 64bit scalar division. Replace Div with generated code.
Declared at: llvm/include/llvm/Transforms/Utils/IntegerDivision.h:41
Parameters
- llvm::BinaryOperator* Div