/external/llvm/include/llvm/Transforms/Utils/ |
IntegerDivision.h | 21 class BinaryOperator; 34 bool expandRemainder(BinaryOperator *Rem); 44 bool expandDivision(BinaryOperator* Div); 51 bool expandRemainderUpTo32Bits(BinaryOperator *Rem); 58 bool expandDivisionUpTo32Bits(BinaryOperator *Div);
|
/external/llvm/include/llvm/Support/ |
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...] |
/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/lib/Transforms/InstCombine/ |
InstCombine.h | 44 if (BinaryOperator::isNeg(V) || 45 BinaryOperator::isFNeg(V) || 46 BinaryOperator::isNot(V)) 113 Instruction *visitAdd(BinaryOperator &I); 114 Instruction *visitFAdd(BinaryOperator &I); 116 Instruction *visitSub(BinaryOperator &I); 117 Instruction *visitFSub(BinaryOperator &I); 118 Instruction *visitMul(BinaryOperator &I); 121 Instruction *visitFMul(BinaryOperator &I); 122 Instruction *visitURem(BinaryOperator &I) [all...] |
InstCombineShifts.cpp | 22 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) { 212 BinaryOperator *BO = cast<BinaryOperator>(I); 254 BinaryOperator *BO = cast<BinaryOperator>(I); 313 BinaryOperator &I) { 345 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) 348 return BinaryOperator::CreateMul(BO->getOperand(0), 404 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) [all...] |
InstCombineMulDivRem.cpp | 47 if (BinaryOperator *I = dyn_cast<BinaryOperator>(V)) 117 Instruction *InstCombiner::visitMul(BinaryOperator &I) { 128 return BinaryOperator::CreateNeg(Op0, I.getName()); 139 return BinaryOperator::CreateMul(NewOp, ConstantExpr::getShl(C1, C2)); 152 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); 166 return BinaryOperator::CreateAdd(Add, Builder->CreateMul(C1, CI)); 187 BinaryOperator::CreateMul(Sub, 208 return BinaryOperator::CreateMul(Op0v, Op1v) [all...] |
InstCombineAddSub.cpp | 913 Instruction *InstCombiner::visitAdd(BinaryOperator &I) { 929 return BinaryOperator::CreateXor(LHS, RHS); 964 return BinaryOperator::CreateAShr(NewShl, ShAmt); 975 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), 981 return BinaryOperator::CreateAdd(XorLHS, 991 return BinaryOperator::CreateXor(LHS, RHS); 995 BinaryOperator *New = 996 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1)); 1008 return BinaryOperator::CreateNeg(NewAdd); 1011 return BinaryOperator::CreateSub(RHS, LHSV) [all...] |
InstCombineSelect.cpp | 151 if (!isa<BinaryOperator>(TI)) 187 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) { 189 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI); 191 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp); 234 BinaryOperator *TVI_BO = cast<BinaryOperator>(TVI); 235 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(), 269 BinaryOperator *FVI_BO = cast<BinaryOperator>(FVI) [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
FixedAddressChecker.cpp | 27 : public Checker< check::PreStmt<BinaryOperator> > { 31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 35 void FixedAddressChecker::checkPreStmt(const BinaryOperator *B,
|
UndefResultChecker.cpp | 29 : public Checker< check::PostStmt<BinaryOperator> > { 34 void checkPostStmt(const BinaryOperator *B, CheckerContext &C) const; 38 void UndefResultChecker::checkPostStmt(const BinaryOperator *B, 77 << BinaryOperator::getOpcodeStr(B->getOpcode()) 83 << BinaryOperator::getOpcodeStr(B->getOpcode())
|
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();
|
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,
|
UndefinedAssignmentChecker.cpp | 63 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(StoreE)) {
|
MallocOverflowSecurityChecker.cpp | 33 const BinaryOperator *mulop; 36 MallocOverflowCheck (const BinaryOperator *m, const Expr *v) 68 const BinaryOperator * mulop = NULL; 72 if (isa<BinaryOperator>(e)) { 73 const BinaryOperator * binop = dyn_cast<BinaryOperator>(e); 159 void VisitBinaryOperator(BinaryOperator *E) {
|
/external/llvm/include/llvm/IR/ |
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 virtual BinaryOperator *clone_impl() const LLVM_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/unittests/AST/ |
ASTTypeTraitsTest.cpp | 36 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<BinaryOperator>())); 37 EXPECT_FALSE(DNT<CallExpr>().isBaseOf(DNT<BinaryOperator>())); 38 EXPECT_FALSE(DNT<BinaryOperator>().isBaseOf(DNT<CallExpr>()));
|
/external/llvm/unittests/Transforms/Utils/ |
Cloning.cpp | 59 BinaryOperator *Add = BinaryOperator::Create(Instruction::Add, V, V); 60 BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V); 61 BinaryOperator *Mul = BinaryOperator::Create(Instruction::Mul, V, V); 63 BinaryOperator *AddClone = this->clone(Add); 64 BinaryOperator *SubClone = this->clone(Sub); 65 BinaryOperator *MulClone = this->clone(Mul); 142 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V) [all...] |
/external/llvm/lib/Transforms/Scalar/ |
Reassociate.cpp | 179 void ReassociateExpression(BinaryOperator *I); 180 void RewriteExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops); 181 Value *OptimizeExpression(BinaryOperator *I, 193 Value *OptimizeMul(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops); 236 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { 239 return cast<BinaryOperator>(V); 308 (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I))) 319 static BinaryOperator *LowerNegateToMultiply(Instruction *Neg) { 322 BinaryOperator *Res [all...] |
/external/clang/lib/Analysis/ |
BodyFarm.cpp | 50 /// Create a new BinaryOperator representing a simple assignment. 51 BinaryOperator *makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty); 53 /// Create a new BinaryOperator representing a comparison. 54 BinaryOperator *makeComparison(const Expr *LHS, const Expr *RHS, 55 BinaryOperator::Opcode Op); 86 BinaryOperator *ASTMaker::makeAssignment(const Expr *LHS, const Expr *RHS, 88 return new (C) BinaryOperator(const_cast<Expr*>(LHS), const_cast<Expr*>(RHS), 93 BinaryOperator *ASTMaker::makeComparison(const Expr *LHS, const Expr *RHS, 94 BinaryOperator::Opcode Op) { 95 assert(BinaryOperator::isLogicalOp(Op) | [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
SimpleConstraintManager.cpp | 53 if (BinaryOperator::isComparisonOp(SSE->getOpcode())) { 174 BinaryOperator::Opcode op = SE->getOpcode(); 175 if (BinaryOperator::isComparisonOp(op)) { 177 op = BinaryOperator::negateComparisonOp(op); 190 BinaryOperator::Opcode Op = SSE->getOpcode(); 191 assert(BinaryOperator::isComparisonOp(Op)); 201 Op = BinaryOperator::reverseComparisonOp(Op); 203 Op = BinaryOperator::negateComparisonOp(Op); 227 BinaryOperator::Opcode Op = SE->getOpcode(); 243 BinaryOperator::Opcode op [all...] |
/external/llvm/examples/Fibonacci/ |
fibonacci.cpp | 71 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); 76 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); 82 Value *Sum = BinaryOperator::CreateAdd(CallFibX1, CallFibX2,
|
/external/llvm/examples/ModuleMaker/ |
ModuleMaker.cpp | 49 Instruction *Add = BinaryOperator::Create(Instruction::Add, Two, Three,
|
/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, 275 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, 278 NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op, 281 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
|
/external/clang/lib/ARCMigrate/ |
TransZeroOutPropsInDealloc.cpp | 91 bool VisitBinaryOperator(BinaryOperator *BOE) { 156 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) 163 bool isZeroingPropIvar(BinaryOperator *BOE) { 196 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
|