Home
last modified time | relevance | path

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

12345678

/external/rust/crates/syn/0.15.42/src/
Dop.rs7 pub enum BinOp {
89 fn parse_binop(input: ParseStream) -> Result<BinOp> { in parse_binop() argument
91 input.parse().map(BinOp::And) in parse_binop()
93 input.parse().map(BinOp::Or) in parse_binop()
95 input.parse().map(BinOp::Shl) in parse_binop()
97 input.parse().map(BinOp::Shr) in parse_binop()
99 input.parse().map(BinOp::Eq) in parse_binop()
101 input.parse().map(BinOp::Le) in parse_binop()
103 input.parse().map(BinOp::Ne) in parse_binop()
105 input.parse().map(BinOp::Ge) in parse_binop()
[all …]
Dexpr.rs155 pub op: BinOp,
319 pub op: BinOp,
1014 fn of(op: &BinOp) -> Self { in of()
1016 BinOp::Add(_) | BinOp::Sub(_) => Precedence::Arithmetic, in of()
1017 BinOp::Mul(_) | BinOp::Div(_) | BinOp::Rem(_) => Precedence::Term, in of()
1018 BinOp::And(_) => Precedence::And, in of()
1019 BinOp::Or(_) => Precedence::Or, in of()
1020 BinOp::BitXor(_) => Precedence::BitXor, in of()
1021 BinOp::BitAnd(_) => Precedence::BitAnd, in of()
1022 BinOp::BitOr(_) => Precedence::BitOr, in of()
[all …]
/external/rust/crates/syn/1.0.7/src/
Dop.rs7 pub enum BinOp {
89 fn parse_binop(input: ParseStream) -> Result<BinOp> { in parse_binop() argument
91 input.parse().map(BinOp::And) in parse_binop()
93 input.parse().map(BinOp::Or) in parse_binop()
95 input.parse().map(BinOp::Shl) in parse_binop()
97 input.parse().map(BinOp::Shr) in parse_binop()
99 input.parse().map(BinOp::Eq) in parse_binop()
101 input.parse().map(BinOp::Le) in parse_binop()
103 input.parse().map(BinOp::Ne) in parse_binop()
105 input.parse().map(BinOp::Ge) in parse_binop()
[all …]
Dexpr.rs258 pub op: BinOp,
295 pub op: BinOp,
1213 fn of(op: &BinOp) -> Self { in of()
1215 BinOp::Add(_) | BinOp::Sub(_) => Precedence::Arithmetic, in of()
1216 BinOp::Mul(_) | BinOp::Div(_) | BinOp::Rem(_) => Precedence::Term, in of()
1217 BinOp::And(_) => Precedence::And, in of()
1218 BinOp::Or(_) => Precedence::Or, in of()
1219 BinOp::BitXor(_) => Precedence::BitXor, in of()
1220 BinOp::BitAnd(_) => Precedence::BitAnd, in of()
1221 BinOp::BitOr(_) => Precedence::BitOr, in of()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyWasmObjectWriter.cpp51 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/clang/include/clang/Analysis/Analyses/
DThreadSafetyLogical.h55 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/swiftshader/third_party/llvm-7.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()
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/lib/Analysis/
DThreadSafetyLogical.cpp24 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()
DConsumed.cpp497 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/Analysis/
DCostModel.cpp158 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/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp160 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/
Dtest_ast.py305 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/
DPredicateInfo.cpp347 } 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/
DLowerExpectIntrinsic.cpp126 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()
/external/eigen/Eigen/src/Core/
DTranspose.h332 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/rust/crates/syn/1.0.7/src/gen/
Dfold.rs59 fn fold_bin_op(&mut self, i: BinOp) -> BinOp { in fold_bin_op() argument
869 pub fn fold_bin_op<F>(f: &mut F, node: BinOp) -> BinOp in fold_bin_op()
874 BinOp::Add(_binding_0) => BinOp::Add(Token ! [ + ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
875 BinOp::Sub(_binding_0) => BinOp::Sub(Token ! [ - ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
876 BinOp::Mul(_binding_0) => BinOp::Mul(Token ! [ * ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
877 BinOp::Div(_binding_0) => BinOp::Div(Token ! [ / ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
878 BinOp::Rem(_binding_0) => BinOp::Rem(Token ! [ % ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
879 BinOp::And(_binding_0) => BinOp::And(Token ! [ && ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
880 BinOp::Or(_binding_0) => BinOp::Or(Token ! [ || ](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
881 BinOp::BitXor(_binding_0) => { in fold_bin_op()
[all …]
Dvisit_mut.rs64 fn visit_bin_op_mut(&mut self, i: &mut BinOp) { in visit_bin_op_mut() argument
872 pub fn visit_bin_op_mut<V>(v: &mut V, node: &mut BinOp) in visit_bin_op_mut()
877 BinOp::Add(_binding_0) => { in visit_bin_op_mut()
880 BinOp::Sub(_binding_0) => { in visit_bin_op_mut()
883 BinOp::Mul(_binding_0) => { in visit_bin_op_mut()
886 BinOp::Div(_binding_0) => { in visit_bin_op_mut()
889 BinOp::Rem(_binding_0) => { in visit_bin_op_mut()
892 BinOp::And(_binding_0) => { in visit_bin_op_mut()
895 BinOp::Or(_binding_0) => { in visit_bin_op_mut()
898 BinOp::BitXor(_binding_0) => { in visit_bin_op_mut()
[all …]
/external/rust/crates/syn/0.15.42/src/gen/
Dfold.rs75 fn fold_bin_op(&mut self, i: BinOp) -> BinOp { in fold_bin_op() argument
928 pub fn fold_bin_op<V: Fold + ?Sized>(_visitor: &mut V, _i: BinOp) -> BinOp { in fold_bin_op() argument
930 BinOp::Add(_binding_0) => { in fold_bin_op()
931 BinOp::Add(Token ! [ + ](tokens_helper(_visitor, &_binding_0.spans))) in fold_bin_op()
933 BinOp::Sub(_binding_0) => { in fold_bin_op()
934 BinOp::Sub(Token ! [ - ](tokens_helper(_visitor, &_binding_0.spans))) in fold_bin_op()
936 BinOp::Mul(_binding_0) => { in fold_bin_op()
937 BinOp::Mul(Token ! [ * ](tokens_helper(_visitor, &_binding_0.spans))) in fold_bin_op()
939 BinOp::Div(_binding_0) => { in fold_bin_op()
940 BinOp::Div(Token ! [ / ](tokens_helper(_visitor, &_binding_0.spans))) in fold_bin_op()
[all …]
Dvisit_mut.rs79 fn visit_bin_op_mut(&mut self, i: &mut BinOp) { in visit_bin_op_mut() argument
929 pub fn visit_bin_op_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut BinOp) { in visit_bin_op_mut() argument
931 BinOp::Add(ref mut _binding_0) => { in visit_bin_op_mut()
934 BinOp::Sub(ref mut _binding_0) => { in visit_bin_op_mut()
937 BinOp::Mul(ref mut _binding_0) => { in visit_bin_op_mut()
940 BinOp::Div(ref mut _binding_0) => { in visit_bin_op_mut()
943 BinOp::Rem(ref mut _binding_0) => { in visit_bin_op_mut()
946 BinOp::And(ref mut _binding_0) => { in visit_bin_op_mut()
949 BinOp::Or(ref mut _binding_0) => { in visit_bin_op_mut()
952 BinOp::BitXor(ref mut _binding_0) => { in visit_bin_op_mut()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp108 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/
DEarlyCSE.cpp95 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-7.0/llvm/include/llvm/IR/
DConstantRange.h116 static ConstantRange makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
262 ConstantRange binaryOp(Instruction::BinaryOps BinOp,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp364 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/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp1016 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/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantRange.cpp180 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()

12345678