llvm::MachineIRBuilder::validateTruncExt

Validate types for a truncate or extend between Dst and Src.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>

void
validateTruncExt(
    LLT const Dst,
    LLT const Src,
    bool IsExtend);

Parameters

NameDescription
DstDestination type.
SrcSource type.
IsExtendTrue when validating an extend rather than a trunc.