LLVM API Documentation
#include <Instructions.h>
Public Member Functions | |
| void * | operator new (size_t s) |
| ShuffleVectorInst (Value *V1, Value *V2, Value *Mask, const Twine &NameStr="", Instruction *InsertBefor=0) | |
| ShuffleVectorInst (Value *V1, Value *V2, Value *Mask, const Twine &NameStr, BasicBlock *InsertAtEnd) | |
| virtual ShuffleVectorInst * | clone (LLVMContext &Context) const |
| const VectorType * | getType () const |
| DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value) | |
| Transparently provide more efficient getOperand methods. | |
| int | getMaskValue (unsigned i) const |
Static Public Member Functions | |
| static bool | isValidOperands (const Value *V1, const Value *V2, const Value *Mask) |
| static bool | classof (const ShuffleVectorInst *) |
| static bool | classof (const Instruction *I) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
| static bool | classof (const Value *V) |
Definition at line 1386 of file Instructions.h.
| ShuffleVectorInst::ShuffleVectorInst | ( | Value * | V1, | |
| Value * | V2, | |||
| Value * | Mask, | |||
| const Twine & | NameStr = "", |
|||
| Instruction * | InsertBefor = 0 | |||
| ) |
Definition at line 1255 of file Instructions.cpp.
References isValidOperands(), and llvm::Value::setName().
Referenced by clone().
| ShuffleVectorInst::ShuffleVectorInst | ( | Value * | V1, | |
| Value * | V2, | |||
| Value * | Mask, | |||
| const Twine & | NameStr, | |||
| BasicBlock * | InsertAtEnd | |||
| ) |
Definition at line 1272 of file Instructions.cpp.
References isValidOperands(), and llvm::Value::setName().
| void* llvm::ShuffleVectorInst::operator new | ( | size_t | s | ) | [inline] |
Reimplemented from llvm::User.
Definition at line 1389 of file Instructions.h.
References operator new().
| bool ShuffleVectorInst::isValidOperands | ( | const Value * | V1, | |
| const Value * | V2, | |||
| const Value * | Mask | |||
| ) | [static] |
isValidOperands - Return true if a shufflevector instruction can be formed with the specified operands.
Definition at line 1288 of file Instructions.cpp.
References llvm::dyn_cast(), llvm::Value::getContext(), llvm::SequentialType::getElementType(), llvm::Type::getInt32Ty(), and llvm::Value::getType().
Referenced by llvm::ConstantExpr::getShuffleVector(), and ShuffleVectorInst().
| ShuffleVectorInst * ShuffleVectorInst::clone | ( | LLVMContext & | Context | ) | const [virtual] |
clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name
Implements llvm::Instruction.
Definition at line 3043 of file Instructions.cpp.
References llvm::User::getOperand(), ShuffleVectorInst(), and llvm::Value::SubclassOptionalData.
| const VectorType* llvm::ShuffleVectorInst::getType | ( | ) | const [inline] |
getType - Overload to return most specific vector type.
Reimplemented from llvm::Value.
Definition at line 1407 of file Instructions.h.
References llvm::Intrinsic::getType().
Referenced by getShuffleMask().
| llvm::ShuffleVectorInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS | ( | Value | ) |
Transparently provide more efficient getOperand methods.
| int ShuffleVectorInst::getMaskValue | ( | unsigned | i | ) | const |
getMaskValue - Return the index from the shuffle mask for the specified output result. This is either -1 if the element is undef or a number less than 2*numelements.
getMaskValue - Return the index from the shuffle mask for the specified output result. This is either -1 if the element is undef or a number less than 2*numelements.
Definition at line 1303 of file Instructions.cpp.
References llvm::User::getNumOperands(), llvm::User::getOperand(), and llvm::Constant::getOperand().
| static bool llvm::ShuffleVectorInst::classof | ( | const ShuffleVectorInst * | ) | [inline, static] |
Definition at line 1420 of file Instructions.h.
| static bool llvm::ShuffleVectorInst::classof | ( | const Instruction * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::Instruction.
Definition at line 1421 of file Instructions.h.
References llvm::Instruction::getOpcode().