llvm::MachineIRBuilder::buildStepVector

Build and insert Res = G_STEP_VECTOR Step

Synopsis

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

MachineInstrBuilder
buildStepVector(
    DstOp const& Res,
    unsigned int Step);

Description

G_STEP_VECTOR returns a scalable vector of linear sequence of step Step into Res.

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
ResDestination operand for the result.
StepStep between consecutive vector elements.

Preconditions

  • setBasicBlock or setMI must have been called.
  • Res must be a generic virtual register with scalable vector type.