Home
last modified time | relevance | path

Searched refs:Negate (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dcomplex.h40 constexpr Complex CONJG() const { return {re_, im_.Negate()}; } in CONJG()
41 constexpr Complex Negate() const { return {re_.Negate(), im_.Negate()}; } in Negate() function
H A Dinteger.h272 result = result.Negate().value;
504 constexpr ValueWithOverflow Negate() const { in Negate() function
520 return Negate(); in ABS()
782 ValueWithCarry diff{AddUnsigned(y.Negate().value)}; in SubtractSigned()
800 return Negate(); in SIGN()
850 absy = y.Negate().value; in MultiplyUnsigned()
855 absx = Negate().value; in MultiplyUnsigned()
900 auto negated{divisor.Negate()}; in MultiplyUnsigned()
920 auto negated{Negate()}; in MultiplyUnsigned()
937 result.quotient = result.quotient.Negate().value; in MultiplyUnsigned()
[all …]
H A Dreal.h107 constexpr Real Negate() const { return {word_.IEOR(word_.MASKL(1))}; } in Negate() function
114 return Add(y.Negate(), rounding);
230 absN = n.Negate().value; // overflow is safe to ignore
284 result.value = result.value.Negate().value;
310 absX = x.Negate();
H A Drounding-bits.h49 constexpr bool Negate() { in Negate() function
H A Dexpression.h243 template <typename A> struct Negate : public Operation<Negate<A>, A, A> {
246 using Base = Operation<Negate, A, A>;
528 using Operations = std::tuple<Parentheses<Result>, Negate<Result>,
563 Negate<Result>, Add<Result>, Subtract<Result>, Multiply<Result>,
579 using Operations = std::variant<Parentheses<Result>, Negate<Result>,
/llvm-project-15.0.7/clang/lib/Analysis/
H A DThreadSafety.cpp1041 bool &Negate);
1406 return getTrylockCallExpr(E, C, Negate); in getTrylockCallExpr()
1410 Negate = !Negate; in getTrylockCallExpr()
1418 Negate = !Negate; in getTrylockCallExpr()
1422 if (!TCond) Negate = !Negate; in getTrylockCallExpr()
1427 if (!TCond) Negate = !Negate; in getTrylockCallExpr()
1446 Negate = !Negate; in getTrylockCallExpr()
1468 bool Negate = false; in getEdgeLockset() local
1490 Negate); in getEdgeLockset()
1496 A->getSuccessValue(), Negate); in getEdgeLockset()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/
H A DX86InstComments.cpp350 Negate = true; in printFMAComments()
356 Negate = true; in printFMAComments()
368 Negate = true; in printFMAComments()
375 Negate = true; in printFMAComments()
484 Negate = true; in printFMAComments()
496 Negate = true; in printFMAComments()
508 Negate = true; in printFMAComments()
521 Negate = true; in printFMAComments()
534 Negate = true; in printFMAComments()
547 Negate = true; in printFMAComments()
[all …]
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dreal.cpp63 TEST(zero.Negate().RawBits().IEOR(Word::MASKL(1)).IsZero())(desc); in basicTests()
71 TEST(minusZero.Negate().RawBits().IsZero())(desc); in basicTests()
116 TEST(inf.RawBits().CompareUnsigned(negInf.Negate().RawBits()) == in basicTests()
119 TEST(inf.Negate().RawBits().CompareUnsigned(negInf.RawBits()) == in basicTests()
167 ix = ix.Negate().value; in basicTests()
H A Dinteger.cpp61 auto negated{a.Negate()}; in exhaustiveTesting()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dformatting.cpp162 Negate, // which binds *less* tightly than *, /, ** enumerator
202 template <typename T> constexpr Precedence ToPrecedence(const Negate<T> &) { in ToPrecedence()
203 return Precedence::Negate; in ToPrecedence()
223 return Precedence::Negate; in ToPrecedence()
257 constexpr OperatorSpelling SpellOperator(const Negate<A> &) { in SpellOperator()
H A Dreal.cpp122 carry = roundingBits.Negate(); in Add()
415 result.value = Real{}.Negate(); // -0. in MOD()
438 result.value = Real{}.Negate(); // -0. in MODULO()
645 return "-"s + Negate().DumpHexadecimal(); in DumpHexadecimal()
H A Dfold-implementation.h1709 Expr<T> FoldOperation(FoldingContext &context, Negate<T> &&x) { in FoldOperation()
1714 if (auto *nn{std::get_if<Negate<T>>(&x.left().u)}) { in FoldOperation()
1718 auto negated{value->Negate()}; in FoldOperation()
1726 return Expr<T>{Constant<T>{value->Negate()}}; in FoldOperation()
1836 return Expr<T>{Negate<T>{std::move(x.right())}}; in FoldOperation()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Ddependent-names.cpp250 T Negate(const T& value) { in Negate() function
261 Negate(ns::Data()); // expected-note {{requested here}} in Use()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVFABIDemangling.cpp170 const bool Negate = ParseString.consume_front("n"); in tryParseCompileTimeLinearToken() local
173 if (Negate) in tryParseCompileTimeLinearToken()
/llvm-project-15.0.7/flang/include/flang/Decimal/
H A Dbinary-floating-point.h93 constexpr void Negate() { raw_ ^= RawType{1} << (bits - 1); } in Negate() function
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.h57 bool Negate = false) {
63 uint32_t K = Negate ? (-LHSVal & 0xffff) | (-RHSVal << 16)
/llvm-project-15.0.7/flang/lib/Parser/
H A Dexpr-parsers.cpp100 construct<Expr>(construct<Expr::Negate>("-" >> primary)))))};
170 construct<Expr>(construct<Expr::Negate>("-" >> addOperand))) || in Parse()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A Darm_fp16.td19 // Negate
/llvm-project-15.0.7/flang/lib/Lower/
H A DIterationSpace.cpp115 const Fortran::evaluate::Negate<Fortran::evaluate::Type<TC, KIND>> &x) { in getHashValue()
383 static bool isEqual(const Fortran::evaluate::Negate<A> &x, in isEqual()
384 const Fortran::evaluate::Negate<A> &y) { in isEqual()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZOperands.td253 // Negate and then truncate an immediate to a 16-bit signed quantity.
271 // Negate and then truncate an immediate to a 32-bit unsigned quantity.
283 // Negate and then truncate an immediate to a 32-bit unsigned quantity.
/llvm-project-15.0.7/flang/lib/Decimal/
H A Dbinary-to-decimal.cpp27 x.Negate();
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Doperand-complexity.ll4 ; 'Negate' is considered less complex than a normal binop, so the xor should have the binop as the …
H A Dcos-sin-intrinsic.ll147 ; Negate is canonicalized after sin.
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp517 LLVM_NODISCARD Value *Negator::Negate(bool LHSIsZero, Value *Root, in Negate() function in Negator
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp4189 Negate = false; in getVCmpInst()
4204 case ISD::SETNE: CC = ISD::SETEQ; Negate = true; break; in getVCmpInst()
4205 case ISD::SETUNE: CC = ISD::SETOEQ; Negate = true; break; in getVCmpInst()
4206 case ISD::SETULE: CC = ISD::SETOGT; Negate = true; break; in getVCmpInst()
4207 case ISD::SETULT: CC = ISD::SETOGE; Negate = true; break; in getVCmpInst()
4248 case ISD::SETNE: CC = ISD::SETEQ; Negate = true; break; in getVCmpInst()
4249 case ISD::SETUNE: CC = ISD::SETUEQ; Negate = true; break; in getVCmpInst()
4250 case ISD::SETLE: CC = ISD::SETGT; Negate = true; break; in getVCmpInst()
4251 case ISD::SETULE: CC = ISD::SETUGT; Negate = true; break; in getVCmpInst()
4404 bool Swap, Negate; in trySETCC() local
[all …]

123