Home
last modified time | relevance | path

Searched refs:RetVal (Results 1 – 25 of 60) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h91 struct timespec RetVal; in toTimeSpec() local
92 RetVal.tv_sec = toTimeT(TP); in toTimeSpec()
93 RetVal.tv_nsec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeSpec()
94 return RetVal; in toTimeSpec()
101 struct timeval RetVal; in toTimeVal() local
102 RetVal.tv_sec = toTimeT(TP); in toTimeVal()
103 RetVal.tv_usec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeVal()
104 return RetVal; in toTimeVal()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp100 void handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal,
497 if (RetVal.isUnknown()) { in handleComparison()
500 RetVal = nonloc::SymbolVal(SymMgr.conjureSymbol( in handleComparison()
502 State = State->BindExpr(CE, LCtx, RetVal); in handleComparison()
512 if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) { in processComparison()
523 const auto ConditionVal = RetVal.getAs<DefinedSVal>(); in processComparison()
592 const SVal &RetVal, in handleRandomIncrOrDecr() argument
674 SVal RetVal, SVal Iter, in handleAdvance() argument
681 handleRandomIncrOrDecr(C, CE, OO_Minus, RetVal, Iter, Amount); in handlePrev()
686 handleRandomIncrOrDecr(C, CE, OO_Plus, RetVal, Iter, Amount); in handleNext()
[all …]
H A DReturnUndefChecker.cpp32 DefinedOrUnknownSVal RetVal) const;
43 SVal RetVal = C.getSVal(RetE); in checkPreStmt() local
48 if (RetVal.isUndef()) { in checkPreStmt()
75 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>()); in checkPreStmt()
104 DefinedOrUnknownSVal RetVal) const { in checkReference()
106 std::tie(StNonNull, StNull) = C.getState()->assume(RetVal); in checkReference()
H A DSTLAlgorithmModeling.cpp113 SVal RetVal = SVB.conjureSymbolVal(nullptr, CE, LCtx, C.blockCount()); in Find() local
116 auto StateFound = State->BindExpr(CE, LCtx, RetVal); in Find()
124 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find()
126 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find()
146 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find()
148 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find()
H A DPaddingChecker.cpp253 FieldInfo RetVal; in calculateOptimalPad() local
254 RetVal.Field = FD; in calculateOptimalPad()
257 RetVal.Size = FD->isZeroSize(Ctx) ? CharUnits::Zero() : Info.Width; in calculateOptimalPad()
258 RetVal.Align = Info.Align; in calculateOptimalPad()
259 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
261 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align); in calculateOptimalPad()
262 return RetVal; in calculateOptimalPad()
H A DStreamChecker.cpp194 DefinedSVal RetVal = makeRetVal(C, CE); in bindAndAssumeTrue() local
195 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in bindAndAssumeTrue()
196 State = State->assume(RetVal, true); in bindAndAssumeTrue()
485 DefinedSVal RetVal = makeRetVal(C, CE); in evalFopen() local
486 SymbolRef RetSym = RetVal.getAsSymbol(); in evalFopen()
489 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in evalFopen()
495 C.getConstraintManager().assumeDual(State, RetVal); in evalFopen()
682 assert(RetVal && "Value should be NonLoc."); in evalFreadFwrite()
684 State->BindExpr(CE, C.getLocationContext(), *RetVal); in evalFreadFwrite()
746 DefinedSVal RetVal = makeRetVal(C, CE); in evalFseek() local
[all …]
H A DMallocChecker.cpp1297 Optional<SVal> RetVal) { in ProcessZeroAllocCheck() argument
1301 if (!RetVal) in ProcessZeroAllocCheck()
1302 RetVal = Call.getReturnValue(); in ProcessZeroAllocCheck()
1555 if (!RetVal) in MallocUpdateRefState()
1556 RetVal = C.getSVal(E); in MallocUpdateRefState()
1559 if (!RetVal->getAs<Loc>()) in MallocUpdateRefState()
1562 SymbolRef Sym = RetVal->getAsLocSymbol(); in MallocUpdateRefState()
1841 SVal RetVal = C.getSVal(ParentExpr); in FreeMemAux() local
2447 SVal RetVal = C.getSVal(CE); in ReallocMemAux() local
2729 SVal RetVal = C.getSVal(E); in checkEscapeOnReturn() local
[all …]
H A DContainerModeling.cpp35 void handleBegin(CheckerContext &C, const Expr *CE, SVal RetVal,
37 void handleEnd(CheckerContext &C, const Expr *CE, SVal RetVal,
260 SVal RetVal, SVal Cont) const { in handleBegin() argument
276 State = setIteratorPosition(State, RetVal, in handleBegin()
282 SVal RetVal, SVal Cont) const { in handleEnd() argument
298 State = setIteratorPosition(State, RetVal, in handleEnd()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h135 uint64_t RetVal; member
171 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
177 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
186 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
188 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
195 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
197 TM->Bits->After.setLE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHazardRecognizer.cpp46 HazardType RetVal = Hazard; in getHazardType() local
60 RetVal = NoHazard; in getHazardType()
61 LLVM_DEBUG(dbgs() << "*** Try .new version? " << (RetVal == NoHazard) in getHazardType()
65 return RetVal; in getHazardType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp343 static bool slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, in slotOnlyDiscardsData() argument
355 RetVal = getNoopInput(RetVal, RetIndices, BitsRequired, TLI, DL); in slotOnlyDiscardsData()
359 if (isa<UndefValue>(RetVal)) in slotOnlyDiscardsData()
371 if (CallVal != RetVal || CallIndices != RetIndices) in slotOnlyDiscardsData()
641 const Value *RetVal = Ret->getOperand(0), *CallVal = I; in returnTypeIsEligibleForTailCall() local
656 (RetVal == Call->getArgOperand(0) || in returnTypeIsEligibleForTailCall()
657 isPointerBitcastEqualTo(RetVal, Call->getArgOperand(0)))) in returnTypeIsEligibleForTailCall()
664 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath); in returnTypeIsEligibleForTailCall()
698 if (!slotOnlyDiscardsData(RetVal, CallVal, TmpRetPath, TmpCallPath, in returnTypeIsEligibleForTailCall()
H A DIfConversion.cpp507 bool RetVal = false; in INITIALIZE_PASS_DEPENDENCY() local
520 RetVal = IfConvertSimple(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
522 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
546 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
548 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
564 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY()
568 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY()
576 RetVal = IfConvertForkedDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY()
580 if (RetVal) ++NumForkedDiamonds; in INITIALIZE_PASS_DEPENDENCY()
584 if (RetVal && MRI->tracksLiveness()) in INITIALIZE_PASS_DEPENDENCY()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp223 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() local
224 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in runOnFunction()
285 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() local
299 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in runOnFunction()
H A DAMDGPURewriteOutArguments.cpp375 Value *RetVal = RI->getReturnValue(); in runOnFunction() local
376 if (RetVal) in runOnFunction()
377 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++); in runOnFunction()
406 if (RetVal) in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp609 Value *RetVal = Ret->getReturnValue()->stripPointerCasts(); in addArgumentReturnedAttrs() local
610 if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType()) in addArgumentReturnedAttrs()
614 RetArg = RetVal; in addArgumentReturnedAttrs()
615 else if (RetArg != RetVal) in addArgumentReturnedAttrs()
880 Value *RetVal = FlowsToReturn[i]; in isFunctionMallocLike() local
882 if (Constant *C = dyn_cast<Constant>(RetVal)) { in isFunctionMallocLike()
889 if (isa<Argument>(RetVal)) in isFunctionMallocLike()
892 if (Instruction *RVI = dyn_cast<Instruction>(RetVal)) in isFunctionMallocLike()
995 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local
998 if (isKnownNonZero(RetVal, DL)) in isReturnNonNull()
[all …]
H A DDeadArgumentElimination.cpp983 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction() local
996 RetVal = IRB.CreateInsertValue(RetVal, V, Ri, "oldret"); in RemoveDeadStuffFromFunction()
1000 CB.replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1040 Value *RetVal = nullptr; in RemoveDeadStuffFromFunction() local
1051 RetVal = UndefValue::get(NRetTy); in RemoveDeadStuffFromFunction()
1060 RetVal = IRB.CreateInsertValue(RetVal, EV, NewRetIdxs[RetI], in RemoveDeadStuffFromFunction()
1065 RetVal = EV; in RemoveDeadStuffFromFunction()
1071 auto *NewRet = ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
/freebsd-13.1/sys/contrib/dev/acpica/os_specific/service_layers/
H A Dosunixxf.c987 int RetVal; in AcpiOsWaitSemaphore() local
1019 while (((RetVal = sem_wait (Sem)) == -1) && (errno == EINTR)) in AcpiOsWaitSemaphore()
1023 if (RetVal != 0) in AcpiOsWaitSemaphore()
1081 while (((RetVal = sem_timedwait (Sem, &Time)) == -1) && (errno == EINTR)) in AcpiOsWaitSemaphore()
1087 if (RetVal != 0) in AcpiOsWaitSemaphore()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DCFLSteensAliasAnalysis.cpp164 for (auto *RetVal : RetVals) { in FunctionInfo() local
165 assert(RetVal != nullptr); in FunctionInfo()
166 assert(RetVal->getType()->isPointerTy()); in FunctionInfo()
167 auto RetInfo = Sets.find(InstantiatedValue{RetVal, 0}); in FunctionInfo()
H A DCFLGraph.h264 if (auto RetVal = Inst.getReturnValue()) { in visitReturnInst() local
265 if (RetVal->getType()->isPointerTy()) { in visitReturnInst()
266 addNode(RetVal); in visitReturnInst()
267 ReturnValues.push_back(RetVal); in visitReturnInst()
/freebsd-13.1/contrib/llvm-project/llvm/tools/bugpoint/
H A DExecutionDriver.cpp334 Expected<int> RetVal = AI->ExecuteProgram(BitcodeFile, InputArgv, InputFile, in executeProgram() local
337 if (Error E = RetVal.takeError()) in executeProgram()
340 if (*RetVal == -1) { in executeProgram()
359 outFile << "exit " << *RetVal << '\n'; in executeProgram()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp615 Constant *RetVal = nullptr; in EvaluateBlock() local
618 if (!EvaluateFunction(Callee, RetVal, Formals)) { in EvaluateBlock()
623 InstResult = castCallResultIfNeeded(CB.getCalledOperand(), RetVal); in EvaluateBlock()
624 if (RetVal && !InstResult) in EvaluateBlock()
699 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction() argument
747 RetVal = getVal(RI->getOperand(0)); in EvaluateFunction()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp96 ReturnStmt *makeReturn(const Expr *RetVal);
199 ReturnStmt *ASTMaker::makeReturn(const Expr *RetVal) { in makeReturn() argument
200 return ReturnStmt::Create(C, SourceLocation(), const_cast<Expr *>(RetVal), in makeReturn()
648 Expr *RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap() local
650 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
655 RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap()
657 Stmt *Else = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingFile.c336 int RetVal; in writeFile() local
353 RetVal = lprofWriteData(&fileWriter, lprofGetVPDataReader(), MergeDone); in writeFile()
364 return RetVal; in writeFile()
369 int RetVal; in writeOrderFile() local
382 RetVal = orderFileWriter(OutputFile, DataBegin); in writeOrderFile()
385 return RetVal; in writeOrderFile()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DWrapperFunctionUtils.h490 RetT RetVal = detail::ResultDeserializer<SPSRetTagT, RetT>::makeValue(); in callAsync() local
491 detail::ResultDeserializer<SPSRetTagT, RetT>::makeSafe(RetVal); in callAsync()
495 RetVal, R.data(), R.size())) in callAsync()
496 SDR(std::move(Err), std::move(RetVal)); in callAsync()
498 SDR(Error::success(), std::move(RetVal)); in callAsync()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h57 bool EvaluateFunction(Function *F, Constant *&RetVal,

123