| /freebsd/contrib/llvm-project/llvm/lib/Support/Unix/ |
| H A D | Unix.h | 84 struct timespec RetVal; in toTimeSpec() local 85 RetVal.tv_sec = toTimeT(TP); in toTimeSpec() 86 RetVal.tv_nsec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeSpec() 87 return RetVal; in toTimeSpec() 94 struct timeval RetVal; in toTimeVal() local 95 RetVal.tv_sec = toTimeT(TP); in toTimeVal() 96 RetVal.tv_usec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeVal() 97 return RetVal; in toTimeVal()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IteratorModeling.cpp | 102 ConstCFGElementRef Elem, SVal RetVal, SVal LVal, 105 SymbolRef Sym1, SymbolRef Sym2, SVal RetVal, 107 void handleIncrement(CheckerContext &C, SVal RetVal, SVal Iter, 109 void handleDecrement(CheckerContext &C, SVal RetVal, SVal Iter, 112 OverloadedOperatorKind Op, SVal RetVal, 117 void handleAdvance(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal, 119 void handlePrev(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal, 121 void handleNext(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal, 124 SVal RetVal, const MemRegion *Cont) const; 450 ConstCFGElementRef Elem, SVal RetVal, in handleComparison() argument [all …]
|
| H A D | BuiltinFunctionChecker.cpp | 107 std::pair<bool, bool> checkOverflow(CheckerContext &C, SVal RetVal, 147 BuiltinFunctionChecker::checkOverflow(CheckerContext &C, SVal RetVal, in checkOverflow() argument 164 SVal IsLeMax = SVB.evalBinOp(State, BO_LE, RetVal, MaxVal, Res); in checkOverflow() 165 SVal IsGeMin = SVB.evalBinOp(State, BO_GE, RetVal, MinVal, Res); in checkOverflow() 177 SVal RetVal, bool IsOverflow) const { in initStateAftetBuiltinOverflow() argument 188 NewState = NewState->bindLoc(*L, RetVal, C.getLocationContext()); in initStateAftetBuiltinOverflow() 213 SVal RetVal = SVB.evalBinOp(State, Op, Arg1, Arg2, ResultType); in handleOverflowBuiltin() local 219 initStateAftetBuiltinOverflow(C, State, Call, RetVal, false); in handleOverflowBuiltin() 222 C, /*overflow=*/false, Arg1, Arg2, RetVal)); in handleOverflowBuiltin() 226 auto NewState = initStateAftetBuiltinOverflow(C, State, Call, RetVal, true); in handleOverflowBuiltin() [all …]
|
| H A D | PaddingChecker.cpp | 251 FieldInfo RetVal; in calculateOptimalPad() local 252 RetVal.Field = FD; in calculateOptimalPad() 255 RetVal.Size = FD->isZeroSize(Ctx) ? CharUnits::Zero() : Info.Width; in calculateOptimalPad() 256 RetVal.Align = Info.Align; in calculateOptimalPad() 257 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad() 259 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align); in calculateOptimalPad() 260 return RetVal; in calculateOptimalPad()
|
| H A D | STLAlgorithmModeling.cpp | 138 SVal RetVal = SVB.conjureSymbolVal(nullptr, Elem, LCtx, C.blockCount()); in Find() local 141 auto StateFound = State->BindExpr(CE, LCtx, RetVal); in Find() 149 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 151 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find() 171 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 173 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find()
|
| H A D | StreamChecker.cpp | 236 DefinedSVal RetVal = makeRetVal(C, Elem); in bindAndAssumeTrue() local 237 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in bindAndAssumeTrue() 238 State = State->assume(RetVal, true); in bindAndAssumeTrue() 290 DefinedSVal RetVal, 686 NonLoc RetVal = makeRetVal(C, Elem.value()).castAs<NonLoc>(); in makeAndBindRetVal() local 687 return State->BindExpr(CE, C.getLocationContext(), RetVal); in makeAndBindRetVal() 719 DefinedSVal RetVal = makeRetVal(C, Elem.value()); in makeRetValAndAssumeDual() local 720 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in makeRetValAndAssumeDual() 721 return C.getConstraintManager().assumeDual(State, RetVal); in makeRetValAndAssumeDual() 904 ProgramStateRef State, DefinedSVal RetVal, CheckerContext &C) const { in assumeNoAliasingWithStdStreams() argument [all …]
|
| H A D | MallocChecker.cpp | 259 std::optional<SVal> RetVal = std::nullopt); 594 std::optional<SVal> RetVal = std::nullopt); 1437 auto RetVal = State->getSVal(BufArg, Call.getLocationContext()); in checkCXXNewOrCXXDelete() local 1438 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in checkCXXNewOrCXXDelete() 1668 ProgramStateRef State, std::optional<SVal> RetVal) { in ProcessZeroAllocCheck() argument 1688 if (!RetVal) in ProcessZeroAllocCheck() 1689 RetVal = State->getSVal(Call.getOriginExpr(), C.getLocationContext()); in ProcessZeroAllocCheck() 1709 SymbolRef Sym = RetVal->getAsLocSymbol(); in ProcessZeroAllocCheck() 1893 DefinedSVal RetVal = in MallocBindRetVal() local 1897 return State->BindExpr(CE, C.getLocationContext(), RetVal); in MallocBindRetVal() [all …]
|
| H A D | StackAddrEscapeChecker.cpp | 312 const Expr *RetE, SVal &RetVal) { in FilterReturnExpressionLeaks() argument 316 const MemRegion *RetRegion = RetVal.getAsRegion(); in FilterReturnExpressionLeaks() 348 FindEscapingStackRegions(CheckerContext &C, const Expr *RetE, SVal RetVal) { in FindEscapingStackRegions() argument 353 Scanner.scan(RetVal); in FindEscapingStackRegions() 355 return FilterReturnExpressionLeaks(FoundStackRegions, C, RetE, RetVal); in FindEscapingStackRegions()
|
| H A D | ContainerModeling.cpp | 35 void handleBegin(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal, 37 void handleEnd(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal, 254 SVal RetVal, SVal Cont) const { in handleBegin() argument 270 State = setIteratorPosition(State, RetVal, in handleBegin() 276 SVal RetVal, SVal Cont) const { in handleEnd() argument 292 State = setIteratorPosition(State, RetVal, in handleEnd()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 137 uint64_t RetVal; member 173 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit() 179 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit() 188 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes() 190 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes() 197 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes() 199 TM->Bits->After.setLE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
|
| /freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | Analysis.cpp | 377 static bool slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, in slotOnlyDiscardsData() argument 389 RetVal = getNoopInput(RetVal, RetIndices, BitsRequired, TLI, DL); in slotOnlyDiscardsData() 393 if (isa<UndefValue>(RetVal)) in slotOnlyDiscardsData() 405 if (CallVal != RetVal || CallIndices != RetIndices) in slotOnlyDiscardsData() 666 const Value *RetVal = Ret->getOperand(0), *CallVal = I; in returnTypeIsEligibleForTailCall() local 670 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath); in returnTypeIsEligibleForTailCall() 704 if (!slotOnlyDiscardsData(RetVal, CallVal, TmpRetPath, TmpCallPath, in returnTypeIsEligibleForTailCall() 717 Value *RetVal = Ret ? Ret->getReturnValue() : nullptr; in funcReturnsFirstArgOfCall() local 719 if (RetVal && ((RetVal == CI.getArgOperand(0)))) in funcReturnsFirstArgOfCall()
|
| H A D | IfConversion.cpp | 523 bool RetVal = false; in INITIALIZE_PASS_DEPENDENCY() local 536 RetVal = IfConvertSimple(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY() 537 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY() 538 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY() 561 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY() 562 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY() 563 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY() 578 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY() 581 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY() 582 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY() [all …]
|
| /freebsd/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/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 989 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction() local 1002 RetVal = IRB.CreateInsertValue(RetVal, V, Ri, "oldret"); in removeDeadStuffFromFunction() 1006 CB.replaceAllUsesWith(RetVal); in removeDeadStuffFromFunction() 1045 Value *RetVal = nullptr; in removeDeadStuffFromFunction() local 1056 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction() 1065 RetVal = IRB.CreateInsertValue(RetVal, EV, NewRetIdxs[RetI], in removeDeadStuffFromFunction() 1070 RetVal = EV; in removeDeadStuffFromFunction() 1077 ReturnInst::Create(F->getContext(), RetVal, RI->getIterator()); in removeDeadStuffFromFunction()
|
| H A D | FunctionAttrs.cpp | 1027 auto *RetVal = in addArgumentReturnedAttrs() local 1029 if (!RetVal || RetVal->getType() != F->getReturnType()) in addArgumentReturnedAttrs() 1033 RetArg = RetVal; in addArgumentReturnedAttrs() 1034 else if (RetArg != RetVal) in addArgumentReturnedAttrs() 1456 Value *RetVal = FlowsToReturn[i]; in isFunctionMallocLike() local 1458 if (Constant *C = dyn_cast<Constant>(RetVal)) { in isFunctionMallocLike() 1465 if (isa<Argument>(RetVal)) in isFunctionMallocLike() 1468 if (Instruction *RVI = dyn_cast<Instruction>(RetVal)) in isFunctionMallocLike() 1504 if (PointerMayBeCaptured(RetVal, /*ReturnCaptures=*/false)) in isFunctionMallocLike() 1568 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUUnifyDivergentExitNodes.cpp | 231 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run() local 232 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in run() 293 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run() local 307 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in run()
|
| H A D | AMDGPURewriteOutArguments.cpp | 340 Value *RetVal = RI->getReturnValue(); in runOnFunction() local 341 if (RetVal) in runOnFunction() 342 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++); in runOnFunction() 347 if (RetVal) in runOnFunction()
|
| /freebsd/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() 511 SDR(Error::success(), std::move(RetVal)); in callAsync() 676 runWithSPSRet(RetT &RetVal) const { in runWithSPSRet() argument 681 if (!shared::SPSSerializationTraits<SPSRetT, RetT>::deserialize(IB, RetVal)) in runWithSPSRet()
|
| /freebsd/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/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/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 509 Constant *RetVal = nullptr; in EvaluateBlock() local 512 if (!EvaluateFunction(Callee, RetVal, Formals)) { in EvaluateBlock() 517 InstResult = RetVal; in EvaluateBlock() 595 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction() argument 643 RetVal = getVal(RI->getOperand(0)); in EvaluateFunction()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/cert/ |
| H A D | InvalidPtrChecker.cpp | 209 DefinedOrUnknownSVal RetVal = in postPreviousReturnInvalidatingCall() local 211 State = State->BindExpr(CE, LCtx, RetVal); in postPreviousReturnInvalidatingCall() 214 dyn_cast_or_null<SymbolicRegion>(RetVal.getAsRegion()); in postPreviousReturnInvalidatingCall()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | Hexagon.cpp | 107 llvm::Value *RetVal = in EmitHexagonBuiltinExpr() local 110 RetVal = Builder.CreateExtractValue(Result, 0); in EmitHexagonBuiltinExpr() 111 return RetVal; in EmitHexagonBuiltinExpr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64Arm64ECCallLowering.cpp | 478 Value *RetVal = Call; in buildExitThunk() local 483 RetVal = IRB.CreateLoad(RetTy, Args[1]); in buildExitThunk() 487 RetVal = IRB.CreateLoad(RetTy, CastAlloca); in buildExitThunk() 494 IRB.CreateRet(RetVal); in buildExitThunk() 579 Value *RetVal = Call; in buildEntryThunk() local 581 IRB.CreateStore(RetVal, Thunk->getArg(1)); in buildEntryThunk() 585 RetVal = IRB.CreateLoad(X64RetType, CastAlloca); in buildEntryThunk() 595 IRB.CreateRet(RetVal); in buildEntryThunk()
|