HomeSort by: relevance | last modified time | path
    Searched defs:BO (Results 1 - 25 of 47) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
NoFolder.h 47 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
48 if (HasNUW) BO->setHasNoUnsignedWrap();
49 if (HasNSW) BO->setHasNoSignedWrap();
50 return BO;
60 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
61 if (HasNUW) BO->setHasNoUnsignedWrap();
62 if (HasNSW) BO->setHasNoSignedWrap();
63 return BO;
73 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS);
74 if (HasNUW) BO->setHasNoUnsignedWrap()
    [all...]
InstrTypes.h 255 BinaryOperator *BO = Create(Opc, V1, V2, Name);
256 BO->copyIRFlags(CopyO);
257 return BO;
288 BinaryOperator *BO = Create(Opc, V1, V2, Name);
289 BO->setHasNoSignedWrap(true);
290 return BO;
294 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB);
295 BO->setHasNoSignedWrap(true);
296 return BO;
300 BinaryOperator *BO = Create(Opc, V1, V2, Name, I)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
ScalarEvolutionAliasAnalysis.cpp 83 Value *BO = GetBaseValue(BS);
84 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr))
89 MemoryLocation(BO ? BO : LocB.Ptr,
90 BO ? LocationSize::beforeOrAfterPointer()
92 BO ? AAMDNodes() : LocB.AATags),
  /src/external/apache2/llvm/dist/llvm/lib/Support/
FormatVariadic.cpp 97 std::size_t BO = Fmt.find_first_of('{');
98 return std::make_pair(ReplacementItem{Fmt.substr(0, BO)}, Fmt.substr(BO));
  /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
TransZeroOutPropsInDealloc.cpp 151 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
152 return isZeroingPropIvar(BO);
191 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
192 if (!BO) return false;
193 if (BO->getOpcode() != BO_Assign) return false;
196 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens());
208 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr());
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstCombineNegator.cpp 193 Value *BO = I->getOpcode() == Instruction::AShr
196 if (auto *NewInstr = dyn_cast<Instruction>(BO)) {
200 return BO;
244 Value *BO =
247 if (auto *NewInstr = dyn_cast<Instruction>(BO))
249 return BO;
InstCombineSimplifyDemanded.cpp 1553 BinaryOperator *BO;
1554 if (match(I, m_BinOp(BO)) && !BO->isIntDivRem() && !BO->isShift()) {
1562 BO->dropPoisonGeneratingFlags();
InstCombineMulDivRem.cpp 161 BinaryOperator *BO = BinaryOperator::CreateNeg(Op0, I.getName());
163 BO->setHasNoSignedWrap();
164 return BO;
178 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl);
180 BO->setHasNoUnsignedWrap();
183 BO->setHasNoSignedWrap();
184 return BO;
307 BinaryOperator *BO = nullptr;
310 BO = BinaryOperator::CreateShl(Op1, Y);
313 BO = BinaryOperator::CreateShl(Op0, Y)
    [all...]
InstCombineSelect.cpp 81 BinaryOperator *BO;
82 if (!match(Sel.getOperand(IsEq ? 1 : 2), m_BinOp(BO)))
87 Type *Ty = BO->getType();
88 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true);
98 if (!BO->isCommutative() && !match(BO, m_BinOp(m_Value(Y), m_Specific(X))))
100 if (!match(BO, m_c_BinOp(m_Value(Y), m_Specific(X))))
105 if (isa<FPMathOperator>(BO))
106 if (!BO->hasNoSignedZeros() && !CannotBeNegativeZero(Y, &TLI))
109 // BO = binop Y,
    [all...]
InstCombineVectorOps.cpp 405 BinaryOperator *BO;
406 if (match(SrcVec, m_BinOp(BO)) && cheapToScalarize(SrcVec, IndexC)) {
408 Value *X = BO->getOperand(0), *Y = BO->getOperand(1);
411 return BinaryOperator::CreateWithCopiedFlags(BO->getOpcode(), E0, E1, BO);
1576 BinaryOperator *BO = cast<BinaryOperator>(I);
1580 NewOps[0], NewOps[1], "", BO);
1581 if (isa<OverflowingBinaryOperator>(BO)) {
1582 New->setHasNoUnsignedWrap(BO->hasNoUnsignedWrap())
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
DeadStoresChecker.cpp 106 const BinaryOperator *BO =
108 if (!BO)
110 if (BO->getOpcode() == BO_Assign) {
111 Ex = BO->getRHS();
114 if (BO->getOpcode() == BO_Comma) {
115 Ex = BO->getRHS();
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86PartialReduction.cpp 122 if (auto *BO = dyn_cast<BinaryOperator>(Op)) {
123 if (BO->getParent() == Mul->getParent() &&
124 IsFreeTruncation(BO->getOperand(0)) &&
125 IsFreeTruncation(BO->getOperand(1)) &&
309 const auto *BO = dyn_cast<BinaryOperator>(EE.getVectorOperand());
310 if (!BO || BO->getOpcode() != Instruction::Add || !BO->hasOneUse())
313 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements();
318 const Value *Op = BO;
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
ReachableCode.cpp 452 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S))
453 return BO->getOpcode() != BO_Comma;
556 const BinaryOperator *BO = cast<BinaryOperator>(S);
557 return BO->getOperatorLoc();
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CodeGenPGO.cpp 304 const BinaryOperator *BO = cast<BinaryOperator>(S);
305 if (BO->getOpcode() == BO_LAnd)
307 if (BO->getOpcode() == BO_LOr)
310 switch (BO->getOpcode()) {
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
Reassociate.cpp 511 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
514 Worklist.push_back(std::make_pair(BO, Weight));
552 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
554 Worklist.push_back(std::make_pair(BO, It->second));
701 BinaryOperator *BO = isReassociableOp(OldLHS, Opcode);
702 if (BO && !NotRewritable.count(BO))
703 NodesToRewrite.push_back(BO);
707 BinaryOperator *BO = isReassociableOp(OldRHS, Opcode);
708 if (BO && !NotRewritable.count(BO)
    [all...]
SeparateConstOffsetFromGEP.cpp 270 APInt findInEitherOperand(BinaryOperator *BO, bool SignExtended,
316 /// of binary operator BO for a constant offset.
318 /// \p SignExtended Whether BO is surrounded by sext
319 /// \p ZeroExtended Whether BO is surrounded by zext
320 /// \p NonNegative Whether BO is known to be non-negative, e.g., an in-bound
322 bool CanTraceInto(bool SignExtended, bool ZeroExtended, BinaryOperator *BO,
505 BinaryOperator *BO,
510 if (BO->getOpcode() != Instruction::Add &&
511 BO->getOpcode() != Instruction::Sub &&
512 BO->getOpcode() != Instruction::Or)
    [all...]
CorrelatedValuePropagation.cpp 391 static bool willNotOverflow(BinaryOpIntrinsic *BO, LazyValueInfo *LVI) {
392 ConstantRange LRange = LVI->getConstantRange(BO->getLHS(), BO);
393 ConstantRange RRange = LVI->getConstantRange(BO->getRHS(), BO);
395 BO->getBinaryOp(), RRange, BO->getNoWrapKind());
501 if (auto *BO = dyn_cast<BinaryOperator>(NegX))
502 processBinOp(BO, LVI);
542 if (auto *BO = dyn_cast<BinaryOperator>(NewOp)
    [all...]
LoopRerollPass.cpp 551 if (auto *BO = dyn_cast<BinaryOperator>(User)) {
552 if (BO->getOpcode() == Instruction::Add) {
565 if (BO->hasNoSignedWrap() && UUser && UUser->hasOneUse() &&
773 BinaryOperator *BO = dyn_cast<BinaryOperator>(U);
775 if ((BO && BO->getOpcode() != Instruction::Add) ||
776 (!BO && !isa<GetElementPtrInst>(U)))
800 if (auto *BO = dyn_cast<BinaryOperator>(I)) {
801 if (BO->getOpcode() == Instruction::Add ||
802 BO->getOpcode() == Instruction::Or
    [all...]
Scalarizer.cpp 147 // BinarySpliiter(BO)(Builder, X, Y, Name) uses Builder to create
148 // a binary operator like BO called Name with operands X and Y.
150 BinarySplitter(BinaryOperator &bo) : BO(bo) {}
154 return Builder.CreateBinOp(BO.getOpcode(), Op0, Op1, Name);
157 BinaryOperator &BO;
197 bool visitBinaryOperator(BinaryOperator &BO);
626 bool ScalarizerVisitor::visitBinaryOperator(BinaryOperator &BO) {
627 return splitBinary(BO, BinarySplitter(BO))
    [all...]
  /src/sys/arch/powerpc/powerpc/
db_disasm.c 629 u_int BO, BI;
630 BO = extract_field(instr, 31 - 10, 5);
633 if (BO & 4) {
635 if (BO & 16) {
643 condstr[((BO & 8) >> 1) + (BI & 3)]);
650 if (BO & 2)
654 if ((BO & 24) == 0)
656 else if ((BO & 24) == 8)
665 if ((BO & 20) != 20 && (func & Op_BO) == 0)
772 u_int BO;
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonEarlyIfConv.cpp 820 const MachineOperand &RO = PN->getOperand(i), &BO = PN->getOperand(i+1);
821 if (BO.getMBB() == FP.SplitB)
823 else if (BO.getMBB() == FP.TrueB)
825 else if (BO.getMBB() == FP.FalseB)
HexagonCommonGEP.cpp 402 ValueVect BO;
403 getBlockTraversalOrder(&Fn->front(), BO);
409 for (ValueVect::iterator I = BO.begin(), E = BO.end(); I != E; ++I) {
1236 ValueVect BO;
1237 BO.push_back(&Fn->front());
1239 for (unsigned i = 0; i < BO.size(); ++i) {
1240 BasicBlock *B = cast<BasicBlock>(BO[i]);
1242 BO.push_back(DTN->getBlock());
1245 for (unsigned i = BO.size(); i > 0; --i)
    [all...]
HexagonLoopIdiomRecognition.cpp 655 auto *BO = dyn_cast<BinaryOperator>(IterV);
656 if (!BO)
658 if (BO->getOpcode() != Instruction::Add)
661 if (BO->getOperand(0) == PN)
662 IncV = BO->getOperand(1);
663 else if (BO->getOperand(1) == PN)
664 IncV = BO->getOperand(0);
1649 BinaryOperator *BO = dyn_cast<BinaryOperator>(I);
1650 if (!BO)
1652 Instruction::BinaryOps Op = BO->getOpcode()
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Sema/
AnalysisBasedWarnings.cpp 891 const BinaryOperator *BO = cast<BinaryOperator>(Term);
892 if (!BO->isLogicalOp())
895 Str = BO->getOpcodeStr();
896 Range = BO->getLHS()->getSourceRange();
898 if ((BO->getOpcode() == BO_LAnd && I->Output) ||
899 (BO->getOpcode() == BO_LOr && !I->Output))
902 SourceRange(BO->getBeginLoc(), BO->getOperatorLoc()));
905 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr);
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
BugReporterVisitors.cpp 298 if (auto *BO = PS->getStmtAs<BinaryOperator>())
299 if (BO->isAssignmentOp() && RegionOfInterest->isSubRegionOf(
300 N->getSVal(BO->getLHS()).getAsRegion()))
886 } else if (const auto *BO = dyn_cast<BinaryOperator>(S)) {
887 const MemRegion *R = N->getSVal(BO->getLHS()).getAsRegion();
888 const Expr *RHS = BO->getRHS();
889 if (BO->isAssignmentOp() && RegionOfInterest->isSubRegionOf(R)) {
1447 if (const BinaryOperator *BO = P->getStmtAs<BinaryOperator>())
1448 if (BO->isAssignmentOp())
1449 InitE = BO->getRHS()
    [all...]

Completed in 58 milliseconds

1 2