Displaying 1 result from an estimated 1 matches for "rightconst".
2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...Operand(0));
ShuffleVectorInst* rightShuffle =
dyn_cast<ShuffleVectorInst>(rightMul->getOperand(0));
// get multiplication constant vectors (e.g. [0 1])
ConstantVector* leftConstVector =
llvm::dyn_cast<ConstantVector>(leftMul->getOperand(1));
ConstantVector* rightConstVector =
llvm::dyn_cast<ConstantVector>(rightMul->getOperand(1));
if (leftShuffle != NULL && rightShuffle != NULL && leftConstVector
!= NULL && rightConstVector != NULL)
{
Value* value = leftShuffle->getOperand(0);
if (value == right...