Home
last modified time | relevance | path

Searched refs:binop (Results 1 – 25 of 109) sorted by relevance

12345

/external/mesa3d/src/compiler/nir/
Dnir_opcodes.py517 def binop(name, ty, alg_props, const_expr): function
575 binop("fadd", tfloat, _2src_commutative + associative,"""
585 binop("iadd", tint, _2src_commutative + associative, "src0 + src1")
586 binop("iadd_sat", tint, _2src_commutative, """
591 binop("uadd_sat", tuint, _2src_commutative,
593 binop("isub_sat", tint, "", """
598 binop("usub_sat", tuint, "", "src0 < src1 ? 0 : src0 - src1")
600 binop("fsub", tfloat, "", """
610 binop("isub", tint, "", "src0 - src1")
615 binop("uabs_usub", tuint, "", "(src1 > src0) ? (src1 - src0) : (src0 - src1)")
[all …]
/external/python/cpython3/Lib/test/
Dtest_fstring.py105 binop = t.body[1].value.values[0].value
106 self.assertEqual(type(binop), ast.BinOp)
107 self.assertEqual(type(binop.left), ast.Name)
108 self.assertEqual(type(binop.op), ast.Mult)
109 self.assertEqual(type(binop.right), ast.Call)
110 self.assertEqual(binop.lineno, 3)
111 self.assertEqual(binop.left.lineno, 3)
112 self.assertEqual(binop.right.lineno, 3)
113 self.assertEqual(binop.col_offset, 3)
114 self.assertEqual(binop.left.col_offset, 3)
[all …]
/external/mesa3d/src/amd/llvm/
Dac_llvm_helper.cpp277 llvm::AtomicRMWInst::BinOp binop; local
280 binop = llvm::AtomicRMWInst::Xchg;
283 binop = llvm::AtomicRMWInst::Add;
286 binop = llvm::AtomicRMWInst::Sub;
289 binop = llvm::AtomicRMWInst::And;
292 binop = llvm::AtomicRMWInst::Nand;
295 binop = llvm::AtomicRMWInst::Or;
298 binop = llvm::AtomicRMWInst::Xor;
301 binop = llvm::AtomicRMWInst::Max;
304 binop = llvm::AtomicRMWInst::Min;
[all …]
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp31 bool float_binop_evaluates_to(T lhs, T rhs, SpvOp binop, bool required_value) { in float_binop_evaluates_to() argument
39 switch (binop) { in float_binop_evaluates_to()
64 bool signed_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in signed_int_binop_evaluates_to() argument
67 switch (binop) { in signed_int_binop_evaluates_to()
88 bool unsigned_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in unsigned_int_binop_evaluates_to() argument
91 switch (binop) { in unsigned_int_binop_evaluates_to()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp31 bool float_binop_evaluates_to(T lhs, T rhs, SpvOp binop, bool required_value) { in float_binop_evaluates_to() argument
39 switch (binop) { in float_binop_evaluates_to()
64 bool signed_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in signed_int_binop_evaluates_to() argument
67 switch (binop) { in signed_int_binop_evaluates_to()
88 bool unsigned_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in unsigned_int_binop_evaluates_to() argument
91 switch (binop) { in unsigned_int_binop_evaluates_to()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp31 bool float_binop_evaluates_to(T lhs, T rhs, SpvOp binop, bool required_value) { in float_binop_evaluates_to() argument
39 switch (binop) { in float_binop_evaluates_to()
64 bool signed_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in signed_int_binop_evaluates_to() argument
67 switch (binop) { in signed_int_binop_evaluates_to()
88 bool unsigned_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in unsigned_int_binop_evaluates_to() argument
91 switch (binop) { in unsigned_int_binop_evaluates_to()
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm-project/mlir/examples/toy/Ch2/mlir/
DMLIRGen.cpp176 mlir::Value mlirGen(BinaryExprAST &binop) { in mlirGen() argument
188 mlir::Value lhs = mlirGen(*binop.getLHS()); in mlirGen()
191 mlir::Value rhs = mlirGen(*binop.getRHS()); in mlirGen()
194 auto location = loc(binop.loc()); in mlirGen()
198 switch (binop.getOp()) { in mlirGen()
205 emitError(location, "invalid binary operator '") << binop.getOp() << "'"; in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch3/mlir/
DMLIRGen.cpp176 mlir::Value mlirGen(BinaryExprAST &binop) { in mlirGen() argument
188 mlir::Value lhs = mlirGen(*binop.getLHS()); in mlirGen()
191 mlir::Value rhs = mlirGen(*binop.getRHS()); in mlirGen()
194 auto location = loc(binop.loc()); in mlirGen()
198 switch (binop.getOp()) { in mlirGen()
205 emitError(location, "invalid binary operator '") << binop.getOp() << "'"; in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch4/mlir/
DMLIRGen.cpp180 mlir::Value mlirGen(BinaryExprAST &binop) { in mlirGen() argument
192 mlir::Value lhs = mlirGen(*binop.getLHS()); in mlirGen()
195 mlir::Value rhs = mlirGen(*binop.getRHS()); in mlirGen()
198 auto location = loc(binop.loc()); in mlirGen()
202 switch (binop.getOp()) { in mlirGen()
209 emitError(location, "invalid binary operator '") << binop.getOp() << "'"; in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch5/mlir/
DMLIRGen.cpp180 mlir::Value mlirGen(BinaryExprAST &binop) { in mlirGen() argument
192 mlir::Value lhs = mlirGen(*binop.getLHS()); in mlirGen()
195 mlir::Value rhs = mlirGen(*binop.getRHS()); in mlirGen()
198 auto location = loc(binop.loc()); in mlirGen()
202 switch (binop.getOp()) { in mlirGen()
209 emitError(location, "invalid binary operator '") << binop.getOp() << "'"; in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DMLIRGen.cpp180 mlir::Value mlirGen(BinaryExprAST &binop) { in mlirGen() argument
192 mlir::Value lhs = mlirGen(*binop.getLHS()); in mlirGen()
195 mlir::Value rhs = mlirGen(*binop.getRHS()); in mlirGen()
198 auto location = loc(binop.loc()); in mlirGen()
202 switch (binop.getOp()) { in mlirGen()
209 emitError(location, "invalid binary operator '") << binop.getOp() << "'"; in mlirGen()
/external/llvm/test/CodeGen/X86/
D4char-promote.ll13 %binop = mul <4 x i8> %x, %y
14 %binop6 = add <4 x i8> %binop, %x
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dparser.ml89 (* If this is a binop, find its precedence. *)
93 (* If this is a binop that binds at least as tightly as the current binop,
96 (* Eat the binop. *)
102 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dparser.ml89 (* If this is a binop, find its precedence. *)
93 (* If this is a binop that binds at least as tightly as the current binop,
96 (* Eat the binop. *)
102 (* Okay, we know this is a binop. *)
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp82 if (const BinaryOperator *binop = dyn_cast<BinaryOperator>(e)) { in CheckMallocArgument() local
83 BinaryOperatorKind opc = binop->getOpcode(); in CheckMallocArgument()
86 mulop = binop; in CheckMallocArgument()
90 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
91 const Expr *rhs = binop->getRHS(); in CheckMallocArgument()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp81 if (const BinaryOperator *binop = dyn_cast<BinaryOperator>(e)) { in CheckMallocArgument() local
82 BinaryOperatorKind opc = binop->getOpcode(); in CheckMallocArgument()
85 mulop = binop; in CheckMallocArgument()
89 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
90 const Expr *rhs = binop->getRHS(); in CheckMallocArgument()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DMLIRGen.cpp298 mlir::Value mlirGen(BinaryExprAST &binop) { in mlirGen() argument
310 mlir::Value lhs = mlirGen(*binop.getLHS()); in mlirGen()
313 auto location = loc(binop.loc()); in mlirGen()
316 if (binop.getOp() == '.') { in mlirGen()
317 llvm::Optional<size_t> accessIndex = getMemberIndex(binop); in mlirGen()
326 mlir::Value rhs = mlirGen(*binop.getRHS()); in mlirGen()
332 switch (binop.getOp()) { in mlirGen()
339 emitError(location, "invalid binary operator '") << binop.getOp() << "'"; in mlirGen()
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml100 (* If this is a binop, find its precedence. *)
104 (* If this is a binop that binds at least as tightly as the current binop,
107 (* Eat the binop. *)
113 (* Okay, we know this is a binop. *)
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml100 (* If this is a binop, find its precedence. *)
104 (* If this is a binop that binds at least as tightly as the current binop,
107 (* Eat the binop. *)
113 (* Okay, we know this is a binop. *)

12345