Searched refs:RetVal (Results 1 - 25 of 51) sorted by relevance

123

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h95 struct timespec RetVal; local
96 RetVal.tv_sec = toTimeT(TP);
97 RetVal.tv_nsec = (TP.time_since_epoch() % seconds(1)).count();
98 return RetVal;
105 struct timeval RetVal; local
106 RetVal.tv_sec = toTimeT(TP);
107 RetVal.tv_usec = (TP.time_since_epoch() % seconds(1)).count();
108 return RetVal;
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DReturnUndefChecker.cpp32 DefinedOrUnknownSVal RetVal) const;
43 SVal RetVal = C.getSVal(RetE);
48 if (RetVal.isUndef()) {
75 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>());
104 DefinedOrUnknownSVal RetVal) const {
106 std::tie(StNonNull, StNull) = C.getState()->assume(RetVal);
H A DPaddingChecker.cpp248 FieldInfo RetVal;
249 RetVal.Field = FD;
251 std::tie(RetVal.Size, RetVal.Align) =
253 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity()));
255 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align);
256 return RetVal;
H A DIteratorModeling.cpp90 void handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal,
94 SymbolRef Sym1, SymbolRef Sym2, const SVal &RetVal,
96 void handleIncrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter,
98 void handleDecrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter,
101 OverloadedOperatorKind Op, const SVal &RetVal,
103 void handleBegin(CheckerContext &C, const Expr *CE, const SVal &RetVal,
105 void handleEnd(CheckerContext &C, const Expr *CE, const SVal &RetVal,
107 void assignToContainer(CheckerContext &C, const Expr *CE, const SVal &RetVal,
502 SVal RetVal, const SVal &LVal,
543 if (RetVal
501 handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal, const SVal &LVal, const SVal &RVal, OverloadedOperatorKind Op) const argument
554 processComparison(CheckerContext &C, ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2, const SVal &RetVal, OverloadedOperatorKind Op) const argument
584 handleIncrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter, bool Postfix) const argument
610 handleDecrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter, bool Postfix) const argument
636 handleRandomIncrOrDecr(CheckerContext &C, const Expr *CE, OverloadedOperatorKind Op, const SVal &RetVal, const SVal &LHS, const SVal &RHS) const argument
672 handleBegin(CheckerContext &C, const Expr *CE, const SVal &RetVal, const SVal &Cont) const argument
694 handleEnd(CheckerContext &C, const Expr *CE, const SVal &RetVal, const SVal &Cont) const argument
716 assignToContainer(CheckerContext &C, const Expr *CE, const SVal &RetVal, const MemRegion *Cont) const argument
[all...]
H A DStreamChecker.cpp145 DefinedSVal RetVal =
148 state = state->BindExpr(CE, C.getLocationContext(), RetVal);
154 std::tie(stateNotNull, stateNull) = CM.assumeDual(state, RetVal);
156 SymbolRef Sym = RetVal.getAsSymbol();
157 assert(Sym && "RetVal must be a symbol here.");
H A DMallocChecker.cpp206 /// The optional \p RetVal parameter specifies the newly allocated pointer
211 Optional<SVal> RetVal = None);
412 /// \param [in] RetVal Specifies the newly allocated pointer value;
417 Optional<SVal> RetVal = None);
1232 ProgramStateRef State, Optional<SVal> RetVal) {
1236 if (!RetVal)
1237 RetVal = C.getSVal(E);
1270 SymbolRef Sym = RetVal->getAsLocSymbol();
1531 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) local
1533 State = State->BindExpr(CE, C.getLocationContext(), RetVal);
1230 ProcessZeroAllocCheck( CheckerContext &C, const Expr *E, const unsigned IndexOfSizeArg, ProgramStateRef State, Optional<SVal> RetVal) argument
1557 MallocUpdateRefState(CheckerContext &C, const Expr *E, ProgramStateRef State, AllocationFamily Family, Optional<SVal> RetVal) argument
1886 SVal RetVal = C.getSVal(ParentExpr); local
2457 SVal RetVal = C.getSVal(CE); local
2748 SVal RetVal = C.getSVal(E); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h135 uint64_t RetVal; member in struct:llvm::wholeprogramdevirt::VirtualCallTarget
168 // Set the bit at position Pos before the address point to RetVal.
171 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal);
174 // Set the bit at position Pos after the address point to RetVal.
177 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal);
180 // Set the bytes at position Pos before the address point to RetVal.
186 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size);
188 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size);
191 // Set the bytes at position Pos after the address point to RetVal.
195 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Siz
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHazardRecognizer.cpp46 HazardType RetVal = Hazard; local
60 RetVal = NoHazard;
61 LLVM_DEBUG(dbgs() << "*** Try .new version? " << (RetVal == NoHazard)
65 return RetVal;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp227 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); local
258 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB);
301 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); local
315 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock);
H A DAMDGPURewriteOutArguments.cpp393 Value *RetVal = RI->getReturnValue(); local
394 if (RetVal)
395 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++);
425 if (RetVal)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h57 bool EvaluateFunction(Function *F, Constant *&RetVal,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DCFLSteensAliasAnalysis.cpp164 for (auto *RetVal : RetVals) {
165 assert(RetVal != nullptr);
166 assert(RetVal->getType()->isPointerTy());
167 auto RetInfo = Sets.find(InstantiatedValue{RetVal, 0});
H A DCFLGraph.h264 if (auto RetVal = Inst.getReturnValue()) {
265 if (RetVal->getType()->isPointerTy()) {
266 addNode(RetVal);
267 ReturnValues.push_back(RetVal);
/freebsd-11-stable/sys/contrib/dev/acpica/os_specific/service_layers/
H A Dosunixxf.c987 int RetVal; local
1019 while (((RetVal = sem_wait (Sem)) == -1) && (errno == EINTR))
1023 if (RetVal != 0)
1081 while (((RetVal = sem_timedwait (Sem, &Time)) == -1) && (errno == EINTR))
1087 if (RetVal != 0)
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp981 Value *RetVal = UndefValue::get(RetTy); local
994 RetVal = InsertValueInst::Create(RetVal, V, i, "oldret", InsertPt);
998 Call->replaceAllUsesWith(RetVal);
1036 Value *RetVal; local
1039 RetVal = nullptr;
1049 RetVal = UndefValue::get(NRetTy);
1058 RetVal = InsertValueInst::Create(RetVal, EV, NewRetIdxs[i],
1063 RetVal
[all...]
H A DFunctionAttrs.cpp598 Value *RetVal = Ret->getReturnValue()->stripPointerCasts();
599 if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType())
603 RetArg = RetVal;
604 else if (RetArg != RetVal)
869 Value *RetVal = FlowsToReturn[i];
871 if (Constant *C = dyn_cast<Constant>(RetVal)) {
878 if (isa<Argument>(RetVal))
881 if (Instruction *RVI = dyn_cast<Instruction>(RetVal))
918 if (PointerMayBeCaptured(RetVal, fals
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp354 static bool slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, argument
366 RetVal = getNoopInput(RetVal, RetIndices, BitsRequired, TLI, DL);
370 if (isa<UndefValue>(RetVal))
382 if (CallVal != RetVal || CallIndices != RetIndices)
651 const Value *RetVal = Ret->getOperand(0), *CallVal = I; local
666 (RetVal == Call->getArgOperand(0) ||
667 isPointerBitcastEqualTo(RetVal, Call->getArgOperand(0))))
674 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath);
707 if (!slotOnlyDiscardsData(RetVal, CallVa
[all...]
H A DIfConversion.cpp509 bool RetVal = false; local
522 RetVal = IfConvertSimple(BBI, Kind);
523 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n");
524 if (RetVal) {
548 RetVal = IfConvertTriangle(BBI, Kind);
549 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n");
550 if (RetVal) {
566 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2,
569 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n");
570 if (RetVal)
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingFile.c329 int RetVal; local
346 RetVal = lprofWriteData(&fileWriter, lprofGetVPDataReader(), MergeDone);
357 return RetVal;
362 int RetVal; local
375 RetVal = orderFileWriter(OutputFile, DataBegin);
378 return RetVal;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp587 Constant *RetVal = nullptr; local
590 if (!EvaluateFunction(Callee, RetVal, Formals)) {
595 InstResult = castCallResultIfNeeded(CS.getCalledValue(), RetVal);
596 if (RetVal && !InstResult)
672 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, argument
709 RetVal = getVal(RI->getOperand(0));
/freebsd-11-stable/contrib/llvm-project/llvm/tools/bugpoint/
H A DExecutionDriver.cpp346 Expected<int> RetVal = AI->ExecuteProgram(BitcodeFile, InputArgv, InputFile, local
349 if (Error E = RetVal.takeError())
352 if (*RetVal == -1) {
371 outFile << "exit " << *RetVal << '\n'; local
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp96 ReturnStmt *makeReturn(const Expr *RetVal);
203 ReturnStmt *ASTMaker::makeReturn(const Expr *RetVal) { argument
204 return ReturnStmt::Create(C, SourceLocation(), const_cast<Expr *>(RetVal),
646 Expr *RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) local
648 Stmts[1] = M.makeReturn(RetVal);
653 RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal)
655 Stmt *Else = M.makeReturn(RetVal);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp899 auto *RetVal = RI->getReturnValue(); local
900 if (!RetVal) break; // handle "ret void"
901 if (isa<Constant>(RetVal)) break; // nothing to do
902 if (auto *C = getConstantAt(RetVal, RI, LVI)) {
904 RI->replaceUsesOfWith(RetVal, C);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.cpp926 SVal RetVal = state->getSVal(BindReturnTo, LCtx); local
932 if (RetVal.isUnknown() ||
935 RetVal =
940 state = state->BindExpr(CE, LCtx, RetVal, /*Invalidate=*/false);
953 if (auto L = RetVal.getAs<DefinedOrUnknownSVal>())
/freebsd-11-stable/crypto/openssl/crypto/rc4/asm/
H A Drc4-ia64.pl354 #define RetVal r8
486 mov RetVal = r0
742 add RetVal = 1, r0

Completed in 387 milliseconds

123