/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyWasmObjectWriter.cpp | 51 if (auto BinOp = dyn_cast<MCBinaryExpr>(Expr)) in IsFunctionExpr() local 52 return IsFunctionExpr(BinOp->getLHS()) != IsFunctionExpr(BinOp->getRHS()); in IsFunctionExpr() 72 if (auto BinOp = dyn_cast<MCBinaryExpr>(Expr)) { in GetFixupSection() local 73 auto SectionLHS = GetFixupSection(BinOp->getLHS()); in GetFixupSection() 74 auto SectionRHS = GetFixupSection(BinOp->getRHS()); in GetFixupSection()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86LegalizerInfo.cpp | 74 for (unsigned BinOp : {G_SUB, G_MUL, G_AND, G_OR, G_XOR}) in X86LegalizerInfo() 75 setLegalizeScalarToDifferentSizeStrategy(BinOp, 0, widen_1); in X86LegalizerInfo() 104 for (unsigned BinOp : {G_ADD, G_SUB, G_MUL, G_AND, G_OR, G_XOR}) in setLegalizerInfo32bit() 106 setAction({BinOp, Ty}, Legal); in setLegalizerInfo32bit() 193 for (unsigned BinOp : {G_ADD, G_SUB, G_MUL, G_AND, G_OR, G_XOR}) in setLegalizerInfo64bit() 194 setAction({BinOp, s64}, Legal); in setLegalizerInfo64bit() 246 for (unsigned BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV}) in setLegalizerInfoSSE1() 248 setAction({BinOp, Ty}, Legal); in setLegalizerInfoSSE1() 282 for (unsigned BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV}) in setLegalizerInfoSSE2() 284 setAction({BinOp, Ty}, Legal); in setLegalizerInfoSSE2() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | ThreadSafetyLogical.h | 55 class BinOp : public LExpr { 59 BinOp(LExpr *LHS, LExpr *RHS, Opcode Code) : LExpr(Code), LHS(LHS), RHS(RHS) {} in BinOp() function 69 class And : public BinOp { 71 And(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::And) {} in And() 76 class Or : public BinOp { 78 Or(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::Or) {} in Or()
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 158 static bool matchPairwiseReductionAtLevel(const BinaryOperator *BinOp, in matchPairwiseReductionAtLevel() argument 166 if (BinOp == nullptr) in matchPairwiseReductionAtLevel() 169 assert(BinOp->getType()->isVectorTy() && "Expecting a vector type"); in matchPairwiseReductionAtLevel() 171 unsigned Opcode = BinOp->getOpcode(); in matchPairwiseReductionAtLevel() 172 Value *L = BinOp->getOperand(0); in matchPairwiseReductionAtLevel() 173 Value *R = BinOp->getOperand(1); in matchPairwiseReductionAtLevel() 342 BinaryOperator *BinOp; in matchVectorSplittingReduction() local 343 if (!(BinOp = dyn_cast<BinaryOperator>(RdxOp))) in matchVectorSplittingReduction() 345 if (BinOp->getOpcode() != RdxOpcode) in matchVectorSplittingReduction() 350 std::tie(NextRdxOp, Shuffle) = getShuffleAndOtherOprd(BinOp); in matchVectorSplittingReduction()
|
/external/clang/lib/Analysis/ |
D | ThreadSafetyLogical.cpp | 24 const auto LeftAndOperator = [=](const BinOp *A) { in implies() 28 const auto RightAndOperator = [=](const BinOp *A) { in implies() 34 const auto LeftOrOperator = [=](const BinOp *A) { in implies() 38 const auto RightOrOperator = [=](const BinOp *A) { in implies()
|
D | Consumed.cpp | 497 void VisitBinaryOperator(const BinaryOperator *BinOp); 706 void ConsumedStmtVisitor::VisitBinaryOperator(const BinaryOperator *BinOp) { in VisitBinaryOperator() argument 707 switch (BinOp->getOpcode()) { in VisitBinaryOperator() 710 InfoEntry LEntry = findInfo(BinOp->getLHS()), in VisitBinaryOperator() 711 REntry = findInfo(BinOp->getRHS()); in VisitBinaryOperator() 732 PropagationMap.insert(PairType(BinOp, PropagationInfo(BinOp, in VisitBinaryOperator() 733 static_cast<EffectiveOp>(BinOp->getOpcode() == BO_LOr), LTest, RTest))); in VisitBinaryOperator() 740 forwardInfo(BinOp->getLHS(), BinOp); in VisitBinaryOperator() 1292 } else if (const BinaryOperator *BinOp = in splitState() local 1295 PInfo = Visitor.getInfo(BinOp->getLHS()); in splitState() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 160 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst); in canGetThrough() local 161 if (BinOp && isa<OverflowingBinaryOperator>(BinOp) && in canGetThrough() 162 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough() 454 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst); in analyzeSExtension() local 455 if (BinOp && isa<ConstantInt>(BinOp->getOperand(0))) in analyzeSExtension()
|
/external/python/cpython2/Lib/test/ |
D | test_ast.py | 305 x = ast.BinOp() 315 x = ast.BinOp(n1, addop, n3) 320 x = ast.BinOp(1, 2, 3) 325 x = ast.BinOp(1, 2, 3, lineno=0) 332 self.assertRaises(TypeError, ast.BinOp, 1, 2) 334 self.assertRaises(TypeError, ast.BinOp, 1, 2, 3, 4) 336 self.assertRaises(TypeError, ast.BinOp, 1, 2, lineno=0) 338 self.assertRaises(TypeError, ast.BinOp, 1, 2, 3, 4, lineno=0) 341 x = ast.BinOp(left=1, op=2, right=3, lineno=0) 348 x = ast.BinOp(1, 2, 3, foobarbaz=42)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | PredicateInfo.cpp | 347 } else if (auto *BinOp = dyn_cast<BinaryOperator>(Cond)) { in processAssume() local 349 assert(BinOp->getOpcode() == Instruction::And && in processAssume() 351 auto *PA = new PredicateAssume(BinOp, II, BinOp); in processAssume() 352 addInfoFor(OpsToRename, BinOp, PA); in processAssume() 398 auto *BinOp = cast<BinaryOperator>(BI->getCondition()); in processBranch() local 399 if (BinOp->getOpcode() == Instruction::And) in processBranch() 401 else if (BinOp->getOpcode() == Instruction::Or) in processBranch() 403 ConditionsToProcess.push_back(BinOp->getOperand(0)); in processBranch() 404 ConditionsToProcess.push_back(BinOp->getOperand(1)); in processBranch() 415 } else if (auto *BinOp = dyn_cast<BinaryOperator>(Cond)) { in processBranch() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 126 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef() local 127 if (!BinOp || BinOp->getOpcode() != Instruction::Xor) in handlePhiDef() 130 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() 134 V = BinOp->getOperand(0); in handlePhiDef() 135 Operations.push_back(BinOp); in handlePhiDef()
|
D | EarlyCSE.cpp | 130 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst)) { in getHashValue() local 131 Value *LHS = BinOp->getOperand(0); in getHashValue() 132 Value *RHS = BinOp->getOperand(1); in getHashValue() 133 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValue() 136 return hash_combine(BinOp->getOpcode(), LHS, RHS); in getHashValue()
|
/external/eigen/Eigen/src/Core/ |
D | Transpose.h | 332 template<bool DestIsTransposed, typename BinOp, typename DerivedA, typename DerivedB> 333 struct check_transpose_aliasing_compile_time_selector<DestIsTransposed,CwiseBinaryOp<BinOp,DerivedA… 349 template<typename Scalar, bool DestIsTransposed, typename BinOp, typename DerivedA, typename Derive… 350 struct check_transpose_aliasing_run_time_selector<Scalar,DestIsTransposed,CwiseBinaryOp<BinOp,Deriv… 352 static bool run(const Scalar* dest, const CwiseBinaryOp<BinOp,DerivedA,DerivedB>& src)
|
/external/swiftshader/third_party/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() 490 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI() local 491 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp); in FoldPHIArgOpIntoPHI() 492 if (isNUW) BinOp->setHasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI() 493 if (isNSW) BinOp->setHasNoSignedWrap(); in FoldPHIArgOpIntoPHI() 494 if (isExact) BinOp->setIsExact(); in FoldPHIArgOpIntoPHI() 495 BinOp->setDebugLoc(FirstInst->getDebugLoc()); in FoldPHIArgOpIntoPHI() 496 return BinOp; in FoldPHIArgOpIntoPHI()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 108 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst); in FoldPHIArgBinOpIntoPHI() local 110 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI() 556 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI() local 557 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp); in FoldPHIArgOpIntoPHI() 558 BinOp->copyIRFlags(PN.getIncomingValue(0)); in FoldPHIArgOpIntoPHI() 561 BinOp->andIRFlags(PN.getIncomingValue(i)); in FoldPHIArgOpIntoPHI() 563 BinOp->setDebugLoc(FirstInst->getDebugLoc()); in FoldPHIArgOpIntoPHI() 564 return BinOp; in FoldPHIArgOpIntoPHI()
|
/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 95 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst)) { in getHashValue() local 96 Value *LHS = BinOp->getOperand(0); in getHashValue() 97 Value *RHS = BinOp->getOperand(1); in getHashValue() 98 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValue() 101 return hash_combine(BinOp->getOpcode(), LHS, RHS); in getHashValue()
|
/external/swiftshader/third_party/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 364 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst); in FoldPHIArgBinOpIntoPHI() local 366 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI() 812 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI() local 813 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp); in FoldPHIArgOpIntoPHI() 814 BinOp->copyIRFlags(PN.getIncomingValue(0)); in FoldPHIArgOpIntoPHI() 817 BinOp->andIRFlags(PN.getIncomingValue(i)); in FoldPHIArgOpIntoPHI() 819 PHIArgMergedDebugLoc(BinOp, PN); in FoldPHIArgOpIntoPHI() 820 return BinOp; in FoldPHIArgOpIntoPHI()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 116 static ConstantRange makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp, 262 ConstantRange binaryOp(Instruction::BinaryOps BinOp,
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | NullabilityChecker.cpp | 1016 if (auto *BinOp = dyn_cast<BinaryOperator>(S)) { in matchValueExprForBind() local 1017 if (BinOp->getOpcode() == BO_Assign) in matchValueExprForBind() 1018 return BinOp->getRHS(); in matchValueExprForBind() 1174 const auto *BinOp = dyn_cast<BinaryOperator>(S); in checkBind() local 1179 const Stmt *NullabilitySource = BinOp ? BinOp->getRHS() : S; in checkBind() 1187 const Stmt *NullabilitySource = BinOp ? BinOp->getLHS() : S; in checkBind()
|
/external/python/cpython3/Lib/test/ |
D | test_fstring.py | 93 self.assertEqual(type(binop), ast.BinOp) 131 self.assertEqual(type(binop1), ast.BinOp) 143 self.assertEqual(type(binop2), ast.BinOp) 174 self.assertEqual(type(binop), ast.BinOp) 231 self.assertEqual(type(binop), ast.BinOp) 243 self.assertEqual(type(binop), ast.BinOp) 255 self.assertEqual(type(binop), ast.BinOp) 309 self.assertEqual(type(binop), ast.BinOp)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantRange.cpp | 180 ConstantRange::makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp, in makeGuaranteedNoWrapRegion() argument 194 assert(Instruction::isBinaryOp(BinOp) && "Binary operators only!"); in makeGuaranteedNoWrapRegion() 204 switch (BinOp) { in makeGuaranteedNoWrapRegion() 261 makeGuaranteedNoWrapRegion(BinOp, Other, OBO::NoSignedWrap), in makeGuaranteedNoWrapRegion() 262 makeGuaranteedNoWrapRegion(BinOp, Other, OBO::NoUnsignedWrap)); in makeGuaranteedNoWrapRegion() 723 ConstantRange ConstantRange::binaryOp(Instruction::BinaryOps BinOp, in binaryOp() argument 725 assert(Instruction::isBinaryOp(BinOp) && "Binary operators only!"); in binaryOp() 727 switch (BinOp) { in binaryOp()
|
/external/tensorflow/tensorflow/python/autograph/pyct/testing/ |
D | codegen.py | 52 (gast.BinOp, 8), 149 return gast.BinOp(self.generate_Name(), op, self.generate_Name())
|
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 251 int BinOp = CurTok; in ParseBinOpRHS() local 267 LHS = new BinaryExprAST(BinOp, LHS, RHS); in ParseBinOpRHS()
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | pretty_printer_test.py | 48 ast.BinOp(
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 285 int BinOp = CurTok; in ParseBinOpRHS() local 303 LHS = llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), in ParseBinOpRHS()
|