llvm::TargetLoweringBase::getSqrtRefinementSteps

Return the number of Newton-Raphson refinement steps for a square-root estimate.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

int
getSqrtRefinementSteps(
    EVT VT,
    MachineFunction& MF) const;

Description

Return the refinement step count for a square root of the given type based on the function's attributes. If the operation is not overridden by the function's attributes, "Unspecified" is returned and target defaults are expected to be used for instruction selection.

Return Value

The number of Newton-Raphson refinement steps for a square-root estimate.

Parameters

NameDescription
VTValue type being queried or transformed.
MFMachine function being lowered.