llvm::TargetLoweringBase::getScalarShiftAmountTy

Return the type to use for the amount operand of a scalar shift operation.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

virtual
MVT
getScalarShiftAmountTy(
    DataLayout const& DL,
    EVT VT) const;

Description

Return the type to use for a scalar shift opcode, given the shifted amount type. Targets should return a legal type if the input type is legal. Targets can return a type that is too small if the input type is illegal.

Return Value

The type to use for the amount operand of a scalar shift operation.

Parameters

NameDescription
DLDebug location or data layout, depending on context.
VTValue type being queried or transformed.