/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 120 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst); in FoldPHIArgBinOpIntoPHI() local 122 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI() 486 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI() local 487 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp); in FoldPHIArgOpIntoPHI() 488 if (isNUW) BinOp->setHasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI() 489 if (isNSW) BinOp->setHasNoSignedWrap(); in FoldPHIArgOpIntoPHI() 490 if (isExact) BinOp->setIsExact(); in FoldPHIArgOpIntoPHI() 491 BinOp->setDebugLoc(FirstInst->getDebugLoc()); in FoldPHIArgOpIntoPHI() 492 return BinOp; in FoldPHIArgOpIntoPHI()
|
/external/llvm/include/llvm/ |
D | InstrTypes.h | 321 static const Value *getNegArgument(const Value *BinOp); 322 static Value *getNegArgument( Value *BinOp); 323 static const Value *getFNegArgument(const Value *BinOp); 324 static Value *getFNegArgument( Value *BinOp); 325 static const Value *getNotArgument(const Value *BinOp); 326 static Value *getNotArgument( Value *BinOp);
|
/external/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 251 int BinOp = CurTok; in ParseBinOpRHS() local 267 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/clang/include/clang/AST/ |
D | StmtVisitor.h | 43 if (PTR(BinaryOperator) BinOp = dyn_cast<BinaryOperator>(S)) { in Visit() 44 switch (BinOp->getOpcode()) { in Visit()
|
D | RecursiveASTVisitor.h | 403 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(S)) { in TraverseStmt() local 404 switch (BinOp->getOpcode()) { in TraverseStmt()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 1251 BinOpInfo BinOp; in EmitAddConsiderOverflowBehavior() local 1252 BinOp.LHS = InVal; in EmitAddConsiderOverflowBehavior() 1253 BinOp.RHS = NextVal; in EmitAddConsiderOverflowBehavior() 1254 BinOp.Ty = E->getType(); in EmitAddConsiderOverflowBehavior() 1255 BinOp.Opcode = BO_Add; in EmitAddConsiderOverflowBehavior() 1256 BinOp.E = E; in EmitAddConsiderOverflowBehavior() 1257 return EmitOverflowCheckedBinOp(BinOp); in EmitAddConsiderOverflowBehavior() 1397 BinOpInfo BinOp; in VisitUnaryMinus() local 1398 BinOp.RHS = Visit(E->getSubExpr()); in VisitUnaryMinus() 1400 if (BinOp.RHS->getType()->isFPOrFPVectorTy()) in VisitUnaryMinus() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 263 int BinOp = CurTok; in ParseBinOpRHS() local 279 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 270 int BinOp = CurTok; in ParseBinOpRHS() local 286 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/llvm/lib/VMCore/ |
D | Instructions.cpp | 1654 Value *BinaryOperator::getNegArgument(Value *BinOp) { in getNegArgument() argument 1655 return cast<BinaryOperator>(BinOp)->getOperand(1); in getNegArgument() 1658 const Value *BinaryOperator::getNegArgument(const Value *BinOp) { in getNegArgument() argument 1659 return getNegArgument(const_cast<Value*>(BinOp)); in getNegArgument() 1662 Value *BinaryOperator::getFNegArgument(Value *BinOp) { in getFNegArgument() argument 1663 return cast<BinaryOperator>(BinOp)->getOperand(1); in getFNegArgument() 1666 const Value *BinaryOperator::getFNegArgument(const Value *BinOp) { in getFNegArgument() argument 1667 return getFNegArgument(const_cast<Value*>(BinOp)); in getFNegArgument() 1670 Value *BinaryOperator::getNotArgument(Value *BinOp) { in getNotArgument() argument 1671 assert(isNot(BinOp) && "getNotArgument on non-'not' instruction!"); in getNotArgument() [all …]
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/ |
D | parser.ml | 70 (* If BinOp binds less tightly with rhs than the operator after
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/ |
D | parser.ml | 70 (* If BinOp binds less tightly with rhs than the operator after
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/ |
D | parser.ml | 70 (* If BinOp binds less tightly with rhs than the operator after
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 371 int BinOp = CurTok; in ParseBinOpRHS() local 387 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/clang/lib/Sema/ |
D | SemaExpr.cpp | 7589 typedef BinaryOperator BinOp; in DiagnoseBitwisePrecedence() typedef 7590 BinOp::Opcode lhsopc = static_cast<BinOp::Opcode>(-1), in DiagnoseBitwisePrecedence() 7591 rhsopc = static_cast<BinOp::Opcode>(-1); in DiagnoseBitwisePrecedence() 7592 if (BinOp *BO = dyn_cast<BinOp>(lhs)) in DiagnoseBitwisePrecedence() 7594 if (BinOp *BO = dyn_cast<BinOp>(rhs)) in DiagnoseBitwisePrecedence() 7603 if ((BinOp::isComparisonOp(lhsopc) || BinOp::isBitwiseOp(lhsopc)) && in DiagnoseBitwisePrecedence() 7604 (BinOp::isComparisonOp(rhsopc) || BinOp::isBitwiseOp(rhsopc))) in DiagnoseBitwisePrecedence() 7607 if (BinOp::isComparisonOp(lhsopc)) { in DiagnoseBitwisePrecedence() 7610 << BinOp::getOpcodeStr(Opc) << BinOp::getOpcodeStr(lhsopc); in DiagnoseBitwisePrecedence() 7613 << BinOp::getOpcodeStr(lhsopc), in DiagnoseBitwisePrecedence() [all …]
|
D | SemaExprCXX.cpp | 4021 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Callee)) in MaybeBindToTemporary() local 4022 T = BinOp->getRHS()->getType(); in MaybeBindToTemporary()
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 415 int BinOp = CurTok; in ParseBinOpRHS() local 431 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/ |
D | parser.ml | 106 (* If BinOp binds less tightly with rhs than the operator after
|
/external/clang/lib/Rewrite/ |
D | RewriteObjC.cpp | 286 Stmt *RewritePropertyOrImplicitSetter(BinaryOperator *BinOp, Expr *newStmt, 1233 Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(BinaryOperator *BinOp, Expr *newStmt, in RewritePropertyOrImplicitSetter() argument 1246 dyn_cast<ObjCPropertyRefExpr>(BinOp->getLHS())) { in RewritePropertyOrImplicitSetter() 1304 ReplaceStmtWithRange(BinOp, ReplacingStmt, SrcRange); in RewritePropertyOrImplicitSetter() 5500 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(S)) { in CollectPropertySetters() local 5501 if (BinOp->isAssignmentOp()) { in CollectPropertySetters() 5502 if (isa<ObjCPropertyRefExpr>(BinOp->getLHS())) in CollectPropertySetters() 5503 PropSetters[BinOp->getLHS()] = BinOp; in CollectPropertySetters() 5593 BinaryOperator *BinOp = PropSetters[PropOrImplicitRefExpr]; in RewriteFunctionBodyOrGlobalInitializer() local 5594 if (BinOp) { in RewriteFunctionBodyOrGlobalInitializer() [all …]
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/ |
D | parser.ml | 117 (* If BinOp binds less tightly with rhs than the operator after
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 480 int BinOp = CurTok; in ParseBinOpRHS() local 496 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 2532 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(E)) { in getBitField() local 2533 if (BinOp->isAssignmentOp() && BinOp->getLHS()) in getBitField() 2534 return BinOp->getLHS()->getBitField(); in getBitField() 2536 if (BinOp->getOpcode() == BO_Comma && BinOp->getRHS()) in getBitField() 2537 return BinOp->getRHS()->getBitField(); in getBitField()
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/ |
D | parser.ml | 131 (* If BinOp binds less tightly with rhs than the operator after
|