llvm::MachineIRBuilder::buildAssertInstr

Build and insert G_ASSERT_SEXT, G_ASSERT_ZEXT, or G_ASSERT_ALIGN

Synopsis

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

MachineInstrBuilder
buildAssertInstr(
    unsigned int Opc,
    DstOp const& Res,
    SrcOp const& Op,
    unsigned int Val);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
OpcTarget opcode for the instruction.
ResDestination operand for the result.
OpSource operand.
ValValue operand.