LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
llvm::ShuffleVectorSDNode Class Reference

#include <SelectionDAGNodes.h>

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

List of all members.

Public Member Functions

ArrayRef< intgetMask () 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 SDNode *N)

Protected Member Functions

 ShuffleVectorSDNode (EVT VT, unsigned Order, 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 1321 of file SelectionDAGNodes.h.


Constructor & Destructor Documentation

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

Definition at line 1329 of file SelectionDAGNodes.h.

References llvm::SDNode::InitOperands().


Member Function Documentation

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

Definition at line 1357 of file SelectionDAGNodes.h.

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

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

Friends And Related Function Documentation

friend class SelectionDAG [friend]

Reimplemented from llvm::SDNode.

Definition at line 1328 of file SelectionDAGNodes.h.


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