LLVM API Documentation

llvm::ShuffleVectorSDNode Class Reference

#include <SelectionDAGNodes.h>

Inheritance diagram for llvm::ShuffleVectorSDNode:
[legend]
Collaboration diagram for llvm::ShuffleVectorSDNode:
[legend]

List of all members.

Public Member Functions

void getMask (SmallVectorImpl< int > &M) const
int getMaskElt (unsigned Idx) const
bool isSplat () const
int getSplatIndex () const

Static Public Member Functions

static bool isSplatMask (const int *Mask, EVT VT)
static bool classof (const ShuffleVectorSDNode *)
static bool classof (const SDNode *N)

Protected Member Functions

 ShuffleVectorSDNode (EVT VT, DebugLoc dl, SDValue N1, SDValue N2, const int *M)

Friends

class SelectionDAG


Detailed Description

ShuffleVectorSDNode - This SDNode is used to implement the code generator support for the llvm IR shufflevector instruction. It combines elements from two input vectors into a new input vector, with the selection and ordering of elements determined by an array of integers, referred to as the shuffle mask. For input vectors of width N, mask indices of 0..N-1 refer to elements from the LHS input, and indices from N to 2N-1 the RHS. An index of -1 is treated as undef, such that the code generator may put any value in the corresponding element of the result.

Definition at line 1682 of file SelectionDAGNodes.h.


Constructor & Destructor Documentation

llvm::ShuffleVectorSDNode::ShuffleVectorSDNode ( EVT  VT,
DebugLoc  dl,
SDValue  N1,
SDValue  N2,
const int *  M 
) [inline, protected]

Definition at line 1690 of file SelectionDAGNodes.h.


Member Function Documentation

void llvm::ShuffleVectorSDNode::getMask ( SmallVectorImpl< int > &  M  )  const [inline]

int llvm::ShuffleVectorSDNode::getMaskElt ( unsigned  Idx  )  const [inline]

bool llvm::ShuffleVectorSDNode::isSplat (  )  const [inline]

Definition at line 1708 of file SelectionDAGNodes.h.

References llvm::SDValue::getValueType().

int llvm::ShuffleVectorSDNode::getSplatIndex (  )  const [inline]

Definition at line 1709 of file SelectionDAGNodes.h.

Referenced by LowerVECTOR_SHUFFLE(), and PromoteSplat().

bool ShuffleVectorSDNode::isSplatMask ( const int *  Mask,
EVT  VT 
) [static]

static bool llvm::ShuffleVectorSDNode::classof ( const ShuffleVectorSDNode *   )  [inline, static]

Definition at line 1715 of file SelectionDAGNodes.h.

static bool llvm::ShuffleVectorSDNode::classof ( const SDNode *  N  )  [inline, static]

Reimplemented from llvm::SDNode.

Definition at line 1716 of file SelectionDAGNodes.h.

References llvm::SDNode::getOpcode(), and llvm::ISD::VECTOR_SHUFFLE.


Friends And Related Function Documentation

friend class SelectionDAG [friend]

Reimplemented from llvm::SDNode.

Definition at line 1689 of file SelectionDAGNodes.h.


The documentation for this class was generated from the following files: