llvm::MachineIRBuilder::buildExtractSubvector

Build and insert Res = G_EXTRACT_SUBVECTOR Src, Idx0.

Synopsis

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

MachineInstrBuilder
buildExtractSubvector(
    DstOp const& Res,
    SrcOp const& Src,
    unsigned int Index);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
ResDestination operand for the result.
SrcSource operand.
IndexIndex into the source value.

Preconditions

  • setBasicBlock or setMI must have been called.
  • Res and Src must be generic virtual registers with vector type.