Home
last modified time | relevance | path

Searched refs:Negated (Results 1 – 25 of 44) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DSimplifyBooleanExprCheck.cpp65 if (const auto *Negated = Result.Nodes.getNodeAs<UnaryOperator>(Id)) { in getBoolLiteral() local
66 if (Negated->getOpcode() == UO_LNot && in getBoolLiteral()
67 isa<CXXBoolLiteralExpr>(Negated->getSubExpr())) in getBoolLiteral()
68 return Negated->getBeginLoc().isMacroID() ? nullptr : Negated; in getBoolLiteral()
184 const Expr *E, bool Negated, in compareExpressionToConstant() argument
191 return ExprText + " " + (Negated ? "!=" : "==") + " " + Constant; in compareExpressionToConstant()
195 const Expr *E, bool Negated) { in compareExpressionToNullPtr() argument
198 return compareExpressionToConstant(Result, E, Negated, NullPtr); in compareExpressionToNullPtr()
202 const Expr *E, bool Negated) { in compareExpressionToZero() argument
203 return compareExpressionToConstant(Result, E, Negated, "0"); in compareExpressionToZero()
[all …]
DSimplifyBooleanExprCheck.h63 bool Negated = false);
67 bool Negated = false);
71 const IfStmt *If, bool Negated = false);
75 const CompoundStmt *Compound, bool Negated = false);
/external/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
DAVRMCExpr.h54 bool isNegated() const { return Negated; } in isNegated()
55 void setNegated(bool negated = true) { Negated = negated; }
81 bool Negated; variable
84 explicit AVRMCExpr(VariantKind Kind, const MCExpr *Expr, bool Negated) in AVRMCExpr() argument
85 : Kind(Kind), SubExpr(Expr), Negated(Negated) {} in AVRMCExpr()
DAVRMCExpr.cpp39 bool Negated, MCContext &Ctx) { in create() argument
40 return new (Ctx) AVRMCExpr(Kind, Expr, Negated); in create()
99 if (Negated) in evaluateAsInt64()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRMCExpr.h54 bool isNegated() const { return Negated; } in isNegated()
55 void setNegated(bool negated = true) { Negated = negated; }
81 bool Negated; variable
84 explicit AVRMCExpr(VariantKind Kind, const MCExpr *Expr, bool Negated) in AVRMCExpr() argument
85 : Kind(Kind), SubExpr(Expr), Negated(Negated) {} in AVRMCExpr()
DAVRMCExpr.cpp39 bool Negated, MCContext &Ctx) { in create() argument
40 return new (Ctx) AVRMCExpr(Kind, Expr, Negated); in create()
99 if (Negated) in evaluateAsInt64()
/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyCommon.h260 bool Negated; ///< True if this is a negative capability variable
263 CapabilityExpr(const til::SExpr *E, bool Neg) : CapExpr(E), Negated(Neg) {} in CapabilityExpr()
266 bool negative() const { return Negated; } in negative()
269 return CapabilityExpr(CapExpr, !Negated);
273 return (Negated == other.Negated) && sx::equals(CapExpr, other.CapExpr); in equals()
277 return (Negated == other.Negated) && sx::matches(CapExpr, other.CapExpr); in matches()
285 return (Negated == other.Negated) && in partiallyMatches()
290 if (Negated || CapExpr == nullptr) in valueDecl()
300 if (Negated) in toString()
/external/llvm-project/clang/include/clang/Analysis/Analyses/
DThreadSafetyCommon.h276 bool Negated; variable
279 CapabilityExpr(const til::SExpr *E, bool Neg) : CapExpr(E), Negated(Neg) {} in CapabilityExpr()
282 bool negative() const { return Negated; } in negative()
285 return CapabilityExpr(CapExpr, !Negated);
289 return (Negated == other.Negated) && sx::equals(CapExpr, other.CapExpr); in equals()
293 return (Negated == other.Negated) && sx::matches(CapExpr, other.CapExpr); in matches()
301 return (Negated == other.Negated) && in partiallyMatches()
306 if (Negated || CapExpr == nullptr) in valueDecl()
316 if (Negated) in toString()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DTrustNonnullChecker.cpp215 bool Negated) const { in addImplication()
220 Negated ? InputState->get<NonNullImplicationMap>(Antecedent) in addImplication()
228 if ((Negated && InputState->isNonNull(AntecedentV).isConstrainedTrue()) in addImplication()
229 || (!Negated && InputState->isNull(AntecedentV).isConstrainedTrue())) { in addImplication()
231 State = InputState->assume(ConsequentS.castAs<DefinedSVal>(), Negated); in addImplication()
236 if (Negated) { in addImplication()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DARMTargetParser.cpp451 bool Negated = stripNegationPrefix(ArchExt); in getArchExtFeature() local
454 return StringRef(Negated ? AE.NegFeature : AE.Feature); in getArchExtFeature()
501 const bool Negated = stripNegationPrefix(ArchExt); in appendArchExtFeatures() local
508 if (Negated && (AE.ID & ID) == ID && AE.NegFeature) in appendArchExtFeatures()
520 if (Negated) { in appendArchExtFeatures()
525 } else if (Negated) { in appendArchExtFeatures()
/external/llvm-project/llvm/lib/Support/
DARMTargetParser.cpp457 bool Negated = stripNegationPrefix(ArchExt); in getArchExtFeature() local
460 return StringRef(Negated ? AE.NegFeature : AE.Feature); in getArchExtFeature()
501 const bool Negated = stripNegationPrefix(ArchExt); in appendArchExtFeatures() local
508 if (Negated) { in appendArchExtFeatures()
523 if (Negated) { in appendArchExtFeatures()
528 } else if (Negated) { in appendArchExtFeatures()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dreadability-simplify-boolean-expr.rst34 2. Negated applications of ``!`` are eliminated.
35 3. Negated applications of comparison operators are changed to use the
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineNegator.cpp479 Value *Negated = negate(Root, /*Depth=*/0); in run() local
480 if (!Negated) { in run()
487 return std::make_pair(ArrayRef<Instruction *>(NewInstructions), Negated); in run()
/external/guava/android/guava/src/com/google/common/base/
DCharMatcher.java371 return new Negated(this); in negate()
967 static class NegatedFastMatcher extends Negated {
1492 private static class Negated extends CharMatcher {
1496 Negated(CharMatcher original) {
/external/guava/guava/src/com/google/common/base/
DCharMatcher.java372 return new Negated(this); in negate()
968 static class NegatedFastMatcher extends Negated {
1493 private static class Negated extends CharMatcher {
1497 Negated(CharMatcher original) {
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp988 bool Negated = false; in evaluate() local
994 Negated = true; in evaluate()
1027 if (!Test.is(!Negated)) { in evaluate()
DHexagonConstPropagation.cpp2272 bool Negated = false; in evaluate() local
2277 Negated = true; in evaluate()
2323 if ((!Negated && CTrue) || (Negated && CFalse)) in evaluate()
2325 else if ((!Negated && CFalse) || (Negated && CTrue)) in evaluate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp990 bool Negated = false; in evaluate() local
996 Negated = true; in evaluate()
1029 if (!Test.is(!Negated)) { in evaluate()
DHexagonConstPropagation.cpp2267 bool Negated = false; in evaluate() local
2272 Negated = true; in evaluate()
2318 if ((!Negated && CTrue) || (Negated && CFalse)) in evaluate()
2320 else if ((!Negated && CFalse) || (Negated && CTrue)) in evaluate()
DHexagonHardwareLoops.cpp647 bool Negated = TII->predOpcodeHasNot(Cond) ^ (TB != Header); in getLoopTripCount() local
692 if (Negated) in getLoopTripCount()
/external/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp891 bool Negated = false; in evaluate() local
896 Negated = true; in evaluate()
927 if (!Test.is(!Negated)) { in evaluate()
/external/llvm-project/llvm/docs/CommandGuide/
Dllvm-strip.rst118 ``[!a-z]``, ``[^a-z]`` Negated character class ``[^a-z]``
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZOperands.td212 // Negated variants.
465 // Negated immediates that fit LF32 or LH16.
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZOperands.td212 // Negated variants.
465 // Negated immediates that fit LF32 or LH16.
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp2653 MachineBasicBlock *&UncondBrTarget, bool &Negated) { in verifyCFIntrinsic() argument
2670 Negated = true; in verifyCFIntrinsic()
4605 bool Negated = false; in legalizeIntrinsic() local
4607 verifyCFIntrinsic(MI, MRI, Br, UncondBrTarget, Negated)) { in legalizeIntrinsic()
4616 if (Negated) in legalizeIntrinsic()
4653 bool Negated = false; in legalizeIntrinsic() local
4655 verifyCFIntrinsic(MI, MRI, Br, UncondBrTarget, Negated)) { in legalizeIntrinsic()
4662 if (Negated) in legalizeIntrinsic()

12