llvm::SIToFPInst::SIToFPInst

Convert signed integer S to FP type Ty and optionally insert before InsertBefore.

Synopsis

Declared in <llvm/IR/Instructions.h>

SIToFPInst(
    Value* S,
    Type* Ty,
    Twine const& NameStr = "",
    InsertPosition InsertBefore = nullptr);

Parameters

NameDescription
SThe signed integer value to convert.
TyThe floating-point type to convert to.
NameStrName of the new instruction.
InsertBeforeWhere to insert the new instruction.