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

1 2 3

  /external/llvm/include/llvm/Support/
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...]
  /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 ? 0 : LocB.TBAATag)) == NoAlias)
PHITransAddr.cpp 302 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(*UI))
303 if (BO->getOpcode() == Instruction::Add &&
304 BO->getOperand(0) == LHS && BO->getOperand(1) == RHS &&
305 BO->getParent()->getParent() == CurBB->getParent() &&
306 (!DT || DT->dominates(BO->getParent(), PredBB)))
307 return BO;
  /external/llvm/include/llvm/
InstrTypes.h 198 BinaryOperator *BO = Create(Opc, V1, V2, Name);
199 BO->setHasNoSignedWrap(true);
200 return BO;
204 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB);
205 BO->setHasNoSignedWrap(true);
206 return BO;
210 BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
211 BO->setHasNoSignedWrap(true);
212 return BO;
217 BinaryOperator *BO = Create(Opc, V1, V2, Name)
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineShifts.cpp 212 BinaryOperator *BO = cast<BinaryOperator>(I);
213 unsigned TypeWidth = BO->getType()->getScalarSizeInBits();
216 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1));
225 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt));
226 BO->setHasNoUnsignedWrap(false);
227 BO->setHasNoSignedWrap(false);
235 V = IC.Builder->CreateAnd(BO->getOperand(0),
236 ConstantInt::get(BO->getContext(), Mask));
238 VI->moveBefore(BO);
    [all...]
InstCombineSelect.cpp 186 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) {
188 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI);
190 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp);
234 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(),
236 if (isa<PossiblyExactOperator>(BO))
237 BO->setIsExact(TVI_BO->isExact());
238 if (isa<OverflowingBinaryOperator>(BO)) {
239 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap());
240 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap());
242 return BO;
    [all...]
InstCombineMulDivRem.cpp 183 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0);
184 if (!BO ||
185 (BO->getOpcode() != Instruction::UDiv &&
186 BO->getOpcode() != Instruction::SDiv)) {
188 BO = dyn_cast<BinaryOperator>(Op1);
191 if (BO && BO->hasOneUse() &&
192 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) &&
193 (BO->getOpcode() == Instruction::UDiv |
    [all...]
InstCombineVectorOps.cpp 42 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
43 if (BO->hasOneUse() &&
44 (CheapToScalarize(BO->getOperand(0), isConstant) ||
45 CheapToScalarize(BO->getOperand(1), isConstant)))
148 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
150 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) {
152 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1),
155 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1),
157 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1);
InstCombineCompares.cpp     [all...]
InstCombinePHI.cpp 35 if (OverflowingBinaryOperator *BO =
37 isNUW = BO->hasNoUnsignedWrap();
38 isNSW = BO->hasNoSignedWrap();
423 if (OverflowingBinaryOperator *BO =
425 isNUW = BO->hasNoUnsignedWrap();
426 isNSW = BO->hasNoSignedWrap();
    [all...]
  /external/clang/lib/ARCMigrate/
TransZeroOutPropsInDealloc.cpp 156 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
157 return isZeroingPropIvar(BO);
196 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
197 if (!BO) return false;
198 if (BO->getOpcode() != BO_Assign) return false;
201 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens());
213 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr());
  /external/clang/lib/Analysis/
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());
ReachableCode.cpp 91 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S))
92 return BO->getOpcode() != BO_Comma;
191 const BinaryOperator *BO = cast<BinaryOperator>(S);
192 return BO->getOperatorLoc();
UninitializedValues.cpp 315 void VisitBinaryOperator(BinaryOperator *BO);
362 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) {
368 if (BO->isCompoundAssignmentOp())
369 classify(BO->getLHS(), Use);
370 else if (BO->getOpcode() == BO_Assign)
371 classify(BO->getLHS(), Ignore);
432 void VisitBinaryOperator(BinaryOperator *bo);
635 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) {
636 if (BO->getOpcode() == BO_Assign) {
637 FindVarResult Var = findVar(BO->getLHS())
    [all...]
LiveVariables.cpp 212 void VisitBinaryOperator(BinaryOperator *BO);
528 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(cs->getStmt())) {
529 if (BO->getOpcode() == BO_Assign) {
531 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) {
ThreadSafety.cpp     [all...]
  /external/llvm/lib/Transforms/Scalar/
Reassociate.cpp 518 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
521 Worklist.push_back(std::make_pair(BO, Weight));
557 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
559 Worklist.push_back(std::make_pair(BO, It->second));
586 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op);
587 if (Opcode == Instruction::Mul && BO && BinaryOperator::isNeg(BO)) {
589 BO = LowerNegateToMultiply(BO);
590 DEBUG(dbgs() << *BO << 'n')
    [all...]
JumpThreading.cpp 129 bool ProcessBranchOnXOR(BinaryOperator *BO);
449 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
452 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
454 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals,
460 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
CheckObjCDealloc.cpp 79 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S))
80 if (BO->isAssignmentOp())
82 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts()))
84 if (BO->getRHS()->isNullPointerConstant(Ctx,
DereferenceChecker.cpp 102 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) {
103 if (BO->isAssignmentOp())
104 S = BO->getRHS();
DeadStoresChecker.cpp 107 const BinaryOperator *BO =
109 if (!BO)
111 if (BO->getOpcode() == BO_Assign) {
112 Ex = BO->getRHS();
  /external/llvm/lib/TableGen/
Record.cpp 219 Init *StringRecTy::convertValue(UnOpInit *BO) {
220 if (BO->getOpcode() == UnOpInit::CAST) {
221 Init *L = BO->getOperand()->convertInitializerTo(this);
223 if (L != BO->getOperand())
225 return BO;
228 return convertValue((TypedInit*)BO);
231 Init *StringRecTy::convertValue(BinOpInit *BO) {
232 if (BO->getOpcode() == BinOpInit::STRCONCAT) {
233 Init *L = BO->getLHS()->convertInitializerTo(this);
234 Init *R = BO->getRHS()->convertInitializerTo(this)
    [all...]
  /external/llvm/lib/Target/PowerPC/
PPCJITInfo.cpp 38 #define BUILD_BCCTRx(BO,BI,LINK) \
39 ((19 << 26) | ((BO) << 21) | ((BI) << 16) | (528 << 1) | ((LINK) & 1))
  /external/clang/lib/Sema/
AnalysisBasedWarnings.cpp 546 const BinaryOperator *BO = cast<BinaryOperator>(Term);
547 if (!BO->isLogicalOp())
550 Str = BO->getOpcodeStr();
551 Range = BO->getLHS()->getSourceRange();
553 if ((BO->getOpcode() == BO_LAnd && I->Output) ||
554 (BO->getOpcode() == BO_LOr && !I->Output))
556 Fixit1 = FixItHint::CreateRemoval(SourceRange(BO->getLocStart(),
557 BO->getOperatorLoc()));
560 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr);
    [all...]
  /external/clang/lib/AST/
Expr.cpp 77 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) {
78 switch (BO->getOpcode()) {
94 return BO->getLHS()->isKnownToHaveBooleanValue() &&
95 BO->getRHS()->isKnownToHaveBooleanValue();
99 return BO->getRHS()->isKnownToHaveBooleanValue();
    [all...]

Completed in 595 milliseconds

1 2 3