Home
last modified time | relevance | path

Searched refs:isLeftShift (Results 1 – 2 of 2) sorted by relevance

/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBitwiseShiftChecker.cpp94 bool isLeftShift() const { return Op->getOpcode() == BO_Shl; } in isLeftShift() function in __anon760d32cd0111::BitwiseShiftValidator
95 StringRef shiftDir() const { return isLeftShift() ? "left" : "right"; } in shiftDir()
187 isLeftShift() ? "Left" : "Right", RightOpStr.empty() ? "" : " by", in checkOvershift()
230 if (!isLeftShift()) in checkLeftShiftOverflow()
/src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp688 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument
692 if (isLeftShift) in getShiftedValue()
708 0, getShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
710 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
715 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift, in getShiftedValue()
720 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
722 2, getShiftedValue(I->getOperand(2), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
731 isLeftShift, IC, DL)); in getShiftedValue()
735 assert(!isLeftShift && "Unexpected shift direction!"); in getShiftedValue()