llvm::MachineIRBuilder::buildUCmp

Build and insert a Res = G_UCMP Op0, Op1.

Synopsis

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

MachineInstrBuilder
buildUCmp(
    DstOp const& Res,
    SrcOp const& Op0,
    SrcOp const& Op1);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
ResDestination for the three-way compare result.
Op0First compare operand.
Op1Second compare operand.

Preconditions

  • setBasicBlock or setMI must have been called.
  • Res must be a generic virtual register with scalar or vector type. Typically this starts as s2 or <N x s2>.
  • Op0 and Op1 must be generic virtual registers with the same number of elements as Res. If Res is a scalar, Op0 must be a scalar.