llvm::MachineOperand::ChangeToFPImmediate

Replace this operand with an FP immediate of value FPImm.

Synopsis

Declared in <llvm/CodeGen/MachineOperand.h>

void
ChangeToFPImmediate(
    ConstantFP const* FPImm,
    unsigned int TargetFlags = 0);

Description

If an operand is known to be an FP immediate already, the setFPImm method should be used.

Parameters

NameDescription
FPImmFloating-point constant to store.
TargetFlagsOptional target-specific flags.