Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h90 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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp102 void handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal,
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,
116 void handleAdvance(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
118 void handlePrev(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
120 void handleNext(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
122 void assignToContainer(CheckerContext &C, const Expr *CE, SVal RetVal,
447 SVal RetVal, SVal LVal, SVal RVal, in handleComparison() argument
[all …]
H A DSTLAlgorithmModeling.cpp135 SVal RetVal = SVB.conjureSymbolVal(nullptr, CE, LCtx, C.blockCount()); in Find() local
138 auto StateFound = State->BindExpr(CE, LCtx, RetVal); in Find()
146 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find()
148 const auto *NewPos = getIteratorPosition(StateFound, RetVal); in Find()
168 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find()
170 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.cpp238 DefinedSVal RetVal = makeRetVal(C, CE); in bindAndAssumeTrue() local
239 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in bindAndAssumeTrue()
240 State = State->assume(RetVal, true); in bindAndAssumeTrue()
679 NonLoc RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in makeAndBindRetVal() local
680 return State->BindExpr(CE, C.getLocationContext(), RetVal); in makeAndBindRetVal()
712 DefinedSVal RetVal = makeRetVal(C, CE); in makeRetValAndAssumeDual() local
713 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in makeRetValAndAssumeDual()
714 return C.getConstraintManager().assumeDual(State, RetVal); in makeRetValAndAssumeDual()
897 DefinedSVal RetVal = makeRetVal(C, CE); in evalFopen() local
898 SymbolRef RetSym = RetVal.getAsSymbol(); in evalFopen()
[all …]
H A DMallocChecker.cpp227 std::optional<SVal> RetVal = std::nullopt);
502 std::optional<SVal> RetVal = std::nullopt);
1474 std::optional<SVal> RetVal) { in ProcessZeroAllocCheck() argument
1478 if (!RetVal) in ProcessZeroAllocCheck()
1479 RetVal = Call.getReturnValue(); in ProcessZeroAllocCheck()
1513 SymbolRef Sym = RetVal->getAsLocSymbol(); in ProcessZeroAllocCheck()
1771 DefinedSVal RetVal = in MallocMemAux() local
1775 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in MallocMemAux()
1778 State = State->bindDefaultInitial(RetVal, Init, LCtx); in MallocMemAux()
1787 State = setDynamicExtent(State, RetVal.getAsRegion(), in MallocMemAux()
[all …]
H A DContainerModeling.cpp36 void handleBegin(CheckerContext &C, const Expr *CE, SVal RetVal,
38 void handleEnd(CheckerContext &C, const Expr *CE, SVal RetVal,
251 SVal RetVal, SVal Cont) const { in handleBegin() argument
267 State = setIteratorPosition(State, RetVal, in handleBegin()
273 SVal RetVal, SVal Cont) const { in handleEnd() argument
289 State = setIteratorPosition(State, RetVal, in handleEnd()
H A DPthreadLockChecker.cpp457 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() local
458 if (auto DefinedRetVal = RetVal.getAs<DefinedSVal>()) { in AcquireLockAux()
477 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() local
478 if (auto DefinedRetVal = RetVal.getAs<DefinedSVal>()) { in AcquireLockAux()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h136 uint64_t RetVal; member
172 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
178 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
187 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
189 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
196 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
198 TM->Bits->After.setLE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHazardRecognizer.cpp46 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 DAnalysis.cpp377 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()
665 const Value *RetVal = Ret->getOperand(0), *CallVal = I; in returnTypeIsEligibleForTailCall() local
669 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath); in returnTypeIsEligibleForTailCall()
703 if (!slotOnlyDiscardsData(RetVal, CallVal, TmpRetPath, TmpCallPath, in returnTypeIsEligibleForTailCall()
716 Value *RetVal = Ret ? Ret->getReturnValue() : nullptr; in funcReturnsFirstArgOfCall() local
718 if (RetVal && ((RetVal == CI.getArgOperand(0)))) in funcReturnsFirstArgOfCall()
H A DIfConversion.cpp504 bool RetVal = false; in INITIALIZE_PASS_DEPENDENCY() local
517 RetVal = IfConvertSimple(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
518 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY()
519 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
542 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
543 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY()
544 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
559 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY()
562 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY()
563 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp776 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()
1111 if (PointerMayBeCaptured(RetVal, false, /*StoreCaptures=*/false)) in isFunctionMallocLike()
1175 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local
[all …]
H A DDeadArgumentElimination.cpp983 Value *RetVal = PoisonValue::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 = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction()
1060 RetVal = IRB.CreateInsertValue(RetVal, EV, NewRetIdxs[RetI], in removeDeadStuffFromFunction()
1065 RetVal = EV; in removeDeadStuffFromFunction()
1072 ReturnInst::Create(F->getContext(), RetVal, RI->getIterator()); in removeDeadStuffFromFunction()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp232 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 DAMDGPURewriteOutArguments.cpp347 Value *RetVal = RI->getReturnValue(); in runOnFunction()
348 if (RetVal) in runOnFunction()
349 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++); in runOnFunction()
354 if (RetVal) in runOnFunction()
346 Value *RetVal = RI->getReturnValue(); runOnFunction() local
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DWrapperFunctionUtils.h495 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 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/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp540 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/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp484 Value *RetVal = Call; in buildExitThunk() local
489 RetVal = IRB.CreateLoad(RetTy, Args[1]); in buildExitThunk()
493 RetVal = IRB.CreateLoad(RetTy, CastAlloca); in buildExitThunk()
500 IRB.CreateRet(RetVal); in buildExitThunk()
586 Value *RetVal = Call; in buildEntryThunk() local
588 IRB.CreateStore(RetVal, IRB.CreateBitCast(Thunk->getArg(1), PtrTy)); in buildEntryThunk()
592 RetVal = IRB.CreateLoad(X64RetType, CastAlloca); in buildEntryThunk()
602 IRB.CreateRet(RetVal); in buildEntryThunk()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/cert/
H A DInvalidPtrChecker.cpp209 DefinedOrUnknownSVal RetVal = C.getSValBuilder().conjureSymbolVal( 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/compiler-rt/lib/profile/
H A DInstrProfilingFile.c511 int RetVal; in writeFile() local
528 RetVal = lprofWriteData(&fileWriter, lprofGetVPDataReader(), MergeDone); in writeFile()
539 return RetVal; in writeFile()
544 int RetVal; in writeOrderFile() local
557 RetVal = orderFileWriter(OutputFile, DataBegin); in writeOrderFile()
560 return RetVal; in writeOrderFile()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DSandboxIR.cpp590 ReturnInst *ReturnInst::createCommon(Value *RetVal, IRBuilder<> &Builder, in createCommon() argument
593 if (RetVal != nullptr) in createCommon()
594 NewRI = Builder.CreateRet(RetVal->Val); in createCommon()
600 ReturnInst *ReturnInst::create(Value *RetVal, Instruction *InsertBefore, in create() argument
605 return createCommon(RetVal, Builder, Ctx); in create()
608 ReturnInst *ReturnInst::create(Value *RetVal, BasicBlock *InsertAtEnd, in create() argument
612 return createCommon(RetVal, Builder, Ctx); in create()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp150 unsigned RetVal; in findOneNVVMAnnotation() local
151 if (findOneNVVMAnnotation(&GV, PropName, RetVal)) in findOneNVVMAnnotation()
152 return RetVal; in findOneNVVMAnnotation()

123