/external/clang/include/clang/AST/ |
StmtVisitor.h | 44 if (PTR(BinaryOperator) BinOp = dyn_cast<BinaryOperator>(S)) { 46 case BO_PtrMemD: DISPATCH(BinPtrMemD, BinaryOperator); 47 case BO_PtrMemI: DISPATCH(BinPtrMemI, BinaryOperator); 48 case BO_Mul: DISPATCH(BinMul, BinaryOperator); 49 case BO_Div: DISPATCH(BinDiv, BinaryOperator); 50 case BO_Rem: DISPATCH(BinRem, BinaryOperator); 51 case BO_Add: DISPATCH(BinAdd, BinaryOperator); 52 case BO_Sub: DISPATCH(BinSub, BinaryOperator); 53 case BO_Shl: DISPATCH(BinShl, BinaryOperator); [all...] |
/external/llvm/include/llvm/IR/ |
Instruction.def | 108 HANDLE_BINARY_INST( 8, Add , BinaryOperator) 109 HANDLE_BINARY_INST( 9, FAdd , BinaryOperator) 110 HANDLE_BINARY_INST(10, Sub , BinaryOperator) 111 HANDLE_BINARY_INST(11, FSub , BinaryOperator) 112 HANDLE_BINARY_INST(12, Mul , BinaryOperator) 113 HANDLE_BINARY_INST(13, FMul , BinaryOperator) 114 HANDLE_BINARY_INST(14, UDiv , BinaryOperator) 115 HANDLE_BINARY_INST(15, SDiv , BinaryOperator) 116 HANDLE_BINARY_INST(16, FDiv , BinaryOperator) 117 HANDLE_BINARY_INST(17, URem , BinaryOperator) [all...] |
NoFolder.h | 42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); 48 return BinaryOperator::CreateNSWAdd(LHS, RHS); 51 return BinaryOperator::CreateNUWAdd(LHS, RHS); 54 return BinaryOperator::CreateFAdd(LHS, RHS); 58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); 64 return BinaryOperator::CreateNSWSub(LHS, RHS); 67 return BinaryOperator::CreateNUWSub(LHS, RHS); 70 return BinaryOperator::CreateFSub(LHS, RHS) [all...] |
InstrTypes.h | 135 // BinaryOperator Class 138 class BinaryOperator : public Instruction { 142 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 144 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 146 BinaryOperator *clone_impl() const override; 161 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 169 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 176 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 182 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 188 static BinaryOperator *Create##OPC(Value *V1, Value *V2, [all...] |
/external/clang/test/Index/ |
nested-binaryoperators.cpp | 172 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 160:51] 173 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 160:19] 174 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 159:36] 175 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 158:51] 176 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 158:19] 177 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 157:36] 178 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 156:36] 179 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 155:36] 180 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 154:36] 181 // CHECK: 3:11: BinaryOperator= Extent=[3:11 - 153:36 [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombine.h | 49 if (BinaryOperator::isNeg(V) || BinaryOperator::isFNeg(V) || 50 BinaryOperator::isNot(V)) 128 Instruction *visitAdd(BinaryOperator &I); 129 Instruction *visitFAdd(BinaryOperator &I); 131 Instruction *visitSub(BinaryOperator &I); 132 Instruction *visitFSub(BinaryOperator &I); 133 Instruction *visitMul(BinaryOperator &I); 136 Instruction *visitFMul(BinaryOperator &I); 137 Instruction *visitURem(BinaryOperator &I) [all...] |
InstCombineMulDivRem.cpp | 49 if (BinaryOperator *I = dyn_cast<BinaryOperator>(V)) 119 Instruction *InstCombiner::visitMul(BinaryOperator &I) { 133 return BinaryOperator::CreateNeg(Op0, I.getName()); 144 return BinaryOperator::CreateMul(NewOp, ConstantExpr::getShl(C1, C2)); 157 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); 183 BinaryOperator::CreateMul(Sub, 210 return BinaryOperator::CreateAdd(Builder->CreateMul(X, Op1), Mul); 217 return BinaryOperator::CreateMul(Op0v, Op1v) [all...] |
InstCombineShifts.cpp | 24 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) { 214 BinaryOperator *BO = cast<BinaryOperator>(I); 256 BinaryOperator *BO = cast<BinaryOperator>(I); 315 BinaryOperator &I) { 348 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) 351 return BinaryOperator::CreateMul(BO->getOperand(0), 407 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
IntegerDivision.h | 21 class BinaryOperator; 33 bool expandRemainder(BinaryOperator *Rem); 42 bool expandDivision(BinaryOperator* Div); 50 bool expandRemainderUpTo32Bits(BinaryOperator *Rem); 56 bool expandRemainderUpTo64Bits(BinaryOperator *Rem); 63 bool expandDivisionUpTo32Bits(BinaryOperator *Div); 69 bool expandDivisionUpTo64Bits(BinaryOperator *Div);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
UndefResultChecker.cpp | 29 : public Checker< check::PostStmt<BinaryOperator> > { 34 void checkPostStmt(const BinaryOperator *B, CheckerContext &C) const; 38 void UndefResultChecker::checkPostStmt(const BinaryOperator *B, 78 << BinaryOperator::getOpcodeStr(B->getOpcode()) 84 << BinaryOperator::getOpcodeStr(B->getOpcode())
|
TestAfterDivZeroChecker.cpp | 80 : public Checker<check::PreStmt<BinaryOperator>, check::BranchCondition, 86 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 107 if (const BinaryOperator *BO = P->getStmtAs<BinaryOperator>()) { 108 BinaryOperator::Opcode Op = BO->getOpcode(); 202 void TestAfterDivZeroChecker::checkPreStmt(const BinaryOperator *B, 204 BinaryOperator::Opcode Op = B->getOpcode(); 216 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(Condition)) {
|
FixedAddressChecker.cpp | 27 : public Checker< check::PreStmt<BinaryOperator> > { 31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 35 void FixedAddressChecker::checkPreStmt(const BinaryOperator *B,
|
DivZeroChecker.cpp | 25 class DivZeroChecker : public Checker< check::PreStmt<BinaryOperator> > { 31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 48 void DivZeroChecker::checkPreStmt(const BinaryOperator *B, 50 BinaryOperator::Opcode Op = B->getOpcode();
|
IdenticalExprChecker.cpp | 49 bool VisitBinaryOperator(const BinaryOperator *B); 54 void reportIdenticalExpr(const BinaryOperator *B, bool CheckBitwise, 56 void checkBitwiseOrLogicalOp(const BinaryOperator *B, bool CheckBitwise); 57 void checkComparisonOp(const BinaryOperator *B); 61 void FindIdenticalExprVisitor::reportIdenticalExpr(const BinaryOperator *B, 78 void FindIdenticalExprVisitor::checkBitwiseOrLogicalOp(const BinaryOperator *B, 89 while (const BinaryOperator *B2 = dyn_cast<BinaryOperator>(LHS)) { 164 bool FindIdenticalExprVisitor::VisitBinaryOperator(const BinaryOperator *B) { 165 BinaryOperator::Opcode Op = B->getOpcode() [all...] |
PointerArithChecker.cpp | 26 : public Checker< check::PreStmt<BinaryOperator> > { 30 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 34 void PointerArithChecker::checkPreStmt(const BinaryOperator *B,
|
PointerSubChecker.cpp | 27 : public Checker< check::PreStmt<BinaryOperator> > { 31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 35 void PointerSubChecker::checkPreStmt(const BinaryOperator *B,
|
/external/clang/test/Tooling/ |
clang-check-ast-dump.cpp | 8 // CHECK-NEXT: BinaryOperator 18 // CHECK-FILTER-NEXT: BinaryOperator 35 // CHECK-ATTR-NEXT: BinaryOperator
|
/external/clang/lib/StaticAnalyzer/Core/ |
SimpleConstraintManager.cpp | 53 if (BinaryOperator::isComparisonOp(SSE->getOpcode())) { 143 BinaryOperator::Opcode op = SE->getOpcode(); 144 if (BinaryOperator::isComparisonOp(op)) { 146 op = BinaryOperator::negateComparisonOp(op); 159 BinaryOperator::Opcode Op = SSE->getOpcode(); 160 assert(BinaryOperator::isComparisonOp(Op)); 170 Op = BinaryOperator::reverseComparisonOp(Op); 172 Op = BinaryOperator::negateComparisonOp(Op); 196 BinaryOperator::Opcode Op = SE->getOpcode(); 212 BinaryOperator::Opcode op [all...] |
/external/llvm/unittests/Transforms/Utils/ |
Cloning.cpp | 66 BinaryOperator *Add = BinaryOperator::Create(Instruction::Add, V, V); 67 BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V); 68 BinaryOperator *Mul = BinaryOperator::Create(Instruction::Mul, V, V); 70 BinaryOperator *AddClone = this->clone(Add); 71 BinaryOperator *SubClone = this->clone(Sub); 72 BinaryOperator *MulClone = this->clone(Mul); 149 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V) [all...] |
IntegerDivision.cpp | 46 expandDivision(cast<BinaryOperator>(Div)); 76 expandDivision(cast<BinaryOperator>(Div)); 106 expandRemainder(cast<BinaryOperator>(Rem)); 136 expandRemainder(cast<BinaryOperator>(Rem)); 167 expandDivision(cast<BinaryOperator>(Div)); 197 expandDivision(cast<BinaryOperator>(Div)); 227 expandRemainder(cast<BinaryOperator>(Rem)); 257 expandRemainder(cast<BinaryOperator>(Rem));
|
/external/llvm/unittests/IR/ |
IRBuilderTest.cpp | 209 cast<BinaryOperator>(Builder.CreateNSWAdd(V, V))->hasNoSignedWrap()); 211 cast<BinaryOperator>(Builder.CreateNSWMul(V, V))->hasNoSignedWrap()); 213 cast<BinaryOperator>(Builder.CreateNSWSub(V, V))->hasNoSignedWrap()); 214 EXPECT_TRUE(cast<BinaryOperator>( 219 cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap()); 221 cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap()); 223 cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap()); 224 EXPECT_TRUE(cast<BinaryOperator>(
|
/external/clang/lib/ARCMigrate/ |
TransZeroOutPropsInDealloc.cpp | 91 bool VisitBinaryOperator(BinaryOperator *BOE) { 154 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) 161 bool isZeroingPropIvar(BinaryOperator *BOE) { 194 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
|
/external/clang/lib/Analysis/ |
BodyFarm.cpp | 49 /// Create a new BinaryOperator representing a simple assignment. 50 BinaryOperator *makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty); 52 /// Create a new BinaryOperator representing a comparison. 53 BinaryOperator *makeComparison(const Expr *LHS, const Expr *RHS, 54 BinaryOperator::Opcode Op); 88 BinaryOperator *ASTMaker::makeAssignment(const Expr *LHS, const Expr *RHS, 90 return new (C) BinaryOperator(const_cast<Expr*>(LHS), const_cast<Expr*>(RHS), 95 BinaryOperator *ASTMaker::makeComparison(const Expr *LHS, const Expr *RHS, 96 BinaryOperator::Opcode Op) { 97 assert(BinaryOperator::isLogicalOp(Op) | [all...] |
/external/clang/unittests/AST/ |
ASTTypeTraitsTest.cpp | 52 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<BinaryOperator>())); 53 EXPECT_FALSE(DNT<CallExpr>().isBaseOf(DNT<BinaryOperator>())); 54 EXPECT_FALSE(DNT<BinaryOperator>().isBaseOf(DNT<CallExpr>()));
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
SValBuilder.h | 93 virtual SVal evalBinOpNN(ProgramStateRef state, BinaryOperator::Opcode op, 98 virtual SVal evalBinOpLL(ProgramStateRef state, BinaryOperator::Opcode op, 104 virtual SVal evalBinOpLN(ProgramStateRef state, BinaryOperator::Opcode op, 112 SVal makeSymExprValNN(ProgramStateRef state, BinaryOperator::Opcode op, 115 SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op, 276 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, 279 NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op, 282 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
|