Home
last modified time | relevance | path

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

1234

/third_party/rust/crates/syn/src/
Dop.rs5 pub enum BinOp {
85 impl Parse for BinOp { implementation
88 input.parse().map(BinOp::AddAssign) in parse()
90 input.parse().map(BinOp::SubAssign) in parse()
92 input.parse().map(BinOp::MulAssign) in parse()
94 input.parse().map(BinOp::DivAssign) in parse()
96 input.parse().map(BinOp::RemAssign) in parse()
98 input.parse().map(BinOp::BitXorAssign) in parse()
100 input.parse().map(BinOp::BitAndAssign) in parse()
102 input.parse().map(BinOp::BitOrAssign) in parse()
[all …]
Dexpr.rs292 pub op: BinOp,
962 use super::BinOp;
981 pub(crate) fn of(op: &BinOp) -> Self { in of()
983 BinOp::Add(_) | BinOp::Sub(_) => Precedence::Arithmetic, in of()
984 BinOp::Mul(_) | BinOp::Div(_) | BinOp::Rem(_) => Precedence::Term, in of()
985 BinOp::And(_) => Precedence::And, in of()
986 BinOp::Or(_) => Precedence::Or, in of()
987 BinOp::BitXor(_) => Precedence::BitXor, in of()
988 BinOp::BitAnd(_) => Precedence::BitAnd, in of()
989 BinOp::BitOr(_) => Precedence::BitOr, in of()
[all …]
/third_party/rust/crates/syn/examples/trace-var/trace-var/src/
Dlib.rs7 use syn::{parse_macro_input, parse_quote, BinOp, Expr, Ident, ItemFn, Local, Pat, Stmt, Token};
150 fn is_assign_op(op: BinOp) -> bool { in is_assign_op()
152 BinOp::AddAssign(_) in is_assign_op()
153 | BinOp::SubAssign(_) in is_assign_op()
154 | BinOp::MulAssign(_) in is_assign_op()
155 | BinOp::DivAssign(_) in is_assign_op()
156 | BinOp::RemAssign(_) in is_assign_op()
157 | BinOp::BitXorAssign(_) in is_assign_op()
158 | BinOp::BitAndAssign(_) in is_assign_op()
159 | BinOp::BitOrAssign(_) in is_assign_op()
[all …]
/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 …]
/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 …]
/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()
/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/rust/crates/syn/src/gen/
Deq.rs106 impl Eq for BinOp {} implementation
109 impl PartialEq for BinOp { implementation
112 (BinOp::Add(_), BinOp::Add(_)) => true, in eq()
113 (BinOp::Sub(_), BinOp::Sub(_)) => true, in eq()
114 (BinOp::Mul(_), BinOp::Mul(_)) => true, in eq()
115 (BinOp::Div(_), BinOp::Div(_)) => true, in eq()
116 (BinOp::Rem(_), BinOp::Rem(_)) => true, in eq()
117 (BinOp::And(_), BinOp::And(_)) => true, in eq()
118 (BinOp::Or(_), BinOp::Or(_)) => true, in eq()
119 (BinOp::BitXor(_), BinOp::BitXor(_)) => true, in eq()
[all …]
Dfold.rs82 fn fold_bin_op(&mut self, i: BinOp) -> BinOp { in fold_bin_op() argument
1049 pub fn fold_bin_op<F>(f: &mut F, node: BinOp) -> BinOp in fold_bin_op()
1054 BinOp::Add(_binding_0) => BinOp::Add(_binding_0), in fold_bin_op()
1055 BinOp::Sub(_binding_0) => BinOp::Sub(_binding_0), in fold_bin_op()
1056 BinOp::Mul(_binding_0) => BinOp::Mul(_binding_0), in fold_bin_op()
1057 BinOp::Div(_binding_0) => BinOp::Div(_binding_0), in fold_bin_op()
1058 BinOp::Rem(_binding_0) => BinOp::Rem(_binding_0), in fold_bin_op()
1059 BinOp::And(_binding_0) => BinOp::And(_binding_0), in fold_bin_op()
1060 BinOp::Or(_binding_0) => BinOp::Or(_binding_0), in fold_bin_op()
1061 BinOp::BitXor(_binding_0) => BinOp::BitXor(_binding_0), in fold_bin_op()
[all …]
Dhash.rs121 impl Hash for BinOp { implementation
127 BinOp::Add(_) => { in hash()
130 BinOp::Sub(_) => { in hash()
133 BinOp::Mul(_) => { in hash()
136 BinOp::Div(_) => { in hash()
139 BinOp::Rem(_) => { in hash()
142 BinOp::And(_) => { in hash()
145 BinOp::Or(_) => { in hash()
148 BinOp::BitXor(_) => { in hash()
151 BinOp::BitAnd(_) => { in hash()
[all …]
Ddebug.rs123 impl Debug for BinOp { implementation
127 BinOp::Add(v0) => { in fmt()
132 BinOp::Sub(v0) => { in fmt()
137 BinOp::Mul(v0) => { in fmt()
142 BinOp::Div(v0) => { in fmt()
147 BinOp::Rem(v0) => { in fmt()
152 BinOp::And(v0) => { in fmt()
157 BinOp::Or(v0) => { in fmt()
162 BinOp::BitXor(v0) => { in fmt()
167 BinOp::BitAnd(v0) => { in fmt()
[all …]
Dvisit_mut.rs82 fn visit_bin_op_mut(&mut self, i: &mut BinOp) { in visit_bin_op_mut() argument
1056 pub fn visit_bin_op_mut<V>(v: &mut V, node: &mut BinOp) in visit_bin_op_mut()
1061 BinOp::Add(_binding_0) => { in visit_bin_op_mut()
1064 BinOp::Sub(_binding_0) => { in visit_bin_op_mut()
1067 BinOp::Mul(_binding_0) => { in visit_bin_op_mut()
1070 BinOp::Div(_binding_0) => { in visit_bin_op_mut()
1073 BinOp::Rem(_binding_0) => { in visit_bin_op_mut()
1076 BinOp::And(_binding_0) => { in visit_bin_op_mut()
1079 BinOp::Or(_binding_0) => { in visit_bin_op_mut()
1082 BinOp::BitXor(_binding_0) => { in visit_bin_op_mut()
[all …]
Dvisit.rs81 fn visit_bin_op(&mut self, i: &'ast BinOp) { in visit_bin_op() argument
1055 pub fn visit_bin_op<'ast, V>(v: &mut V, node: &'ast BinOp) in visit_bin_op()
1060 BinOp::Add(_binding_0) => { in visit_bin_op()
1063 BinOp::Sub(_binding_0) => { in visit_bin_op()
1066 BinOp::Mul(_binding_0) => { in visit_bin_op()
1069 BinOp::Div(_binding_0) => { in visit_bin_op()
1072 BinOp::Rem(_binding_0) => { in visit_bin_op()
1075 BinOp::And(_binding_0) => { in visit_bin_op()
1078 BinOp::Or(_binding_0) => { in visit_bin_op()
1081 BinOp::BitXor(_binding_0) => { in visit_bin_op()
[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/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/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/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()
/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()

1234