Home
last modified time | relevance | path

Searched refs:ExpectedValue (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DReturnValueChecker.cpp73 static std::optional<bool> isInvariantBreak(bool ExpectedValue, SVal ReturnV, in isInvariantBreak() argument
79 if (ExpectedValue) in isInvariantBreak()
92 bool ExpectedValue = *RawExpectedValue; in checkPostCall() local
94 isInvariantBreak(ExpectedValue, ReturnV, C); in checkPostCall()
104 [Name, ExpectedValue](PathSensitiveBugReport &) -> std::string { in checkPostCall()
109 << (ExpectedValue ? "true" : "false"); in checkPostCall()
115 State = State->assume(ReturnV.castAs<DefinedOrUnknownSVal>(), ExpectedValue); in checkPostCall()
140 bool ExpectedValue = *RawExpectedValue; in checkEndFunction() local
142 isInvariantBreak(ExpectedValue, ReturnV, C); in checkEndFunction()
152 [Name, ExpectedValue](BugReport &BR) -> std::string { in checkEndFunction()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() local
88 if (!ExpectedValue) in handleSwitchExpect()
91 SwitchInst::CaseHandle Case = *SI.findCaseValue(ExpectedValue); in handleSwitchExpect()
118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() local
119 if (!ExpectedValue) in handlePhiDef()
121 const APInt &ExpectedPhiValue = ExpectedValue->getValue(); in handlePhiDef()
320 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect() local
321 if (!ExpectedValue) in handleBrSelExpect()
332 if ((ExpectedValue->getZExtValue() == ValueComparedTo) == in handleBrSelExpect()
H A DLoopStrengthReduce.cpp3534 llvm::Value *ExpectedValue = U; in CollectLoopInvariantFixupsAndFormulae() local
3536 if (PhiNode->getIncomingValue(I) == ExpectedValue) { in CollectLoopInvariantFixupsAndFormulae()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DDbiModuleList.cpp125 auto ExpectedValue = Modules->getFileName(Off); in setValue() local
126 if (!ExpectedValue) { in setValue()
127 consumeError(ExpectedValue.takeError()); in setValue()
130 ThisValue = *ExpectedValue; in setValue()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1738 explicit ValueEqualsMatcher(const ValueT &ExpectedValue)
1739 : ExpectedValue(ExpectedValue) {}
1742 return Node.getValue() == ExpectedValue;
1746 ValueT ExpectedValue;
1755 return Node.getValue().convertToFloat() == ExpectedValue;
1757 return Node.getValue().convertToDouble() == ExpectedValue;
1764 return Node.getValue().convertToFloat() == ExpectedValue;
1766 return Node.getValue().convertToDouble() == ExpectedValue;
1772 return ExpectedValue.compare(Node.getValue()) == llvm::APFloat::cmpEqual;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIInstrInfo.cpp9653 this](int64_t ExpectedValue, unsigned SrcSize, in optimizeCompareInstr()
9708 ExpectedValue <<= BitNo; in optimizeCompareInstr()
9711 if (CmpValue != ExpectedValue) { in optimizeCompareInstr()
9714 IsReversedCC = CmpValue == (ExpectedValue ^ Mask); in optimizeCompareInstr()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp3245 Value *ExpectedValue = EmitScalarExpr(E->getArg(1)); in EmitBuiltinExpr() local
3254 Builder.CreateCall(FnExpect, {ArgValue, ExpectedValue}, "expval"); in EmitBuiltinExpr()
3261 Value *ExpectedValue = EmitScalarExpr(E->getArg(1)); in EmitBuiltinExpr() local
3281 FnExpect, {ArgValue, ExpectedValue, Confidence}, "expval"); in EmitBuiltinExpr()