Home
last modified time | relevance | path

Searched refs:BO (Results 1 – 25 of 139) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp363 if (!BO || BO->getOpcode() != Instruction::Add || !BO->hasOneUse()) in matchAddReduction()
373 const Value *Op = BO; in matchAddReduction()
377 if (!BO || BO->getOpcode() != Instruction::Add) in matchAddReduction()
384 if (i != 0 && !BO->hasNUses(2)) in matchAddReduction()
387 Value *LHS = BO->getOperand(0); in matchAddReduction()
388 Value *RHS = BO->getOperand(1); in matchAddReduction()
422 if (U == BO) in isReachableFromPHI()
428 return U == BO; in isReachableFromPHI()
460 if (BO->hasNUses(BO == Root ? 2 : 1)) { in collectLeaves()
467 if (BO->hasNUses(BO == Root ? 3 : 2)) { in collectLeaves()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp515 if (BO->getOpcode() != Instruction::Add && in CanTraceInto()
516 BO->getOpcode() != Instruction::Sub && in CanTraceInto()
517 BO->getOpcode() != Instruction::Or) { in CanTraceInto()
521 Value *LHS = BO->getOperand(0), *RHS = BO->getOperand(1); in CanTraceInto()
526 if (BO->getOpcode() == Instruction::Or && in CanTraceInto()
568 if (BO->getOpcode() == Instruction::Add || in CanTraceInto()
604 if (BO->getOpcode() == Instruction::Sub) in findInEitherOperand()
735 assert((BO->use_empty() || BO->hasOneUse()) && in removeConstOffset()
753 if (BO->getOpcode() == Instruction::Or) { in removeConstOffset()
776 NewBO->takeName(BO); in removeConstOffset()
[all …]
H A DReassociate.cpp165 if (BO && BO->hasOneUse() && BO->getOpcode() == Opcode) in isReassociableOp()
166 if (!isa<FPMathOperator>(BO) || hasFPAssociativeFlags(BO)) in isReassociableOp()
174 if (BO && BO->hasOneUse() && in isReassociableOp()
732 if (BO && !NotRewritable.count(BO)) in RewriteExprTree()
738 if (BO && !NotRewritable.count(BO)) in RewriteExprTree()
765 if (BO && !NotRewritable.count(BO)) in RewriteExprTree()
781 if (BO && !NotRewritable.count(BO)) { in RewriteExprTree()
1185 if (!BO) in RemoveFactorFromExpression()
1245 V = BO; in RemoveFactorFromExpression()
1261 if (!BO) { in FindSingleUseMultiplyFactors()
[all …]
H A DCorrelatedValuePropagation.cpp428 BO->getBinaryOp(), RRange, BO->getNoWrapKind()); in willNotOverflow()
514 processBinOp(BO, LVI); in processAbsIntrinsic()
566 processBinOp(BO, LVI); in processOverflowIntrinsic()
586 processBinOp(BO, LVI); in processSaturatingInst()
891 auto *BO = in processSRem() local
894 Op.V = BO; in processSRem()
952 auto *BO = in processSDiv() local
955 Op.V = BO; in processSDiv()
1026 BO->takeName(SDI); in processAShr()
1028 BO->setIsExact(SDI->isExact()); in processAShr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp137 auto *BO = dyn_cast<BinaryOperator>(Start); in matchStridedStart() local
138 if (!BO || (BO->getOpcode() != Instruction::Add && in matchStridedStart()
144 if (BO->getOpcode() == Instruction::Or && in matchStridedStart()
152 Splat = getSplatValue(BO->getOperand(0)); in matchStridedStart()
164 Builder.SetInsertPoint(BO); in matchStridedStart()
168 switch (BO->getOpcode()) { in matchStridedStart()
245 if (!BO) in matchStridedRecurrence()
248 switch (BO->getOpcode()) { in matchStridedRecurrence()
269 OtherOp = BO->getOperand(1); in matchStridedRecurrence()
274 OtherOp = BO->getOperand(0); in matchStridedRecurrence()
[all …]
H A DRISCVCodeGenPrepare.cpp55 bool visitAnd(BinaryOperator &BO);
64 bool RISCVCodeGenPrepare::visitAnd(BinaryOperator &BO) { in visitAnd() argument
68 if (!BO.getType()->isIntegerTy(64)) in visitAnd()
75 if (!match(BO.getOperand(0), m_NNegZExt(m_Value(LHSSrc)))) in visitAnd()
82 Value *RHS = BO.getOperand(1); in visitAnd()
97 BO.setOperand(1, ConstantInt::get(RHS->getType(), C)); in visitAnd()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp527 til::SExpr *E0 = translate(BO->getLHS(), Ctx); in translateBinOp()
528 til::SExpr *E1 = translate(BO->getRHS(), Ctx); in translateBinOp()
539 const Expr *LHS = BO->getLHS(); in translateBinAssign()
540 const Expr *RHS = BO->getRHS(); in translateBinAssign()
563 switch (BO->getOpcode()) { in translateBinaryOperator()
566 return new (Arena) til::Undefined(BO); in translateBinaryOperator()
568 case BO_Mul: return translateBinOp(til::BOP_Mul, BO, Ctx); in translateBinaryOperator()
569 case BO_Div: return translateBinOp(til::BOP_Div, BO, Ctx); in translateBinaryOperator()
570 case BO_Rem: return translateBinOp(til::BOP_Rem, BO, Ctx); in translateBinaryOperator()
602 return translate(BO->getRHS(), Ctx); in translateBinaryOperator()
[all …]
H A DUninitializedValues.cpp305 void VisitBinaryOperator(BinaryOperator *BO);
367 if (const auto *BO = dyn_cast<BinaryOperator>(E)) { in classify() local
368 switch (BO->getOpcode()) { in classify()
371 classify(BO->getLHS(), C); in classify()
374 classify(BO->getRHS(), C); in classify()
401 if (BO->isCompoundAssignmentOp()) in VisitBinaryOperator()
402 classify(BO->getLHS(), Use); in VisitBinaryOperator()
403 else if (BO->getOpcode() == BO_Assign || BO->getOpcode() == BO_Comma) in VisitBinaryOperator()
404 classify(BO->getLHS(), Ignore); in VisitBinaryOperator()
758 if (BO->getOpcode() == BO_Assign) { in VisitBinaryOperator()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionAliasAnalysis.cpp95 Value *BO = GetBaseValue(BS); in alias() local
96 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr)) in alias()
101 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
102 BO ? LocationSize::beforeOrAfterPointer() in alias()
104 BO ? AAMDNodes() : LocB.AATags), in alias()
H A DPHITransAddr.cpp280 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(U)) in translateSubExpr() local
281 if (BO->getOpcode() == Instruction::Add && in translateSubExpr()
282 BO->getOperand(0) == LHS && BO->getOperand(1) == RHS && in translateSubExpr()
283 BO->getParent()->getParent() == CurBB->getParent() && in translateSubExpr()
284 (!DT || DT->dominates(BO->getParent(), PredBB))) in translateSubExpr()
285 return BO; in translateSubExpr()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp151 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) in isZeroingPropIvar() local
152 return isZeroingPropIvar(BO); in isZeroingPropIvar()
191 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm()); in isZeroingPropIvar() local
192 if (!BO) return false; in isZeroingPropIvar()
193 if (BO->getOpcode() != BO_Assign) return false; in isZeroingPropIvar()
196 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); in isZeroingPropIvar()
208 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr()); in isZeroingPropIvar()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp350 if (BO->isLogicalOp()) in VisitBinaryOperator()
356 const Expr *LHS = BO->getLHS(); in VisitBinaryOperator()
357 const Expr *RHS = BO->getRHS(); in VisitBinaryOperator()
359 if (BO->isPtrMemOp()) in VisitBinaryOperator()
368 if (BO->isCommaOp()) { in VisitBinaryOperator()
404 if (BO->getOpcode() == BO_Add || BO->getOpcode() == BO_Sub) { in VisitBinaryOperator()
430 switch (BO->getOpcode()) { in VisitBinaryOperator()
445 return Discard(this->emitSubf(getRoundingMode(BO), BO)); in VisitBinaryOperator()
449 return Discard(this->emitAddf(getRoundingMode(BO), BO)); in VisitBinaryOperator()
453 return Discard(this->emitMulf(getRoundingMode(BO), BO)); in VisitBinaryOperator()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaConcept.cpp46 if (auto *BO = dyn_cast<BinaryOperator>(E)) { in LogicalBinOp() local
48 LHS = BO->getLHS(); in LogicalBinOp()
49 RHS = BO->getRHS(); in LogicalBinOp()
50 Loc = BO->getExprLoc(); in LogicalBinOp()
99 if (LogicalBinOp BO = ConstraintExpression) { in CheckConstraintExpression() local
187 if (LogicalBinOp BO = ConstraintExpr) { in calculateConstraintSatisfaction() local
197 if (BO.isOr() && IsLHSSatisfied) in calculateConstraintSatisfaction()
207 if (BO.isAnd() && !IsLHSSatisfied) in calculateConstraintSatisfaction()
231 if (BO.isOr() && IsRHSSatisfied) { in calculateConstraintSatisfaction()
1045 switch (BO->getOpcode()) { in diagnoseWellFormedUnsatisfiedConstraintExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h253 return BO;
286 return BO;
292 return BO;
298 return BO;
305 return BO;
311 return BO;
317 return BO;
324 return BO;
456 return BO;
463 return BO;
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DInvalidatedIteratorChecker.cpp44 void checkPreStmt(const BinaryOperator *BO, CheckerContext &C) const;
84 void InvalidatedIteratorChecker::checkPreStmt(const BinaryOperator *BO, in checkPreStmt() argument
87 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
88 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt()
H A DDirectIvarAssignment.cpp76 void VisitBinaryOperator(const BinaryOperator *BO);
166 const BinaryOperator *BO) { in VisitBinaryOperator() argument
167 if (!BO->isAssignmentOp()) in VisitBinaryOperator()
171 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts()); in VisitBinaryOperator()
H A DMismatchedIteratorChecker.cpp46 void checkPreStmt(const BinaryOperator *BO, CheckerContext &C) const;
184 void MismatchedIteratorChecker::checkPreStmt(const BinaryOperator *BO, in checkPreStmt() argument
186 if (!BO->isComparisonOp()) in checkPreStmt()
190 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt()
191 SVal RVal = State->getSVal(BO->getRHS(), C.getLocationContext()); in checkPreStmt()
H A DIvarInvalidationChecker.cpp161 void VisitBinaryOperator(const BinaryOperator *BO);
654 const BinaryOperator *BO) { in VisitBinaryOperator() argument
655 VisitStmt(BO); in VisitBinaryOperator()
659 BinaryOperatorKind Opcode = BO->getOpcode(); in VisitBinaryOperator()
665 if (isZero(BO->getRHS())) { in VisitBinaryOperator()
666 check(BO->getLHS()); in VisitBinaryOperator()
670 if (Opcode != BO_Assign && isZero(BO->getLHS())) { in VisitBinaryOperator()
671 check(BO->getRHS()); in VisitBinaryOperator()
H A DIteratorRangeChecker.cpp52 void checkPreStmt(const BinaryOperator *BO, CheckerContext &C) const;
156 void IteratorRangeChecker::checkPreStmt(const BinaryOperator *BO, in checkPreStmt() argument
159 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
160 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt()
165 SVal RVal = State->getSVal(BO->getRHS(), C.getLocationContext()); in checkPreStmt()
166 if (!BO->getRHS()->getType()->isIntegralOrEnumerationType()) in checkPreStmt()
H A DIteratorModeling.cpp153 void checkPostStmt(const BinaryOperator *BO, CheckerContext &C) const;
262 void IteratorModeling::checkPostStmt(const BinaryOperator *BO, in checkPostStmt() argument
265 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt()
266 const Expr *const LHS = BO->getLHS(); in checkPostStmt()
267 const Expr *const RHS = BO->getRHS(); in checkPostStmt()
271 if (isSimpleComparisonOperator(BO->getOpcode())) { in checkPostStmt()
272 SVal Result = State->getSVal(BO, C.getLocationContext()); in checkPostStmt()
273 handleComparison(C, BO, Result, LVal, RVal, in checkPostStmt()
278 const bool IsIterOnLHS = BO->getLHS()->getType()->isPointerType(); in checkPostStmt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1681 auto *BO = dyn_cast<BinaryOperator>(FPT.getOperand(0)); in visitFPTrunc() local
1682 if (BO && BO->hasOneUse()) { in visitFPTrunc()
1683 Type *LHSMinType = getMinimumFPType(BO->getOperand(0)); in visitFPTrunc()
1684 Type *RHSMinType = getMinimumFPType(BO->getOperand(1)); in visitFPTrunc()
1685 unsigned OpWidth = BO->getType()->getFPMantissaWidth(); in visitFPTrunc()
1690 switch (BO->getOpcode()) { in visitFPTrunc()
1716 RI->copyFastMathFlags(BO); in visitFPTrunc()
2283 BinaryOperator *BO; in foldBitCastBitwiseLogic() local
2286 !BO->isBitwiseLogicOp()) in foldBitCastBitwiseLogic()
2292 if (!DestTy->isVectorTy() || !BO->getType()->isVectorTy()) in foldBitCastBitwiseLogic()
[all …]
H A DInstCombineMulDivRem.cpp237 return BO; in visitMul()
317 return BO; in visitMul()
1104 return BO; in commonIDivTransforms()
1296 if (AssumeNonZero || BO->hasNoUnsignedWrap() || BO->hasNoSignedWrap()) in takeLog2()
1402 BO->setIsExact(); in visitUDiv()
1403 return BO; in visitUDiv()
1521 return BO; in visitSDiv()
1554 return BO; in visitSDiv()
1573 return BO; in visitSDiv()
1934 return BO; in simplifyIRemMulShl()
[all …]
/freebsd/sys/powerpc/powerpc/
H A Ddb_disasm.c620 u_int BO, BI; in disasm_fields() local
621 BO = extract_field(instr, 31 - 10, 5); in disasm_fields()
624 if (BO & 4) { in disasm_fields()
626 if (BO & 16) { in disasm_fields()
640 if (BO & 2) in disasm_fields()
644 if ((BO & 24) == 0) in disasm_fields()
646 else if ((BO & 24) == 8) in disasm_fields()
655 if ((BO & 20) != 20 && (func & Op_BO) == 0) in disasm_fields()
762 u_int BO; in disasm_fields() local
763 BO = extract_field(instr, 31 - 10, 5); in disasm_fields()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp82 Result.LHS = BO->getLHS(); in getDecomposedForm()
83 Result.RHS = BO->getRHS(); in getDecomposedForm()
84 Result.InnerBinOp = BO; in getDecomposedForm()
97 Result.LHS = BO->getArg(0); in getDecomposedForm()
99 Result.InnerBinOp = BO; in getDecomposedForm()
117 Result.LHS = BO->getLHS(); in getDecomposedForm()
118 Result.RHS = BO->getRHS(); in getDecomposedForm()
119 Result.InnerBinOp = BO; in getDecomposedForm()
124 Result.InnerBinOp = BO; in getDecomposedForm()
659 if (BO->getOpcode() == BO_PtrMemD || BO->getOpcode() == BO_PtrMemI) in getImplicitObjectArgument()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFormatVariadic.cpp97 std::size_t BO = Fmt.find_first_of('{'); in splitLiteralAndReplacement() local
98 return std::make_pair(ReplacementItem{Fmt.substr(0, BO)}, Fmt.substr(BO)); in splitLiteralAndReplacement()

123456