search for: rightmul

Displaying 1 result from an estimated 1 matches for "rightmul".

Did you mean: rightful
2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...values[i] = int(element->getZExtValue()); } } } at the end of InstCombiner::visitFAdd: // check for constant diagonal matrix * vector: a.xx * [2 0] + a.yy * [0 3] --> a * [2 3] BinaryOperator* leftMul = dyn_cast<BinaryOperator>(LHS); BinaryOperator* rightMul = dyn_cast<BinaryOperator>(RHS); if (leftMul != NULL && rightMul != NULL && leftMul->getOpcode() == Instruction::FMul && rightMul->getOpcode() == Instruction::FMul) { ShuffleVectorInst* leftShuffle = dyn_cast<ShuffleVectorInst>(leftMul->getO...