Create a floating-point extension, bitcast, or truncation.
Declared in <llvm/IR/InstrTypes.h>
static
CastInst*
CreateFPCast(
Value* S,
Type* Ty,
Twine const& Name = "",
InsertPosition InsertBefore = nullptr);
The newly created cast instruction.
| Name | Description |
|---|---|
| S | The floating-point value to cast. |
| Ty | The destination floating-point type. |
| Name | Optional name for the instruction. |
| InsertBefore | Optional insertion position. |