Convert signed integer S to FP type Ty and optionally insert before InsertBefore.
Declared in <llvm/IR/Instructions.h>
SIToFPInst(
Value* S,
Type* Ty,
Twine const& NameStr = "",
InsertPosition InsertBefore = nullptr);
| Name | Description |
|---|---|
| S | The signed integer value to convert. |
| Ty | The floating-point type to convert to. |
| NameStr | Name of the new instruction. |
| InsertBefore | Where to insert the new instruction. |