Home
last modified time | relevance | path

Searched refs:BinOp (Results 1 – 25 of 67) sorted by relevance

123

/third_party/typescript/tests/baselines/reference/
DparserRealSource10.js227 …al, NodeType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp);
270 …ment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
271 …ment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp); // -=
272 …ment, NodeType.AsgMul, OperatorPrecedence.None, NodeType.None, "*=", ErrorRecoverySet.BinOp); // *=
274 …ment, NodeType.AsgDiv, OperatorPrecedence.None, NodeType.None, "/=", ErrorRecoverySet.BinOp); // /=
275 …ment, NodeType.AsgMod, OperatorPrecedence.None, NodeType.None, "%=", ErrorRecoverySet.BinOp); // %=
276 …ment, NodeType.AsgAnd, OperatorPrecedence.None, NodeType.None, "&=", ErrorRecoverySet.BinOp); // &=
277 …ment, NodeType.AsgXor, OperatorPrecedence.None, NodeType.None, "^=", ErrorRecoverySet.BinOp); // ^=
278 …nment, NodeType.AsgOr, OperatorPrecedence.None, NodeType.None, "|=", ErrorRecoverySet.BinOp); // |=
279 …nt, NodeType.AsgLsh, OperatorPrecedence.None, NodeType.None, "<<=", ErrorRecoverySet.BinOp); // <<=
[all …]
DparserRealSource10.types1417 …al, NodeType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp);
1418 …deType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp) : void
1439 >ErrorRecoverySet.BinOp : any
1441 >BinOp : any
2407 …ment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
2408 …ment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp) : void
2429 >ErrorRecoverySet.BinOp : any
2431 >BinOp : any
2433 …ment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp); // -=
2434 …ment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp) : void
[all …]
DparserRealSource10.errors.txt767 …al, NodeType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp);
1038 …ment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
1045 …ment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp); // -=
1052 …ment, NodeType.AsgMul, OperatorPrecedence.None, NodeType.None, "*=", ErrorRecoverySet.BinOp); // *=
1060 …ment, NodeType.AsgDiv, OperatorPrecedence.None, NodeType.None, "/=", ErrorRecoverySet.BinOp); // /=
1067 …ment, NodeType.AsgMod, OperatorPrecedence.None, NodeType.None, "%=", ErrorRecoverySet.BinOp); // %=
1074 …ment, NodeType.AsgAnd, OperatorPrecedence.None, NodeType.None, "&=", ErrorRecoverySet.BinOp); // &=
1081 …ment, NodeType.AsgXor, OperatorPrecedence.None, NodeType.None, "^=", ErrorRecoverySet.BinOp); // ^=
1088 …nment, NodeType.AsgOr, OperatorPrecedence.None, NodeType.None, "|=", ErrorRecoverySet.BinOp); // |=
1095 …nt, NodeType.AsgLsh, OperatorPrecedence.None, NodeType.None, "<<=", ErrorRecoverySet.BinOp); // <<=
[all …]
DparserRealSource10.symbols1035 …al, NodeType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp);
1607 …ment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
1622 …ment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp); // -=
1637 …ment, NodeType.AsgMul, OperatorPrecedence.None, NodeType.None, "*=", ErrorRecoverySet.BinOp); // *=
1652 …ment, NodeType.AsgDiv, OperatorPrecedence.None, NodeType.None, "/=", ErrorRecoverySet.BinOp); // /=
1667 …ment, NodeType.AsgMod, OperatorPrecedence.None, NodeType.None, "%=", ErrorRecoverySet.BinOp); // %=
1682 …ment, NodeType.AsgAnd, OperatorPrecedence.None, NodeType.None, "&=", ErrorRecoverySet.BinOp); // &=
1697 …ment, NodeType.AsgXor, OperatorPrecedence.None, NodeType.None, "^=", ErrorRecoverySet.BinOp); // ^=
1712 …nment, NodeType.AsgOr, OperatorPrecedence.None, NodeType.None, "|=", ErrorRecoverySet.BinOp); // |=
1727 …nt, NodeType.AsgLsh, OperatorPrecedence.None, NodeType.None, "<<=", ErrorRecoverySet.BinOp); // <<=
[all …]
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource10.ts226 …al, NodeType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp);
269 …ment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
270 …ment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp); // -=
271 …ment, NodeType.AsgMul, OperatorPrecedence.None, NodeType.None, "*=", ErrorRecoverySet.BinOp); // *=
273 …ment, NodeType.AsgDiv, OperatorPrecedence.None, NodeType.None, "/=", ErrorRecoverySet.BinOp); // /=
274 …ment, NodeType.AsgMod, OperatorPrecedence.None, NodeType.None, "%=", ErrorRecoverySet.BinOp); // %=
275 …ment, NodeType.AsgAnd, OperatorPrecedence.None, NodeType.None, "&=", ErrorRecoverySet.BinOp); // &=
276 …ment, NodeType.AsgXor, OperatorPrecedence.None, NodeType.None, "^=", ErrorRecoverySet.BinOp); // ^=
277 …nment, NodeType.AsgOr, OperatorPrecedence.None, NodeType.None, "|=", ErrorRecoverySet.BinOp); // |=
278 …nt, NodeType.AsgLsh, OperatorPrecedence.None, NodeType.None, "<<=", ErrorRecoverySet.BinOp); // <<=
[all …]
DparserRealSource2.ts17BinOp = 1 << 3, // Lsh, Rsh, Rs2, Le, Ge, INSTANCEOF, EQ, NE, Eqv, NEqv, LogAnd, LogOr, AsgMul, As…
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp492 static bool processBinOp(BinaryOperator *BinOp, LazyValueInfo *LVI);
523 BinaryOperator *BinOp = BinaryOperator::Create( in processSaturatingInst() local
525 BinOp->setDebugLoc(SI->getDebugLoc()); in processSaturatingInst()
526 setDeducedOverflowingFlags(BinOp, Opcode, NSW, NUW); in processSaturatingInst()
528 SI->replaceAllUsesWith(BinOp); in processSaturatingInst()
533 if (auto *BO = dyn_cast<BinaryOperator>(BinOp)) in processSaturatingInst()
651 if (auto *BinOp = dyn_cast<BinaryOperator>(BO)) in processUDivOrURem() local
652 if (BinOp->getOpcode() == Instruction::UDiv) in processUDivOrURem()
653 BinOp->setIsExact(Instr->isExact()); in processUDivOrURem()
741 static bool processBinOp(BinaryOperator *BinOp, LazyValueInfo *LVI) { in processBinOp() argument
[all …]
DLowerExpectIntrinsic.cpp132 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef() local
133 if (!BinOp || BinOp->getOpcode() != Instruction::Xor) in handlePhiDef()
136 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
140 V = BinOp->getOperand(0); in handlePhiDef()
141 Operations.push_back(BinOp); in handlePhiDef()
DEarlyCSE.cpp206 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst)) { in getHashValueImpl() local
207 Value *LHS = BinOp->getOperand(0); in getHashValueImpl()
208 Value *RHS = BinOp->getOperand(1); in getHashValueImpl()
209 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
212 return hash_combine(BinOp->getOpcode(), LHS, RHS); in getHashValueImpl()
DFloat2Int.cpp270 auto BinOp = (Instruction::BinaryOps) I->getOpcode(); in walkForwards() local
271 return Ops[0].binaryOp(BinOp, Ops[1]); in walkForwards()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86LegalizerInfo.cpp74 for (unsigned BinOp : {G_SUB, G_MUL, G_AND, G_OR, G_XOR}) in X86LegalizerInfo()
75 setLegalizeScalarToDifferentSizeStrategy(BinOp, 0, widen_1); in X86LegalizerInfo()
122 for (unsigned BinOp : {G_ADD, G_SUB, G_MUL, G_AND, G_OR, G_XOR}) in setLegalizerInfo32bit()
124 setAction({BinOp, Ty}, Legal); in setLegalizerInfo32bit()
219 for (unsigned BinOp : {G_ADD, G_SUB, G_MUL, G_AND, G_OR, G_XOR}) in setLegalizerInfo64bit()
220 setAction({BinOp, s64}, Legal); in setLegalizerInfo64bit()
293 for (unsigned BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV}) in setLegalizerInfoSSE1()
295 setAction({BinOp, Ty}, Legal); in setLegalizerInfoSSE1()
329 for (unsigned BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV}) in setLegalizerInfoSSE2()
331 setAction({BinOp, Ty}, Legal); in setLegalizerInfoSSE2()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVExpandPseudoInsts.cpp47 MachineBasicBlock::iterator MBBI, AtomicRMWInst::BinOp,
52 AtomicRMWInst::BinOp, bool IsMasked, int Width,
237 AtomicRMWInst::BinOp BinOp, int Width) { in doAtomicBinOpExpansion() argument
252 switch (BinOp) { in doAtomicBinOpExpansion()
298 MachineBasicBlock *DoneMBB, AtomicRMWInst::BinOp BinOp, int Width) { in doMaskedAtomicBinOpExpansion() argument
318 switch (BinOp) { in doMaskedAtomicBinOpExpansion()
360 AtomicRMWInst::BinOp BinOp, bool IsMasked, int Width, in expandAtomicBinOp() argument
381 doAtomicBinOpExpansion(TII, MI, DL, &MBB, LoopMBB, DoneMBB, BinOp, Width); in expandAtomicBinOp()
383 doMaskedAtomicBinOpExpansion(TII, MI, DL, &MBB, LoopMBB, DoneMBB, BinOp, in expandAtomicBinOp()
409 AtomicRMWInst::BinOp BinOp, bool IsMasked, int Width, in expandAtomicMinMaxOp() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DPredicateInfo.cpp378 } else if (auto *BinOp = dyn_cast<BinaryOperator>(Cond)) { in processAssume() local
380 assert(BinOp->getOpcode() == Instruction::And && in processAssume()
382 auto *PA = new PredicateAssume(BinOp, II, BinOp); in processAssume()
383 addInfoFor(OpsToRename, BinOp, PA); in processAssume()
429 auto *BinOp = cast<BinaryOperator>(BI->getCondition()); in processBranch() local
430 if (BinOp->getOpcode() == Instruction::And) in processBranch()
432 else if (BinOp->getOpcode() == Instruction::Or) in processBranch()
434 ConditionsToProcess.push_back(BinOp->getOperand(0)); in processBranch()
435 ConditionsToProcess.push_back(BinOp->getOperand(1)); in processBranch()
446 } else if (auto *BinOp = dyn_cast<BinaryOperator>(Cond)) { in processBranch() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyWasmObjectWriter.cpp53 if (auto BinOp = dyn_cast<MCBinaryExpr>(Expr)) { in getFixupSection() local
54 auto SectionLHS = getFixupSection(BinOp->getLHS()); in getFixupSection()
55 auto SectionRHS = getFixupSection(BinOp->getRHS()); in getFixupSection()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAtomicOptimizer.cpp35 AtomicRMWInst::BinOp Op;
50 Value *buildScan(IRBuilder<> &B, AtomicRMWInst::BinOp Op, Value *V,
53 void optimizeAtomic(Instruction &I, AtomicRMWInst::BinOp Op, unsigned ValIdx,
117 AtomicRMWInst::BinOp Op = I.getOperation(); in visitAtomicRMWInst()
163 AtomicRMWInst::BinOp Op; in visitIntrinsicInst()
246 static Value *buildNonAtomicBinOp(IRBuilder<> &B, AtomicRMWInst::BinOp Op, in buildNonAtomicBinOp()
283 Value *AMDGPUAtomicOptimizer::buildScan(IRBuilder<> &B, AtomicRMWInst::BinOp Op, in buildScan()
386 static APInt getIdentityValueForAtomicOp(AtomicRMWInst::BinOp Op, in getIdentityValueForAtomicOp()
408 AtomicRMWInst::BinOp Op, in optimizeAtomic()
485 const AtomicRMWInst::BinOp ScanOp = in optimizeAtomic()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantRange.h143 static ConstantRange makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
149 static ConstantRange makeExactNoWrapRegion(Instruction::BinaryOps BinOp,
326 ConstantRange binaryOp(Instruction::BinaryOps BinOp,
333 ConstantRange overflowingBinaryOp(Instruction::BinaryOps BinOp,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp375 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst); in FoldPHIArgBinOpIntoPHI() local
377 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
825 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI() local
826 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp); in FoldPHIArgOpIntoPHI()
827 BinOp->copyIRFlags(PN.getIncomingValue(0)); in FoldPHIArgOpIntoPHI()
830 BinOp->andIRFlags(PN.getIncomingValue(i)); in FoldPHIArgOpIntoPHI()
832 PHIArgMergedDebugLoc(BinOp, PN); in FoldPHIArgOpIntoPHI()
833 return BinOp; in FoldPHIArgOpIntoPHI()
DInstCombineCasts.cpp586 BinaryOperator *BinOp; in narrowBinOp() local
587 if (!match(Trunc.getOperand(0), m_OneUse(m_BinOp(BinOp)))) in narrowBinOp()
590 Value *BinOp0 = BinOp->getOperand(0); in narrowBinOp()
591 Value *BinOp1 = BinOp->getOperand(1); in narrowBinOp()
592 switch (BinOp->getOpcode()) { in narrowBinOp()
604 return BinaryOperator::Create(BinOp->getOpcode(), NarrowC, TruncX); in narrowBinOp()
610 return BinaryOperator::Create(BinOp->getOpcode(), TruncX, NarrowC); in narrowBinOp()
616 return BinaryOperator::Create(BinOp->getOpcode(), X, NarrowOp1); in narrowBinOp()
621 return BinaryOperator::Create(BinOp->getOpcode(), NarrowOp0, X); in narrowBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantRange.cpp225 ConstantRange::makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp, in makeGuaranteedNoWrapRegion() argument
230 assert(Instruction::isBinaryOp(BinOp) && "Binary operators only!"); in makeGuaranteedNoWrapRegion()
239 switch (BinOp) { in makeGuaranteedNoWrapRegion()
296 ConstantRange ConstantRange::makeExactNoWrapRegion(Instruction::BinaryOps BinOp, in makeExactNoWrapRegion() argument
301 return makeGuaranteedNoWrapRegion(BinOp, ConstantRange(Other), NoWrapKind); in makeExactNoWrapRegion()
776 ConstantRange ConstantRange::binaryOp(Instruction::BinaryOps BinOp, in binaryOp() argument
778 assert(Instruction::isBinaryOp(BinOp) && "Binary operators only!"); in binaryOp()
780 switch (BinOp) { in binaryOp()
819 ConstantRange ConstantRange::overflowingBinaryOp(Instruction::BinaryOps BinOp, in overflowingBinaryOp() argument
822 assert(Instruction::isBinaryOp(BinOp) && "Binary operators only!"); in overflowingBinaryOp()
[all …]
/third_party/python/Python/
Dast.c244 ret = validate_expr(state, exp->v.BinOp.left, Load) && in validate_expr()
245 validate_expr(state, exp->v.BinOp.right, Load); in validate_expr()
406 expr_ty left = exp->v.BinOp.left; in ensure_literal_complex()
407 expr_ty right = exp->v.BinOp.right; in ensure_literal_complex()
409 if (exp->v.BinOp.op != Add && exp->v.BinOp.op != Sub) { in ensure_literal_complex()
Dast_opt.c231 lhs = node->v.BinOp.left; in fold_binop()
232 rhs = node->v.BinOp.right; in fold_binop()
241 switch (node->v.BinOp.op) { in fold_binop()
502 CALL(astfold_expr, expr_ty, node_->v.BinOp.left); in astfold_expr()
503 CALL(astfold_expr, expr_ty, node_->v.BinOp.right); in astfold_expr()
/third_party/python/Lib/test/
Dtest_fstring.py106 self.assertEqual(type(binop), ast.BinOp)
146 self.assertEqual(type(binop1), ast.BinOp)
158 self.assertEqual(type(binop2), ast.BinOp)
189 self.assertEqual(type(binop), ast.BinOp)
245 self.assertEqual(type(binop), ast.BinOp)
257 self.assertEqual(type(binop), ast.BinOp)
269 self.assertEqual(type(binop), ast.BinOp)
342 self.assertEqual(type(binop), ast.BinOp)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp642 BinOpToken BinOp; in evalComplexExpr() local
643 std::tie(BinOp, RemainingExpr) = parseBinOpToken(RemainingExpr); in evalComplexExpr()
646 if (BinOp == BinOpToken::Invalid) in evalComplexExpr()
659 EvalResult ThisResult(computeBinOpResult(BinOp, LHSResult, RHSResult)); in evalComplexExpr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DIVDescriptors.cpp953 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Val); in getCastsForInductionPHI() local
954 if (!BinOp) in getCastsForInductionPHI()
956 Value *Op0 = BinOp->getOperand(0); in getCastsForInductionPHI()
957 Value *Op1 = BinOp->getOperand(1); in getCastsForInductionPHI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DAtomicExpandPass.cpp317 AtomicRMWInst::BinOp Op = RMWI->getOperation(); in runOnFunction()
526 static Value *performAtomicOp(AtomicRMWInst::BinOp Op, IRBuilder<> &Builder, in performAtomicOp()
688 static Value *performMaskedAtomicOp(AtomicRMWInst::BinOp Op, in performMaskedAtomicOp()
778 AtomicRMWInst::BinOp Op = AI->getOperation(); in widenPartwordAtomicRMW()
958 AtomicRMWInst::BinOp RMWOp = AI->getOperation(); in expandAtomicRMWToMaskedIntrinsic()
1322 AtomicRMWInst::BinOp Op = RMWI->getOperation(); in isIdempotentRMW()
1511 static ArrayRef<RTLIB::Libcall> GetRMWLibcall(AtomicRMWInst::BinOp Op) { in GetRMWLibcall()

123