llvm::TargetLoweringBase::isLegalAddScalableImmediate

Return true if the target can add this scalable immediate (multiplied by vscale) without materializing it.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

virtual
bool
isLegalAddScalableImmediate(int64_t Imm) const;

Description

Return true if adding the specified scalable immediate is legal, that is the target has add instructions which can add a register with the immediate (multiplied by vscale) without having to materialize the immediate into a register.

Return Value

True if the target can add this scalable immediate (multiplied by vscale) without materializing it.

Parameters

NameDescription
ImmImmediate constant operand.