/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
H A D | IntegerDivision.h | 20 class BinaryOperator; 32 bool expandRemainder(BinaryOperator *Rem); 41 bool expandDivision(BinaryOperator* Div); 49 bool expandRemainderUpTo32Bits(BinaryOperator *Rem); 55 bool expandRemainderUpTo64Bits(BinaryOperator *Rem); 62 bool expandDivisionUpTo32Bits(BinaryOperator *Div); 68 bool expandDivisionUpTo64Bits(BinaryOperator *Div);
|
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/AST/ |
H A D | StmtVisitor.h | 47 if (PTR(BinaryOperator) BinOp = dyn_cast<BinaryOperator>(S)) { 49 case BO_PtrMemD: DISPATCH(BinPtrMemD, BinaryOperator); 50 case BO_PtrMemI: DISPATCH(BinPtrMemI, BinaryOperator); 51 case BO_Mul: DISPATCH(BinMul, BinaryOperator); 52 case BO_Div: DISPATCH(BinDiv, BinaryOperator); 53 case BO_Rem: DISPATCH(BinRem, BinaryOperator); 54 case BO_Add: DISPATCH(BinAdd, BinaryOperator); 55 case BO_Sub: DISPATCH(BinSub, BinaryOperator); 56 case BO_Shl: DISPATCH(BinShl, BinaryOperator); [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | NoFolder.h | 47 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); 54 return BinaryOperator::CreateFAdd(LHS, RHS); 60 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); 67 return BinaryOperator::CreateFSub(LHS, RHS); 73 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS); 80 return BinaryOperator::CreateFMul(LHS, RHS); 86 return BinaryOperator [all...] |
H A D | InstrTypes.h | 187 // BinaryOperator Class 190 class BinaryOperator : public Instruction { class in namespace:llvm 194 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 196 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 202 BinaryOperator *cloneImpl() const; 218 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 226 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 233 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 239 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 245 static BinaryOperator *Creat [all...] |
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | FixedAddressChecker.cpp | 26 : public Checker< check::PreStmt<BinaryOperator> > { 30 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 34 void FixedAddressChecker::checkPreStmt(const BinaryOperator *B,
|
H A D | PointerSubChecker.cpp | 26 : public Checker< check::PreStmt<BinaryOperator> > { 30 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 34 void PointerSubChecker::checkPreStmt(const BinaryOperator *B,
|
H A D | DivZeroChecker.cpp | 26 class DivZeroChecker : public Checker< check::PreStmt<BinaryOperator> > { 32 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 38 if (const auto *BE = dyn_cast<BinaryOperator>(S)) 57 void DivZeroChecker::checkPreStmt(const BinaryOperator *B, 59 BinaryOperator::Opcode Op = B->getOpcode();
|
H A D | UndefResultChecker.cpp | 29 : public Checker< check::PostStmt<BinaryOperator> > { 34 void checkPostStmt(const BinaryOperator *B, CheckerContext &C) const; 61 static bool isShiftOverflow(const BinaryOperator *B, CheckerContext &C) { 66 static bool isLeftShiftResultUnrepresentable(const BinaryOperator *B, 76 void UndefResultChecker::checkPostStmt(const BinaryOperator *B, 113 << BinaryOperator::getOpcodeStr(B->getOpcode()) 170 << BinaryOperator::getOpcodeStr(B->getOpcode())
|
H A D | IdenticalExprChecker.cpp | 48 bool VisitBinaryOperator(const BinaryOperator *B); 53 void reportIdenticalExpr(const BinaryOperator *B, bool CheckBitwise, 55 void checkBitwiseOrLogicalOp(const BinaryOperator *B, bool CheckBitwise); 56 void checkComparisonOp(const BinaryOperator *B); 60 void FindIdenticalExprVisitor::reportIdenticalExpr(const BinaryOperator *B, 77 void FindIdenticalExprVisitor::checkBitwiseOrLogicalOp(const BinaryOperator *B, 88 while (const BinaryOperator *B2 = dyn_cast<BinaryOperator>(LHS)) { 181 bool FindIdenticalExprVisitor::VisitBinaryOperator(const BinaryOperator *B) { 182 BinaryOperator [all...] |
H A D | MallocOverflowSecurityChecker.cpp | 35 const BinaryOperator *mulop; 39 MallocOverflowCheck(const BinaryOperator *m, const Expr *v, APSInt val) 75 const BinaryOperator * mulop = nullptr; 81 if (const BinaryOperator *binop = dyn_cast<BinaryOperator>(e)) { 175 void CheckAssignmentExpr(BinaryOperator *AssignEx) { 190 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(rhse)) { 227 void VisitBinaryOperator(BinaryOperator *E) {
|
H A D | TestAfterDivZeroChecker.cpp | 78 : public Checker<check::PreStmt<BinaryOperator>, check::BranchCondition, 84 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 104 if (const BinaryOperator *BO = P->getStmtAs<BinaryOperator>()) { 105 BinaryOperator::Opcode Op = BO->getOpcode(); 200 void TestAfterDivZeroChecker::checkPreStmt(const BinaryOperator *B, 202 BinaryOperator::Opcode Op = B->getOpcode(); 214 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(Condition)) {
|
H A D | UndefinedAssignmentChecker.cpp | 73 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(StoreE)) {
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineInternal.h | 88 Instruction *visitAdd(BinaryOperator &I); 89 Instruction *visitFAdd(BinaryOperator &I); 92 Instruction *visitSub(BinaryOperator &I); 93 Instruction *visitFSub(BinaryOperator &I); 94 Instruction *visitMul(BinaryOperator &I); 95 Instruction *visitFMul(BinaryOperator &I); 96 Instruction *visitURem(BinaryOperator &I); 97 Instruction *visitSRem(BinaryOperator &I); 98 Instruction *visitFRem(BinaryOperator &I); 99 bool simplifyDivRemOfSelectWithZeroOp(BinaryOperator [all...] |
H A D | InstCombineMulDivRem.cpp | 70 BinaryOperator *I = dyn_cast<BinaryOperator>(V); 103 static Value *foldMulSelectToNegate(BinaryOperator &I, 142 Instruction *InstCombinerImpl::visitMul(BinaryOperator &I) { 161 BinaryOperator *BO = BinaryOperator::CreateNeg(Op0, I.getName()); 177 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0)); 178 BinaryOperator *BO = BinaryOperator [all...] |
H A D | InstCombineAddSub.cpp | 767 static Value *checkForNegativeOperand(BinaryOperator &I, 824 static Instruction *foldNoWrapAdd(BinaryOperator &Add, 851 return BinaryOperator::CreateAdd(WideX, NewC); 858 return BinaryOperator::CreateAdd(WideX, NewC); 864 Instruction *InstCombinerImpl::foldAddWithConstant(BinaryOperator &Add) { 878 return BinaryOperator::CreateSub(ConstantExpr::getAdd(Op00C, Op1C), X); 885 return BinaryOperator::CreateAdd(Builder.CreateNot(Y), X); 898 return BinaryOperator::CreateSub(InstCombiner::SubOne(Op1C), X); 908 return BinaryOperator::CreateAdd(X, ConstantExpr::getAdd(Op01C, Op1C)); 913 return BinaryOperator [all...] |
H A D | InstCombineShifts.cpp | 60 BinaryOperator *Sh0, const SimplifyQuery &SQ, 143 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); 185 dropRedundantMaskingOfLeftShiftInput(BinaryOperator *OuterShift, 317 auto *NewShift = BinaryOperator::Create(OuterShift->getOpcode(), X, 323 return BinaryOperator::Create(Instruction::And, NewShift, NewMask); 330 static Instruction *foldShiftOfShiftedLogic(BinaryOperator &I, 333 auto *LogicInst = dyn_cast<BinaryOperator>(I.getOperand(0)); 349 BinaryOperator *BO; 369 return BinaryOperator [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Scalar/ |
H A D | NaryReassociate.h | 89 class BinaryOperator; 139 Instruction *tryReassociateBinaryOp(BinaryOperator *I); 144 BinaryOperator *I); 147 BinaryOperator *I); 150 bool matchTernaryOp(BinaryOperator *I, Value *V, Value *&Op1, Value *&Op2); 153 const SCEV *getBinarySCEV(BinaryOperator *I, const SCEV *LHS,
|
H A D | Reassociate.h | 36 class BinaryOperator; 103 void ReassociateExpression(BinaryOperator *I); 104 void RewriteExprTree(BinaryOperator *I, 106 Value *OptimizeExpression(BinaryOperator *I, 119 Value *OptimizeMul(BinaryOperator *I,
|
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
H A D | RangedConstraintManager.cpp | 34 BinaryOperator::Opcode op = SIE->getOpcode(); 35 if (BinaryOperator::isComparisonOp(op) && op != BO_Cmp) { 37 op = BinaryOperator::negateComparisonOp(op); 43 BinaryOperator::Opcode Op = SSE->getOpcode(); 44 assert(BinaryOperator::isComparisonOp(Op)); 62 Op = BinaryOperator::reverseComparisonOp(Op); 64 Op = BinaryOperator::negateComparisonOp(Op); 68 if (BinaryOperator::isEqualityOp(Op)) { 141 BinaryOperator::Opcode Op, 143 assert(BinaryOperator [all...] |
H A D | SimpleSValBuilder.cpp | 33 SVal evalBinOpNN(ProgramStateRef state, BinaryOperator::Opcode op, 35 SVal evalBinOpLL(ProgramStateRef state, BinaryOperator::Opcode op, 37 SVal evalBinOpLN(ProgramStateRef state, BinaryOperator::Opcode op, 48 SVal MakeSymIntVal(const SymExpr *LHS, BinaryOperator::Opcode op, 86 BinaryOperator::Opcode op, 155 if (BinaryOperator::isComparisonOp(op)) { 181 static bool isInRelation(BinaryOperator::Opcode Rel, SymbolRef Sym, 226 if (BinaryOperator::isAdditiveOp(SymInt->getOpcode())) 240 BinaryOperator::Opcode Op, 256 if (BinaryOperator [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/examples/Fibonacci/ |
H A D | fibonacci.cpp | 83 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); 88 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); 93 Value *Sum = BinaryOperator::CreateAdd(CallFibX1, CallFibX2,
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | IntegerDivision.cpp | 375 bool llvm::expandRemainder(BinaryOperator *Rem) { 404 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); 417 if (BinaryOperator *UDiv = dyn_cast<BinaryOperator>(Builder.GetInsertPoint())) { 433 bool llvm::expandDivision(BinaryOperator *Div) { 463 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); 485 bool llvm::expandRemainderUpTo32Bits(BinaryOperator *Rem) { 526 return expandRemainder(cast<BinaryOperator>(ExtRe [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/examples/ModuleMaker/ |
H A D | ModuleMaker.cpp | 54 Instruction *Add = BinaryOperator::Create(Instruction::Add, Two, Three,
|
/netbsd-current/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
H A D | TransZeroOutPropsInDealloc.cpp | 90 bool VisitBinaryOperator(BinaryOperator *BOE) { 151 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) 158 bool isZeroingPropIvar(BinaryOperator *BOE) { 191 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm());
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | Reassociate.cpp | 149 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { 153 return cast<BinaryOperator>(I); 157 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode1, 163 return cast<BinaryOperator>(I); 223 assert(isa<BinaryOperator>(I) && "Expected binary operator."); 231 cast<BinaryOperator>(I)->swapOperands(); 234 static BinaryOperator *CreateAdd(Value *S1, Value *S2, const Twine &Name, 237 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); 239 BinaryOperator *Res = 240 BinaryOperator [all...] |