Return true if V can be cast exactly to floating-point type FPTy.
Declared in <llvm/Transforms/InstCombine/InstCombiner.h>
bool
canBeCastedExactlyIntToFP(
Value* V,
Type* FPTy,
bool IsSigned,
Instruction const* CxtI = nullptr) const;
True if the integer-to-FP cast does not lose precision.
| Name | Description |
|---|---|
| V | Integer value being cast. |
| FPTy | Destination floating-point type. |
| IsSigned | Whether V is treated as a signed integer. |
| CxtI | Optional context instruction for local analysis. |