llvm::MachineIRBuilder::buildDeleteTrailingVectorElements

Build and insert a, b, ..., x, y, z = G_UNMERGE_VALUES Op0 Res = G_BUILD_VECTOR a, b, ..., x

Synopsis

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

MachineInstrBuilder
buildDeleteTrailingVectorElements(
    DstOp const& Res,
    SrcOp const& Op0);

Description

Delete trailing elements in Op0 to match number of elements in Res.

Return Value

a MachineInstrBuilder for the newly created build vector instr.

Parameters

NameDescription
ResDestination operand for the result.
Op0First source operand.

Preconditions

  • setBasicBlock or setMI must have been called.
  • Res and Op0 must be generic virtual registers with vector type, same vector element type and Op0 must have more elements then Res.