class InsertElementInst

Declaration

class InsertElementInst : public Instruction { /* full declaration omitted */ };

Description

This instruction inserts a single (scalar) element into a VectorType value

Declared at: llvm/include/llvm/IR/Instructions.h:1936

Inherits from: Instruction

Member Variables

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasMetadata
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 32
public static MaximumAlignment = 1ULL << MaxAlignmentExponent

Method Overview

  • public static llvm::InsertElementInst * Create(llvm::Value * Vec, llvm::Value * NewElt, llvm::Value * Idx, const llvm::Twine & NameStr = "", llvm::Instruction * InsertBefore = nullptr)
  • public static llvm::InsertElementInst * Create(llvm::Value * Vec, llvm::Value * NewElt, llvm::Value * Idx, const llvm::Twine & NameStr, llvm::BasicBlock * InsertAtEnd)
  • private InsertElementInst(llvm::Value * Vec, llvm::Value * NewElt, llvm::Value * Idx, const llvm::Twine & NameStr = "", llvm::Instruction * InsertBefore = nullptr)
  • private InsertElementInst(llvm::Value * Vec, llvm::Value * NewElt, llvm::Value * Idx, const llvm::Twine & NameStr, llvm::BasicBlock * InsertAtEnd)
  • public static bool classof(const llvm::Instruction * I)
  • public static bool classof(const llvm::Value * V)
  • protected llvm::InsertElementInst * cloneImpl() const
  • public llvm::VectorType * getType() const
  • public static bool isValidOperands(const llvm::Value * Vec, const llvm::Value * NewElt, const llvm::Value * Idx)

Inherited from Instruction:

Inherited from User:

Inherited from Value:

Methods

static llvm::InsertElementInst* Create(
    llvm::Value* Vec,
    llvm::Value* NewElt,
    llvm::Value* Idx,
    const llvm::Twine& NameStr = "",
    llvm::Instruction* InsertBefore = nullptr)

Declared at: llvm/include/llvm/IR/Instructions.h:1950

Parameters

llvm::Value* Vec
llvm::Value* NewElt
llvm::Value* Idx
const llvm::Twine& NameStr = ""
llvm::Instruction* InsertBefore = nullptr

static llvm::InsertElementInst* Create(
    llvm::Value* Vec,
    llvm::Value* NewElt,
    llvm::Value* Idx,
    const llvm::Twine& NameStr,
    llvm::BasicBlock* InsertAtEnd)

Declared at: llvm/include/llvm/IR/Instructions.h:1956

Parameters

llvm::Value* Vec
llvm::Value* NewElt
llvm::Value* Idx
const llvm::Twine& NameStr
llvm::BasicBlock* InsertAtEnd

InsertElementInst(
    llvm::Value* Vec,
    llvm::Value* NewElt,
    llvm::Value* Idx,
    const llvm::Twine& NameStr = "",
    llvm::Instruction* InsertBefore = nullptr)

Declared at: llvm/include/llvm/IR/Instructions.h:1937

Parameters

llvm::Value* Vec
llvm::Value* NewElt
llvm::Value* Idx
const llvm::Twine& NameStr = ""
llvm::Instruction* InsertBefore = nullptr

InsertElementInst(llvm::Value* Vec,
                  llvm::Value* NewElt,
                  llvm::Value* Idx,
                  const llvm::Twine& NameStr,
                  llvm::BasicBlock* InsertAtEnd)

Declared at: llvm/include/llvm/IR/Instructions.h:1940

Parameters

llvm::Value* Vec
llvm::Value* NewElt
llvm::Value* Idx
const llvm::Twine& NameStr
llvm::BasicBlock* InsertAtEnd

static bool classof(const llvm::Instruction* I)

Declared at: llvm/include/llvm/IR/Instructions.h:1977

Parameters

const llvm::Instruction* I

static bool classof(const llvm::Value* V)

Declared at: llvm/include/llvm/IR/Instructions.h:1980

Parameters

const llvm::Value* V

llvm::InsertElementInst* cloneImpl() const

Declared at: llvm/include/llvm/IR/Instructions.h:1947

llvm::VectorType* getType() const

Description

Overload to return most specific vector type.

Declared at: llvm/include/llvm/IR/Instructions.h:1969

static bool isValidOperands(
    const llvm::Value* Vec,
    const llvm::Value* NewElt,
    const llvm::Value* Idx)

Description

Return true if an insertelement instruction can be formed with the specified operands.

Declared at: llvm/include/llvm/IR/Instructions.h:1964

Parameters

const llvm::Value* Vec
const llvm::Value* NewElt
const llvm::Value* Idx