Create a constrained fp cast.

Synopsis

Declared in <llvm/IR/IRBuilder.h>

CallInst*
CreateConstrainedFPCast(
    Intrinsic::ID ID,
    Value* V,
    Type* DestTy,
    FMFSource FMFSource = {},
    Twine const& Name = "",
    MDNode* FPMathTag = nullptr,
    std::optional<RoundingMode> Rounding = std::nullopt,
    std::optional<fp::ExceptionBehavior> Except = std::nullopt);

Return Value

The created constrained floating‐point cast.

Parameters

Name

Description

ID

Intrinsic or statepoint identifier.

V

Input value.

DestTy

Destination type of the cast.

FMFSource

Optional source of fast‐math flags.

Name

Name of the new instruction or value.

FPMathTag

Floating‐point math metadata tag.

Rounding

Rounding mode for a constrained FP intrinsic.

Except

Exception behavior for a constrained FP intrinsic.

Created with MrDocs