| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Unix/ |
| H A D | Unix.h | 90 struct timespec RetVal; in toTimeSpec() local 91 RetVal.tv_sec = toTimeT(TP); in toTimeSpec() 92 RetVal.tv_nsec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeSpec() 93 return RetVal; in toTimeSpec() 100 struct timeval RetVal; in toTimeVal() local 101 RetVal.tv_sec = toTimeT(TP); in toTimeVal() 102 RetVal.tv_usec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeVal() 103 return RetVal; in toTimeVal()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IteratorModeling.cpp | 107 void handleIncrement(CheckerContext &C, SVal RetVal, SVal Iter, 109 void handleDecrement(CheckerContext &C, SVal RetVal, SVal Iter, 492 if (RetVal.isUnknown()) { in handleComparison() 495 RetVal = nonloc::SymbolVal(SymMgr.conjureSymbol( in handleComparison() 497 State = State->BindExpr(CE, LCtx, RetVal); in handleComparison() 507 if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) { in processComparison() 518 const auto ConditionVal = RetVal.getAs<DefinedSVal>(); in processComparison() 668 SVal RetVal, SVal Iter, in handleAdvance() argument 675 handleRandomIncrOrDecr(C, CE, OO_Minus, RetVal, Iter, Amount); in handlePrev() 680 handleRandomIncrOrDecr(C, CE, OO_Plus, RetVal, Iter, Amount); in handleNext() [all …]
|
| H A D | ReturnUndefChecker.cpp | 32 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() 99 DefinedOrUnknownSVal RetVal) const { in checkReference() 101 std::tie(StNonNull, StNull) = C.getState()->assume(RetVal); in checkReference()
|
| H A D | STLAlgorithmModeling.cpp | 114 SVal RetVal = SVB.conjureSymbolVal(nullptr, CE, LCtx, C.blockCount()); in Find() local 117 auto StateFound = State->BindExpr(CE, LCtx, RetVal); in Find() 125 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 127 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find() 147 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 149 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find()
|
| H A D | StreamChecker.cpp | 197 DefinedSVal RetVal = makeRetVal(C, CE); in bindAndAssumeTrue() local 199 State = State->assume(RetVal, true); in bindAndAssumeTrue() 581 DefinedSVal RetVal = makeRetVal(C, CE); in evalFopen() local 582 SymbolRef RetSym = RetVal.getAsSymbol(); in evalFopen() 777 NonLoc RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in evalFreadFwrite() local 841 SVB.evalBinOp(State, BO_LE, RetVal, in evalFgetx() 970 NonLoc RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in evalFprintf() local 1028 SVB.evalBinOp(StateNotFailed, BO_GE, RetVal, in evalFscanf() 1189 DefinedSVal RetVal = makeRetVal(C, CE); in evalFseek() local 1234 DefinedSVal RetVal = makeRetVal(C, CE); in evalFgetpos() local [all …]
|
| H A D | PaddingChecker.cpp | 253 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 D | MallocChecker.cpp | 1500 std::optional<SVal> RetVal) { in ProcessZeroAllocCheck() argument 1504 if (!RetVal) in ProcessZeroAllocCheck() 1505 RetVal = Call.getReturnValue(); in ProcessZeroAllocCheck() 1736 DefinedSVal RetVal = in MallocMemAux() local 1764 if (!RetVal) in MallocUpdateRefState() 1765 RetVal = C.getSVal(E); in MallocUpdateRefState() 1768 if (!RetVal->getAs<Loc>()) in MallocUpdateRefState() 2047 SVal RetVal = C.getSVal(ParentExpr); in FreeMemAux() local 2657 SVal RetVal = C.getSVal(CE); in ReallocMemAux() local 2938 SVal RetVal = C.getSVal(E); in checkEscapeOnReturn() local [all …]
|
| H A D | ContainerModeling.cpp | 36 void handleBegin(CheckerContext &C, const Expr *CE, SVal RetVal, 38 void handleEnd(CheckerContext &C, const Expr *CE, SVal RetVal, 246 SVal RetVal, SVal Cont) const { in handleBegin() argument 262 State = setIteratorPosition(State, RetVal, in handleBegin() 268 SVal RetVal, SVal Cont) const { in handleEnd() argument 284 State = setIteratorPosition(State, RetVal, in handleEnd()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 135 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-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonHazardRecognizer.cpp | 46 HazardType RetVal = Hazard; in getHazardType() local 55 RetVal = NoHazard; in getHazardType() 56 LLVM_DEBUG(dbgs() << "*** Try .new version? " << (RetVal == NoHazard) in getHazardType() 60 return RetVal; in getHazardType()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | Analysis.cpp | 414 static bool slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, in slotOnlyDiscardsData() argument 426 RetVal = getNoopInput(RetVal, RetIndices, BitsRequired, TLI, DL); in slotOnlyDiscardsData() 430 if (isa<UndefValue>(RetVal)) in slotOnlyDiscardsData() 442 if (CallVal != RetVal || CallIndices != RetIndices) in slotOnlyDiscardsData() 710 const Value *RetVal = Ret->getOperand(0), *CallVal = I; in returnTypeIsEligibleForTailCall() local 725 (RetVal == Call->getArgOperand(0) || in returnTypeIsEligibleForTailCall() 726 isPointerBitcastEqualTo(RetVal, Call->getArgOperand(0)))) in returnTypeIsEligibleForTailCall() 733 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath); in returnTypeIsEligibleForTailCall() 767 if (!slotOnlyDiscardsData(RetVal, CallVal, TmpRetPath, TmpCallPath, in returnTypeIsEligibleForTailCall()
|
| H A D | IfConversion.cpp | 503 bool RetVal = false; in INITIALIZE_PASS_DEPENDENCY() local 516 RetVal = IfConvertSimple(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY() 518 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY() 541 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY() 543 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY() 558 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY() 562 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY() 570 RetVal = IfConvertForkedDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY() 574 if (RetVal) ++NumForkedDiamonds; in INITIALIZE_PASS_DEPENDENCY() 578 if (RetVal && MRI->tracksLiveness()) in INITIALIZE_PASS_DEPENDENCY() [all …]
|
| /freebsd-14.2/sys/contrib/dev/acpica/os_specific/service_layers/ |
| H A D | osunixxf.c | 987 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-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 985 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction() local 998 RetVal = IRB.CreateInsertValue(RetVal, V, Ri, "oldret"); in removeDeadStuffFromFunction() 1002 CB.replaceAllUsesWith(RetVal); in removeDeadStuffFromFunction() 1042 Value *RetVal = nullptr; in removeDeadStuffFromFunction() local 1053 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction() 1062 RetVal = IRB.CreateInsertValue(RetVal, EV, NewRetIdxs[RetI], in removeDeadStuffFromFunction() 1067 RetVal = EV; in removeDeadStuffFromFunction() 1073 auto *NewRet = ReturnInst::Create(F->getContext(), RetVal, RI); in removeDeadStuffFromFunction()
|
| H A D | FunctionAttrs.cpp | 776 auto *RetVal = in addArgumentReturnedAttrs() local 778 if (!RetVal || RetVal->getType() != F->getReturnType()) in addArgumentReturnedAttrs() 782 RetArg = RetVal; in addArgumentReturnedAttrs() 783 else if (RetArg != RetVal) in addArgumentReturnedAttrs() 1062 Value *RetVal = FlowsToReturn[i]; in isFunctionMallocLike() local 1064 if (Constant *C = dyn_cast<Constant>(RetVal)) { in isFunctionMallocLike() 1071 if (isa<Argument>(RetVal)) in isFunctionMallocLike() 1074 if (Instruction *RVI = dyn_cast<Instruction>(RetVal)) in isFunctionMallocLike() 1175 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local 1178 if (isKnownNonZero(RetVal, DL)) in isReturnNonNull() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUUnifyDivergentExitNodes.cpp | 232 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run() local 233 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in run() 294 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run() local 308 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in run()
|
| H A D | AMDGPURewriteOutArguments.cpp | 347 Value *RetVal = RI->getReturnValue(); in runOnFunction() local 348 if (RetVal) in runOnFunction() 349 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++); in runOnFunction() 354 if (RetVal) in runOnFunction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64Arm64ECCallLowering.cpp | 429 Value *RetVal = Call; in buildExitThunk() local 434 RetVal = IRB.CreateLoad(RetTy, Args[1]); in buildExitThunk() 438 RetVal = IRB.CreateLoad(RetTy, CastAlloca); in buildExitThunk() 445 IRB.CreateRet(RetVal); in buildExitThunk() 526 Value *RetVal = Call; in buildEntryThunk() local 528 IRB.CreateStore(RetVal, IRB.CreateBitCast(Thunk->getArg(1), PtrTy)); in buildEntryThunk() 532 RetVal = IRB.CreateLoad(X64RetType, CastAlloca); in buildEntryThunk() 542 IRB.CreateRet(RetVal); in buildEntryThunk()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | WrapperFunctionUtils.h | 495 RetT RetVal = detail::ResultDeserializer<SPSRetTagT, RetT>::makeValue(); in callAsync() local 496 detail::ResultDeserializer<SPSRetTagT, RetT>::makeSafe(RetVal); in callAsync() 500 std::move(RetVal)); in callAsync() 506 RetVal, R.data(), R.size())) in callAsync() 507 SDR(std::move(Err), std::move(RetVal)); in callAsync() 509 SDR(Error::success(), std::move(RetVal)); in callAsync() 674 runWithSPSRet(RetT &RetVal) const { in runWithSPSRet() argument 679 if (!shared::SPSSerializationTraits<SPSRetT, RetT>::deserialize(IB, RetVal)) in runWithSPSRet()
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | ExecutionDriver.cpp | 334 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-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 540 Constant *RetVal = nullptr; in EvaluateBlock() local 543 if (!EvaluateFunction(Callee, RetVal, Formals)) { in EvaluateBlock() 548 InstResult = castCallResultIfNeeded(CB.getType(), RetVal); in EvaluateBlock() 549 if (RetVal && !InstResult) in EvaluateBlock() 629 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction() argument 677 RetVal = getVal(RI->getOperand(0)); in EvaluateFunction()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | BodyFarm.cpp | 101 ReturnStmt *makeReturn(const Expr *RetVal); 215 ReturnStmt *ASTMaker::makeReturn(const Expr *RetVal) { in makeReturn() argument 216 return ReturnStmt::Create(C, SourceLocation(), const_cast<Expr *>(RetVal), in makeReturn() 678 Expr *RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap() local 680 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap() 685 RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap() 687 Stmt *Else = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/cert/ |
| H A D | InvalidPtrChecker.cpp | 204 DefinedOrUnknownSVal RetVal = C.getSValBuilder().conjureSymbolVal( in postPreviousReturnInvalidatingCall() local 206 State = State->BindExpr(CE, LCtx, RetVal); in postPreviousReturnInvalidatingCall() 209 dyn_cast_or_null<SymbolicRegion>(RetVal.getAsRegion()); in postPreviousReturnInvalidatingCall()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingFile.c | 507 int RetVal; in writeFile() local 524 RetVal = lprofWriteData(&fileWriter, lprofGetVPDataReader(), MergeDone); in writeFile() 535 return RetVal; in writeFile() 540 int RetVal; in writeOrderFile() local 553 RetVal = orderFileWriter(OutputFile, DataBegin); in writeOrderFile() 556 return RetVal; in writeOrderFile()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | BasicBlock.cpp | 122 bool RetVal = false; in validateDbgValues() local 128 auto TestFailure = [Assert, Msg, &RetVal, OS](bool Val, const char *Text) { in validateDbgValues() 139 RetVal = true; in validateDbgValues() 148 return RetVal; in validateDbgValues() 179 return RetVal; in validateDbgValues()
|