HomeSort by relevance Sort by last modified time
    Searched refs:BO (Results 1 - 25 of 66) 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/IR/
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/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 182 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0);
183 if (!BO ||
184 (BO->getOpcode() != Instruction::UDiv &&
185 BO->getOpcode() != Instruction::SDiv)) {
187 BO = dyn_cast<BinaryOperator>(Op1);
190 if (BO && BO->hasOneUse() &&
191 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) &&
192 (BO->getOpcode() == Instruction::UDiv |
    [all...]
InstCombineVectorOps.cpp 44 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
45 if (BO->hasOneUse() &&
46 (CheapToScalarize(BO->getOperand(0), isConstant) ||
47 CheapToScalarize(BO->getOperand(1), isConstant)))
157 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
159 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) {
161 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1),
164 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1),
166 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1);
InstCombineCompares.cpp     [all...]
InstructionCombining.cpp 569 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(&I))
570 return IC->Builder->CreateBinOp(BO->getOpcode(), Op0, Op1,
    [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/llvm/lib/Transforms/Scalar/
Reassociate.cpp 475 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
478 Worklist.push_back(std::make_pair(BO, Weight));
514 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
516 Worklist.push_back(std::make_pair(BO, It->second));
543 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op);
544 if (Opcode == Instruction::Mul && BO && BinaryOperator::isNeg(BO)) {
546 BO = LowerNegateToMultiply(BO);
547 DEBUG(dbgs() << *BO << 'n')
    [all...]
JumpThreading.cpp 129 bool ProcessBranchOnXOR(BinaryOperator *BO);
458 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
461 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
463 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals,
469 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
    [all...]
  /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 329 void VisitBinaryOperator(BinaryOperator *BO);
386 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) {
392 if (BO->isCompoundAssignmentOp())
393 classify(BO->getLHS(), Use);
394 else if (BO->getOpcode() == BO_Assign)
395 classify(BO->getLHS(), Ignore);
453 void VisitBinaryOperator(BinaryOperator *bo);
671 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) {
672 if (BO->getOpcode() == BO_Assign) {
673 FindVarResult Var = findVar(BO->getLHS())
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
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,
DirectIvarAssignment.cpp 82 void VisitBinaryOperator(const BinaryOperator *BO);
179 const BinaryOperator *BO) {
180 if (!BO->isAssignmentOp())
184 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts());
IvarInvalidationChecker.cpp 162 void VisitBinaryOperator(const BinaryOperator *BO);
661 const BinaryOperator *BO) {
662 VisitStmt(BO);
666 BinaryOperatorKind Opcode = BO->getOpcode();
672 if (isZero(BO->getRHS())) {
673 check(BO->getLHS());
677 if (Opcode != BO_Assign && isZero(BO->getLHS())) {
678 check(BO->getRHS());
DereferenceChecker.cpp 113 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) {
114 if (BO->isAssignmentOp())
115 S = BO->getRHS();
DeadStoresChecker.cpp 106 const BinaryOperator *BO =
108 if (!BO)
110 if (BO->getOpcode() == BO_Assign) {
111 Ex = BO->getRHS();
  /external/llvm/lib/Transforms/Utils/
IntegerDivision.cpp 351 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint());
352 if (!BO || BO->getOpcode() != Instruction::URem)
355 Rem = BO;
404 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint());
405 if (!BO || BO->getOpcode() != Instruction::UDiv)
408 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/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/AST/
Expr.cpp 84 } else if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) {
85 if (BO->isPtrMemOp()) {
86 assert(BO->getRHS()->isRValue());
87 E = BO->getLHS();
89 BO->getRHS()->getType()->getAs<MemberPointerType>();
90 Adjustments.push_back(SubobjectAdjustment(MPT, BO->getRHS()));
148 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) {
149 switch (BO->getOpcode()) {
165 return BO->getLHS()->isKnownToHaveBooleanValue() &&
166 BO->getRHS()->isKnownToHaveBooleanValue()
    [all...]

Completed in 387 milliseconds

1 2 3