Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DReturnValueChecker.cpp72 static Optional<bool> isInvariantBreak(bool ExpectedValue, SVal ReturnV, in isInvariantBreak() argument
78 if (ExpectedValue) in isInvariantBreak()
91 bool ExpectedValue = *RawExpectedValue; in checkPostCall() local
92 Optional<bool> IsInvariantBreak = isInvariantBreak(ExpectedValue, ReturnV, C); in checkPostCall()
102 [Name, ExpectedValue](PathSensitiveBugReport &) -> std::string { in checkPostCall()
107 << (ExpectedValue ? "true" : "false"); in checkPostCall()
113 State = State->assume(ReturnV.castAs<DefinedOrUnknownSVal>(), ExpectedValue); in checkPostCall()
138 bool ExpectedValue = *RawExpectedValue; in checkEndFunction() local
139 Optional<bool> IsInvariantBreak = isInvariantBreak(ExpectedValue, ReturnV, C); in checkEndFunction()
149 [Name, ExpectedValue](BugReport &BR) -> std::string { in checkEndFunction()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp89 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() local
90 if (!ExpectedValue) in handleSwitchExpect()
93 SwitchInst::CaseHandle Case = *SI.findCaseValue(ExpectedValue); in handleSwitchExpect()
121 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() local
122 if (!ExpectedValue) in handlePhiDef()
124 const APInt &ExpectedPhiValue = ExpectedValue->getValue(); in handlePhiDef()
307 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect() local
308 if (!ExpectedValue) in handleBrSelExpect()
318 if ((ExpectedValue->getZExtValue() == ValueComparedTo) == in handleBrSelExpect()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/Native/
H A DDbiModuleList.cpp124 auto ExpectedValue = Modules->getFileName(Off); in setValue() local
125 if (!ExpectedValue) { in setValue()
126 consumeError(ExpectedValue.takeError()); in setValue()
129 ThisValue = *ExpectedValue; in setValue()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1766 explicit ValueEqualsMatcher(const ValueT &ExpectedValue)
1767 : ExpectedValue(ExpectedValue) {}
1770 return Node.getValue() == ExpectedValue;
1774 ValueT ExpectedValue;
1783 return Node.getValue().convertToFloat() == ExpectedValue;
1785 return Node.getValue().convertToDouble() == ExpectedValue;
1792 return Node.getValue().convertToFloat() == ExpectedValue;
1794 return Node.getValue().convertToDouble() == ExpectedValue;
1800 return ExpectedValue.compare(Node.getValue()) == llvm::APFloat::cmpEqual;
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGBuiltin.cpp2771 Value *ExpectedValue = EmitScalarExpr(E->getArg(1)); in EmitBuiltinExpr() local
2780 Builder.CreateCall(FnExpect, {ArgValue, ExpectedValue}, "expval"); in EmitBuiltinExpr()
2787 Value *ExpectedValue = EmitScalarExpr(E->getArg(1)); in EmitBuiltinExpr() local
2807 FnExpect, {ArgValue, ExpectedValue, Confidence}, "expval"); in EmitBuiltinExpr()