Home
last modified time | relevance | path

Searched refs:negate (Results 1 – 25 of 118) sorted by relevance

12345

/llvm-project-15.0.7/flang/test/Semantics/
H A Dresolve109.f9013 module procedure :: negate
16 module procedure :: negate
19 module procedure :: negate ! a subroutine
27 module procedure :: negate ! a subroutine
34 subroutine negate(x) subroutine
/llvm-project-15.0.7/llvm/utils/lit/lit/
H A DShCommands.py62 def __init__(self, commands, negate=False, pipe_err=False): argument
64 self.negate = negate
68 return 'Pipeline(%r, %r, %r)' % (self.commands, self.negate,
75 return ((self.commands, self.negate, self.pipe_err) ==
76 (other.commands, other.negate, self.pipe_err))
81 if self.negate:
H A DShUtil.py242 negate = False
248 return Pipeline(commands, negate, self.pipefail)
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/arithmetic.operations/
H A Dnegate.pass.cpp23 typedef std::negate<int> F; in main()
31 typedef std::negate<> F2; in main()
37 constexpr int foo = std::negate<int> () (3); in main()
40 constexpr double bar = std::negate<> () (3.0); in main()
H A Dtransparent.pass.cpp54 static_assert ( !is_transparent<std::negate<int>>::value, "" ); in main()
55 static_assert ( !is_transparent<std::negate<std::string>>::value, "" ); in main()
56 static_assert ( is_transparent<std::negate<void>>::value, "" ); in main()
57 static_assert ( is_transparent<std::negate<>>::value, "" ); in main()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp294 Value *NegOp = negate(I->getOperand(0), Depth + 1); in visitImpl()
328 Value *NegOp1 = negate(I->getOperand(1), Depth + 1); in visitImpl()
331 Value *NegOp2 = negate(I->getOperand(2), Depth + 1); in visitImpl()
341 Value *NegOp0 = negate(I->getOperand(0), Depth + 1); in visitImpl()
344 Value *NegOp1 = negate(I->getOperand(1), Depth + 1); in visitImpl()
374 Value *NegOp = negate(I->getOperand(0), Depth + 1); in visitImpl()
381 if (Value *NegOp0 = negate(I->getOperand(0), Depth + 1)) in visitImpl()
409 if (Value *NegOp = negate(Op, Depth + 1)) { in visitImpl()
450 if (Value *NegOp1 = negate(Ops[1], Depth + 1)) { in visitImpl()
453 } else if (Value *NegOp0 = negate(Ops[0], Depth + 1)) { in visitImpl()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/builtins/
H A Dint_div_impl.inc77 fixuint_t a_u = (fixuint_t)(a ^ s_a) + (-s_a); // negate if s_a == -1
78 fixuint_t b_u = (fixuint_t)(b ^ s_b) + (-s_b); // negate if s_b == -1
80 return (COMPUTE_UDIV(a_u, b_u) ^ s_a) + (-s_a); // negate if s_a == -1
88 fixuint_t b_u = (fixuint_t)(b ^ s) + (-s); // negate if s == -1
90 fixuint_t a_u = (fixuint_t)(a ^ s) + (-s); // negate if s == -1
93 return (res ^ s) + (-s); // negate if s == -1
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/refwrap/
H A Dlayout.unary.compile.pass.cpp16 struct S1 : std::negate<int>, std::bit_not<int> {};
20 struct S2 : std::negate<int> { char c; };
/llvm-project-15.0.7/flang/lib/Parser/
H A Dtoken-parsers.h420 const std::optional<std::uint64_t> &x, Location at, bool negate, in SignedInteger() argument
426 if (negate) { in SignedInteger()
433 return std::make_optional<std::int64_t>(negate ? -value : value); in SignedInteger()
446 bool negate{**sign == '-'}; in Parse()
447 if (negate || **sign == '+') { in Parse()
450 return SignedInteger(digitString64.Parse(state), *sign, negate, state); in Parse()
498 bool negate{false}; in Parse()
500 negate = **sign == '-'; in Parse()
504 DigitStringIgnoreSpaces{}.Parse(state), at, negate, state); in Parse()
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/
H A Dtransform_inclusive_scan_bop_uop_init.pass.cpp84 test(Iter(ia), Iter(ia + i), std::plus<>(), std::negate<>(), 0, pResN0, pResN0 + i); in test()
85 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 0, mResN0, mResN0 + i); in test()
88 test(Iter(ia), Iter(ia + i), std::plus<>(), std::negate<>(), 2, pResN2, pResN2 + i); in test()
89 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 2, mResN2, mResN2 + i); in test()
H A Dtransform_inclusive_scan_bop_uop.pass.cpp75 test(Iter(ia), Iter(ia + i), std::plus<>(), std::negate<>(), pResN0, pResN0 + i); in test()
76 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), mResN0, mResN0 + i); in test()
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/transform.exclusive.scan/
H A Dtransform_exclusive_scan_init_bop_uop.pass.cpp82 test(Iter(ia), Iter(ia + i), std::plus<>(), std::negate<>(), 0, pResN0, pResN0 + i); in test()
83 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 0, mResN0, mResN0 + i); in test()
86 test(Iter(ia), Iter(ia + i), std::plus<>(), std::negate<>(), 2, pResN2, pResN2 + i); in test()
87 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 2, mResN2, mResN2 + i); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/
H A Dranges_is_heap.pass.cpp154 auto negate = [](A a) { return a.x * -1; }; in test() local
158 assert(std::ranges::is_heap(in.begin(), in.end(), {}, negate)); in test()
163 assert(std::ranges::is_heap(in, {}, negate)); in test()
H A Dranges_is_heap_until.pass.cpp158 auto negate = [](A a) { return a.x * -1; }; in test() local
163 auto result_custom_comp = std::ranges::is_heap_until(in.begin(), in.end(), {}, negate); in test()
170 auto result_custom_comp = std::ranges::is_heap_until(in, {}, negate); in test()
/llvm-project-15.0.7/mlir/test/Dialect/Tosa/
H A Dquant-test.mlir6 // CHECK: tosa.negate
7 …%0 = "tosa.negate"(%arg0) : (tensor<16x1x1x8x!quant.uniform<u8<1:255>:f32, 0.015680249780416489:12…
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/
H A Dranges_partition.pass.cpp176 auto negate = [](int x) { return -x; }; in test() local
188 std::ranges::partition(in.begin(), in.end(), is_negative, negate); in test()
201 std::ranges::partition(in, is_negative, negate); in test()
H A Dranges_stable_partition.pass.cpp212 auto negate = [](int x) { return -x; }; in test() local
224 std::ranges::partition(in.begin(), in.end(), is_negative, negate); in test()
237 std::ranges::partition(in, is_negative, negate); in test()
H A Dranges_partition_copy.pass.cpp235 auto negate = [](int x) { return -x; }; in test() local
248 …std::ranges::partition_copy(in.begin(), in.end(), out1.begin(), out2.begin(), is_negative, negate); in test()
263 std::ranges::partition_copy(in, out1.begin(), out2.begin(), is_negative, negate); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.permutation.generators/
H A Dranges.prev_permutation.pass.cpp215 constexpr A negate() const { return A{i * -1}; } in test() function
223 auto result = std::ranges::prev_permutation(in.begin(), in.end(), {}, &A::negate); in test()
232 auto result = std::ranges::prev_permutation(in, {}, &A::negate); in test()
H A Dranges.next_permutation.pass.cpp215 constexpr A negate() const { return A{i * -1}; } in test() function
223 auto result = std::ranges::next_permutation(in.begin(), in.end(), {}, &A::negate); in test()
232 auto result = std::ranges::next_permutation(in, {}, &A::negate); in test()
/llvm-project-15.0.7/pstl/test/std/numerics/numeric.ops/
H A Dtransform_reduce.pass.cpp116 …test_by_type<int32_t>(42, std::plus<int32_t>(), std::multiplies<int32_t>(), std::negate<int32_t>(), in main()
124 …test_by_type<MyClass>(MyClass(), std::plus<MyClass>(), std::multiplies<MyClass>(), std::negate<MyC… in main()
/llvm-project-15.0.7/flang/runtime/
H A Dformat-implementation.h46 bool negate{ch == '-'}; in GetIntField()
47 if (negate || ch == '+') { in GetIntField()
70 if (negate && (result *= -1) > 0) { in GetIntField()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dnegative-sin.ll50 ; The 1st negate is strict, so we can't kill that sub, but the 2nd disappears.
68 ; The 2nd negate is strict, so we can't kill it. It becomes an add of zero instead.
/llvm-project-15.0.7/polly/lib/External/isl/cpp/
H A Dcpp-checked.h.top80 boolean negate() {
89 return boolean(*this).negate();
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DConstraintSystem.h71 static SmallVector<int64_t, 8> negate(SmallVector<int64_t, 8> R) { in negate() function

12345