HomeSort by relevance Sort by last modified time
    Searched refs:BO (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /external/llvm/lib/Transforms/Scalar/
SeparateConstOffsetFromGEP.cpp 153 APInt findInEitherOperand(BinaryOperator *BO, bool SignExtended,
201 /// of binary operator BO for a constant offset.
203 /// \p SignExtended Whether BO is surrounded by sext
204 /// \p ZeroExtended Whether BO is surrounded by zext
205 /// \p NonNegative Whether BO is known to be non-negative, e.g., an in-bound
207 bool CanTraceInto(bool SignExtended, bool ZeroExtended, BinaryOperator *BO,
315 BinaryOperator *BO,
320 if (BO->getOpcode() != Instruction::Add &&
321 BO->getOpcode() != Instruction::Sub &&
322 BO->getOpcode() != Instruction::Or)
    [all...]
Reassociate.cpp 554 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
557 Worklist.push_back(std::make_pair(BO, Weight));
593 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
595 Worklist.push_back(std::make_pair(BO, It->second));
622 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op);
623 if (Opcode == Instruction::Mul && BO && BinaryOperator::isNeg(BO)) {
625 BO = LowerNegateToMultiply(BO);
626 DEBUG(dbgs() << *BO << 'n')
    [all...]
JumpThreading.cpp 131 bool ProcessBranchOnXOR(BinaryOperator *BO);
474 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
477 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
479 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals,
485 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
    [all...]
  /external/llvm/include/llvm/IR/
NoFolder.h 42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
43 if (HasNUW) BO->setHasNoUnsignedWrap();
44 if (HasNSW) BO->setHasNoSignedWrap();
45 return BO;
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
59 if (HasNUW) BO->setHasNoUnsignedWrap();
60 if (HasNSW) BO->setHasNoSignedWrap();
61 return BO;
74 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS);
75 if (HasNUW) BO->setHasNoUnsignedWrap()
    [all...]
InstrTypes.h 196 BinaryOperator *BO = Create(Opc, V1, V2, Name);
197 BO->setHasNoSignedWrap(true);
198 return BO;
202 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB);
203 BO->setHasNoSignedWrap(true);
204 return BO;
208 BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
209 BO->setHasNoSignedWrap(true);
210 return BO;
215 BinaryOperator *BO = Create(Opc, V1, V2, Name)
    [all...]
  /external/llvm/lib/Analysis/
ScalarEvolutionAliasAnalysis.cpp 161 Value *BO = GetBaseValue(BS);
162 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr))
166 Location(BO ? BO : LocB.Ptr,
167 BO ? +UnknownSize : LocB.Size,
168 BO ? nullptr : LocB.TBAATag)) == NoAlias)
PHITransAddr.cpp 299 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(U))
300 if (BO->getOpcode() == Instruction::Add &&
301 BO->getOperand(0) == LHS && BO->getOperand(1) == RHS &&
302 BO->getParent()->getParent() == CurBB->getParent() &&
303 (!DT || DT->dominates(BO->getParent(), PredBB)))
304 return BO;
  /external/clang/lib/Analysis/
ThreadSafetyCommon.cpp 268 const BinaryOperator *BO,
270 til::SExpr *E0 = translate(BO->getLHS(), Ctx);
271 til::SExpr *E1 = translate(BO->getRHS(), Ctx);
280 const BinaryOperator *BO,
283 const Expr *LHS = BO->getLHS();
284 const Expr *RHS = BO->getRHS();
306 til::SExpr *SExprBuilder::translateBinaryOperator(const BinaryOperator *BO,
308 switch (BO->getOpcode()) {
311 return new (Arena) til::Undefined(BO);
313 case BO_Mul: return translateBinOp(til::BOP_Mul, BO, Ctx)
    [all...]
PseudoConstantAnalysis.cpp 94 const BinaryOperator *BO = cast<BinaryOperator>(Head);
96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts());
103 switch (BO->getOpcode()) {
107 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts());
UninitializedValues.cpp 328 void VisitBinaryOperator(BinaryOperator *BO);
384 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) {
390 if (BO->isCompoundAssignmentOp())
391 classify(BO->getLHS(), Use);
392 else if (BO->getOpcode() == BO_Assign)
393 classify(BO->getLHS(), Ignore);
451 void VisitBinaryOperator(BinaryOperator *bo);
686 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) {
687 if (BO->getOpcode() == BO_Assign) {
688 FindVarResult Var = findVar(BO->getLHS())
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineShifts.cpp 214 BinaryOperator *BO = cast<BinaryOperator>(I);
215 unsigned TypeWidth = BO->getType()->getScalarSizeInBits();
218 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1));
227 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt));
228 BO->setHasNoUnsignedWrap(false);
229 BO->setHasNoSignedWrap(false);
237 V = IC.Builder->CreateAnd(BO->getOperand(0),
238 ConstantInt::get(BO->getContext(), Mask));
240 VI->moveBefore(BO);
    [all...]
InstCombineSelect.cpp 211 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) {
213 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI);
215 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp);
259 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(),
261 if (isa<PossiblyExactOperator>(BO))
262 BO->setIsExact(TVI_BO->isExact());
263 if (isa<OverflowingBinaryOperator>(BO)) {
264 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap());
265 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap());
267 return BO;
    [all...]
InstCombineVectorOps.cpp 48 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
49 if (BO->hasOneUse() &&
50 (CheapToScalarize(BO->getOperand(0), isConstant) ||
51 CheapToScalarize(BO->getOperand(1), isConstant)))
236 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
238 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) {
240 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1),
243 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1),
245 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1);
690 BinaryOperator *BO = cast<BinaryOperator>(I)
    [all...]
InstCombineCompares.cpp     [all...]
InstCombineMulDivRem.cpp 223 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0);
224 if (!BO ||
225 (BO->getOpcode() != Instruction::UDiv &&
226 BO->getOpcode() != Instruction::SDiv)) {
228 BO = dyn_cast<BinaryOperator>(Op1);
231 if (BO && BO->hasOneUse() &&
232 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) &&
233 (BO->getOpcode() == Instruction::UDiv |
    [all...]
  /external/clang/lib/ARCMigrate/
TransZeroOutPropsInDealloc.cpp 154 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
155 return isZeroingPropIvar(BO);
194 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
195 if (!BO) return false;
196 if (BO->getOpcode() != BO_Assign) return false;
199 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens());
211 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr());
  /external/clang/lib/StaticAnalyzer/Checkers/
DirectIvarAssignment.cpp 78 void VisitBinaryOperator(const BinaryOperator *BO);
166 const BinaryOperator *BO) {
167 if (!BO->isAssignmentOp())
171 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts());
CheckObjCDealloc.cpp 80 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S))
81 if (BO->isAssignmentOp())
83 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts()))
85 if (BO->getRHS()->isNullPointerConstant(Ctx,
DeadStoresChecker.cpp 105 const BinaryOperator *BO =
107 if (!BO)
109 if (BO->getOpcode() == BO_Assign) {
110 Ex = BO->getRHS();
113 if (BO->getOpcode() == BO_Comma) {
114 Ex = BO->getRHS();
IvarInvalidationChecker.cpp 165 void VisitBinaryOperator(const BinaryOperator *BO);
672 const BinaryOperator *BO) {
673 VisitStmt(BO);
677 BinaryOperatorKind Opcode = BO->getOpcode();
683 if (isZero(BO->getRHS())) {
684 check(BO->getLHS());
688 if (Opcode != BO_Assign && isZero(BO->getLHS())) {
689 check(BO->getRHS());
DereferenceChecker.cpp 113 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) {
114 if (BO->isAssignmentOp())
115 S = BO->getRHS();
TestAfterDivZeroChecker.cpp 107 if (const BinaryOperator *BO = P->getStmtAs<BinaryOperator>()) {
108 BinaryOperator::Opcode Op = BO->getOpcode();
111 E = BO->getRHS();
  /external/llvm/lib/Transforms/Utils/
IntegerDivision.cpp 402 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint());
403 if (!BO || BO->getOpcode() != Instruction::URem)
406 Rem = BO;
460 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint());
461 if (!BO || BO->getOpcode() != Instruction::UDiv)
464 Div = BO;
  /external/llvm/lib/TableGen/
Record.cpp 238 Init *StringRecTy::convertValue(UnOpInit *BO) {
239 if (BO->getOpcode() == UnOpInit::CAST) {
240 Init *L = BO->getOperand()->convertInitializerTo(this);
242 if (L != BO->getOperand())
244 return BO;
247 return convertValue((TypedInit*)BO);
250 Init *StringRecTy::convertValue(BinOpInit *BO) {
251 if (BO->getOpcode() == BinOpInit::STRCONCAT) {
252 Init *L = BO->getLHS()->convertInitializerTo(this);
253 Init *R = BO->getRHS()->convertInitializerTo(this)
    [all...]
  /external/clang/lib/Sema/
SemaOpenMP.cpp     [all...]

Completed in 2305 milliseconds

1 2 3 4