Home
last modified time | relevance | path

Searched refs:BinOp (Results 1 - 25 of 76) sorted by relevance

1234

/third_party/rust/crates/syn/src/
H A Dop.rs5 pub enum BinOp { enum
85 impl Parse for BinOp {
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 in parse()
[all...]
H A Dexpr.rs292 pub op: BinOp,
962 use super::BinOp;
981 pub(crate) fn of(op: &BinOp) -> Self {
983 BinOp::Add(_) | BinOp::Sub(_) => Precedence::Arithmetic,
984 BinOp::Mul(_) | BinOp::Div(_) | BinOp::Rem(_) => Precedence::Term,
985 BinOp::And(_) => Precedence::And,
986 BinOp
[all...]
/third_party/rust/crates/syn/examples/trace-var/trace-var/src/
H A 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 in is_assign_op()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A 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()
652 if (BinOp->getOpcode() == Instruction::UDiv) in processUDivOrURem()
653 BinOp->setIsExact(Instr->isExact()); in processUDivOrURem()
741 static bool processBinOp(BinaryOperator *BinOp, LazyValueInf argument
784 processAnd(BinaryOperator *BinOp, LazyValueInfo *LVI) processAnd() argument
[all...]
H A 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()
H A DEarlyCSE.cpp206 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst)) { in getHashValueImpl()
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/typescript/tests/baselines/reference/
H A DparserRealSource10.js227 setTokenInfo(TokenID.InstanceOf, Reservation.TypeScriptAndJS, OperatorPrecedence.Relational, NodeType.InstOf, OperatorPrecedence.None, NodeType.None, "instanceof", ErrorRecoverySet.BinOp);
270 setTokenInfo(TokenID.PlusEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
271 setTokenInfo(TokenID.MinusEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, "-=", ErrorRecoverySet.BinOp); // -=
272 setTokenInfo(TokenID.AsteriskEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgMul, OperatorPrecedence.None, NodeType.None, "*=", ErrorRecoverySet.BinOp); // *=
274 setTokenInfo(TokenID.SlashEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgDiv, OperatorPrecedence.None, NodeType.None, "/=", ErrorRecoverySet.BinOp); // /=
275 setTokenInfo(TokenID.PercentEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgMod, OperatorPrecedence.None, NodeType.None, "%=", ErrorRecoverySet.BinOp); // %=
276 setTokenInfo(TokenID.AmpersandEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgAnd, OperatorPrecedence.None, NodeType.None, "&=", ErrorRecoverySet.BinOp); // &=
277 setTokenInfo(TokenID.CaretEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgXor, OperatorPrecedence.None, NodeType.None, "^=", ErrorRecoverySet.BinOp); // ^=
278 setTokenInfo(TokenID.BarEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgOr, OperatorPrecedence.None, NodeType.None, "|=", ErrorRecoverySet.BinOp); // |=
279 setTokenInfo(TokenID.LessThanLessThanEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgLsh, OperatorPrecedence.None, NodeType.None, "<<=", ErrorRecoverySet.BinOp); // <<
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
H A 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, T in setLegalizerInfoSSE2()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
H A DRISCVExpandPseudoInsts.cpp47 MachineBasicBlock::iterator MBBI, AtomicRMWInst::BinOp,
52 AtomicRMWInst::BinOp, bool IsMasked, int Width,
237 AtomicRMWInst::BinOp BinOp, int Width) { in doAtomicBinOpExpansion()
252 switch (BinOp) { in doAtomicBinOpExpansion()
254 llvm_unreachable("Unexpected AtomicRMW BinOp"); in doAtomicBinOpExpansion()
298 MachineBasicBlock *DoneMBB, AtomicRMWInst::BinOp BinOp, int Width) { in doMaskedAtomicBinOpExpansion()
318 switch (BinOp) { in doMaskedAtomicBinOpExpansion()
320 llvm_unreachable("Unexpected AtomicRMW BinOp"); in doMaskedAtomicBinOpExpansion()
233 doAtomicBinOpExpansion(const RISCVInstrInfo *TII, MachineInstr &MI, DebugLoc DL, MachineBasicBlock *ThisMBB, MachineBasicBlock *LoopMBB, MachineBasicBlock *DoneMBB, AtomicRMWInst::BinOp BinOp, int Width) doAtomicBinOpExpansion() argument
295 doMaskedAtomicBinOpExpansion( const RISCVInstrInfo *TII, MachineInstr &MI, DebugLoc DL, MachineBasicBlock *ThisMBB, MachineBasicBlock *LoopMBB, MachineBasicBlock *DoneMBB, AtomicRMWInst::BinOp BinOp, int Width) doMaskedAtomicBinOpExpansion() argument
358 expandAtomicBinOp( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, AtomicRMWInst::BinOp BinOp, bool IsMasked, int Width, MachineBasicBlock::iterator &NextMBBI) expandAtomicBinOp() argument
407 expandAtomicMinMaxOp( MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, AtomicRMWInst::BinOp BinOp, bool IsMasked, int Width, MachineBasicBlock::iterator &NextMBBI) expandAtomicMinMaxOp() argument
[all...]
/third_party/rust/crates/syn/src/gen/
H A Deq.rs106 impl Eq for BinOp {}
109 impl PartialEq for BinOp {
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 in eq()
[all...]
H A Dvisit.rs81 fn visit_bin_op(&mut self, i: &'ast BinOp) { in visit_bin_op()
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 in visit_bin_op()
[all...]
H A Dhash.rs121 impl Hash for BinOp {
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 in hash()
[all...]
H A Dfold.rs82 fn fold_bin_op(&mut self, i: BinOp) -> BinOp { in fold_bin_op()
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 in fold_bin_op()
[all...]
H A Dvisit_mut.rs82 fn visit_bin_op_mut(&mut self, i: &mut BinOp) { in visit_bin_op_mut()
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 in visit_bin_op_mut()
[all...]
H A Ddebug.rs123 impl Debug for BinOp {
125 formatter.write_str("BinOp::")?; in fmt()
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 in fmt()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
H A DPredicateInfo.cpp378 } else if (auto *BinOp = dyn_cast<BinaryOperator>(Cond)) { in processAssume()
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 in processBranch()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
H A 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 ScanO in optimizeAtomic()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyWasmObjectWriter.cpp53 if (auto BinOp = dyn_cast<MCBinaryExpr>(Expr)) { in getFixupSection()
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/
H A DConstantRange.h127 /// Produce the largest range containing all X such that "X BinOp Y" is
143 static ConstantRange makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
147 /// Produce the range that contains X if and only if "X BinOp Other" does
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/
H A 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()
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/
H A 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,
778 assert(Instruction::isBinaryOp(BinOp) && "Binary operators only!");
780 switch (BinOp) {
819 ConstantRange ConstantRange::overflowingBinaryOp(Instruction::BinaryOps BinOp,
822 assert(Instruction::isBinaryOp(BinOp)
[all...]
/third_party/python/Python/
H A Dast_opt.c448 lhs = node->v.BinOp.left; in fold_binop()
449 rhs = node->v.BinOp.right; in fold_binop()
455 if (node->v.BinOp.op == Mod && in fold_binop()
470 switch (node->v.BinOp.op) { in fold_binop()
717 CALL(astfold_expr, expr_ty, node_->v.BinOp.left); in astfold_expr()
718 CALL(astfold_expr, expr_ty, node_->v.BinOp.right); in astfold_expr()
H A Dast.c271 ret = validate_expr(state, exp->v.BinOp.left, Load) && in validate_expr()
272 validate_expr(state, exp->v.BinOp.right, Load); in validate_expr()
433 expr_ty left = exp->v.BinOp.left; in ensure_literal_complex()
434 expr_ty right = exp->v.BinOp.right; in ensure_literal_complex()
436 if (exp->v.BinOp.op != Add && exp->v.BinOp.op != Sub) { in ensure_literal_complex()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp642 BinOpToken BinOp; in evalComplexExpr()
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/
H A DIVDescriptors.cpp953 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Val); in getCastsForInductionPHI()
954 if (!BinOp) in getCastsForInductionPHI()
956 Value *Op0 = BinOp->getOperand(0); in getCastsForInductionPHI()
957 Value *Op1 = BinOp->getOperand(1); in getCastsForInductionPHI()

Completed in 32 milliseconds

1234