Provide custom lowering of signed division by a power-of-2 constant.
Declared in <llvm/CodeGen/TargetLowering.h>
virtual
SDValue
BuildSDIVPow2(
SDNode* N,
APInt const& Divisor,
SelectionDAG& DAG,
SmallVectorImpl<SDNode*>& Created) const;
Targets may override this function to provide custom SDIV lowering for power-of-2 denominators. If the target returns an empty SDValue, LLVM assumes SDIV is expensive and replaces it with a series of other integer operations.
The lowered or expanded SelectionDAG value, or an empty SDValue on failure.
| Name | Description |
|---|---|
| N | SDNode being queried. |
| Divisor | Constant power-of-two divisor. |
| DAG | SelectionDAG providing context. |
| Created | Nodes created by custom lowering. |