Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Support/Unix/
H A DUnix.h87 struct timespec RetVal; in toTimeSpec() local
88 RetVal.tv_sec = toTimeT(TP); in toTimeSpec()
89 RetVal.tv_nsec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeSpec()
90 return RetVal; in toTimeSpec()
97 struct timeval RetVal; in toTimeVal() local
98 RetVal.tv_sec = toTimeT(TP); in toTimeVal()
99 RetVal.tv_usec = (TP.time_since_epoch() % seconds(1)).count(); in toTimeVal()
100 return RetVal; in toTimeVal()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DReturnUndefChecker.cpp33 DefinedOrUnknownSVal RetVal) const;
44 SVal RetVal = C.getSVal(RetE); in checkPreStmt() local
49 if (RetVal.isUndef()) { in checkPreStmt()
76 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 DPaddingChecker.cpp251 FieldInfo RetVal; in calculateOptimalPad() local
252 RetVal.Field = FD; in calculateOptimalPad()
254 std::tie(RetVal.Size, RetVal.Align) = in calculateOptimalPad()
256 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
258 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align); in calculateOptimalPad()
259 return RetVal; in calculateOptimalPad()
H A DIteratorChecker.cpp218 const SVal &RetVal, const SVal &LHS,
220 void handleBegin(CheckerContext &C, const Expr *CE, const SVal &RetVal,
222 void handleEnd(CheckerContext &C, const Expr *CE, const SVal &RetVal,
898 if (const auto *Condition = RetVal.getAsSymbolicExpression()) { in handleComparison()
954 State = setIteratorPosition(State, RetVal, Postfix ? *Pos : NewPos); in handleIncrement()
972 State = setIteratorPosition(State, RetVal, Postfix ? *Pos : NewPos); in handleDecrement()
1020 const SVal &RetVal, in handleRandomIncrOrDecr() argument
1147 State = setIteratorPosition(State, RetVal, in handleBegin()
1171 State = setIteratorPosition(State, RetVal, in handleEnd()
1177 const SVal &RetVal, in assignToContainer() argument
[all …]
H A DMallocChecker.cpp978 if (!RetVal) in ProcessZeroAllocation()
979 RetVal = C.getSVal(E); in ProcessZeroAllocation()
1297 if (!RetVal) in MallocUpdateRefState()
1298 RetVal = C.getSVal(E); in MallocUpdateRefState()
1301 if (!RetVal->getAs<Loc>()) in MallocUpdateRefState()
1304 SymbolRef Sym = RetVal->getAsLocSymbol(); in MallocUpdateRefState()
1616 SVal RetVal = C.getSVal(ParentExpr); in FreeMemAux() local
2181 SVal RetVal = C.getSVal(CE); in ReallocMemAux() local
2182 SymbolRef ToPtr = RetVal.getAsSymbol(); in ReallocMemAux()
2473 SVal RetVal = C.getSVal(E); in checkEscapeOnReturn() local
[all …]
H A DStreamChecker.cpp214 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(nullptr, CE, LCtx, in OpenFileAux() local
217 state = state->BindExpr(CE, C.getLocationContext(), RetVal); in OpenFileAux()
223 std::tie(stateNotNull, stateNull) = CM.assumeDual(state, RetVal); in OpenFileAux()
225 if (SymbolRef Sym = RetVal.getAsSymbol()) { in OpenFileAux()
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h133 uint64_t RetVal; member
169 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
175 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
184 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
186 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
193 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
195 TM->Bits->After.setLE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonHazardRecognizer.cpp47 HazardType RetVal = Hazard; in getHazardType() local
61 RetVal = NoHazard; in getHazardType()
62 LLVM_DEBUG(dbgs() << "*** Try .new version? " << (RetVal == NoHazard) in getHazardType()
66 return RetVal; in getHazardType()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp190 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() local
191 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in runOnFunction()
237 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() local
251 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in runOnFunction()
H A DAMDGPURewriteOutArguments.cpp393 Value *RetVal = RI->getReturnValue(); in runOnFunction() local
394 if (RetVal) in runOnFunction()
395 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++); in runOnFunction()
425 if (RetVal) in runOnFunction()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DAnalysis.cpp313 static bool slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, in slotOnlyDiscardsData() argument
325 RetVal = getNoopInput(RetVal, RetIndices, BitsRequired, TLI, DL); in slotOnlyDiscardsData()
329 if (isa<UndefValue>(RetVal)) in slotOnlyDiscardsData()
341 if (CallVal != RetVal || CallIndices != RetIndices) in slotOnlyDiscardsData()
587 const Value *RetVal = Ret->getOperand(0), *CallVal = I; in returnTypeIsEligibleForTailCall() local
602 RetVal == Call->getArgOperand(0)) in returnTypeIsEligibleForTailCall()
609 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath); in returnTypeIsEligibleForTailCall()
642 if (!slotOnlyDiscardsData(RetVal, CallVal, TmpRetPath, TmpCallPath, in returnTypeIsEligibleForTailCall()
H A DIfConversion.cpp402 bool RetVal = false; in INITIALIZE_PASS_DEPENDENCY() local
415 RetVal = IfConvertSimple(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
417 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
441 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
443 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
459 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY()
463 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY()
471 RetVal = IfConvertForkedDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY()
475 if (RetVal) ++NumForkedDiamonds; in INITIALIZE_PASS_DEPENDENCY()
479 if (RetVal && MRI->tracksLiveness()) in INITIALIZE_PASS_DEPENDENCY()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp981 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction() local
994 RetVal = InsertValueInst::Create(RetVal, V, i, "oldret", InsertPt); in RemoveDeadStuffFromFunction()
998 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1036 Value *RetVal; in RemoveDeadStuffFromFunction() local
1039 RetVal = nullptr; in RemoveDeadStuffFromFunction()
1049 RetVal = UndefValue::get(NRetTy); in RemoveDeadStuffFromFunction()
1058 RetVal = InsertValueInst::Create(RetVal, EV, NewRetIdxs[i], in RemoveDeadStuffFromFunction()
1063 RetVal = EV; in RemoveDeadStuffFromFunction()
1069 ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
H A DFunctionAttrs.cpp592 Value *RetVal = Ret->getReturnValue()->stripPointerCasts(); in addArgumentReturnedAttrs() local
593 if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType()) in addArgumentReturnedAttrs()
597 RetArg = RetVal; in addArgumentReturnedAttrs()
598 else if (RetArg != RetVal) in addArgumentReturnedAttrs()
852 Value *RetVal = FlowsToReturn[i]; in isFunctionMallocLike() local
854 if (Constant *C = dyn_cast<Constant>(RetVal)) { in isFunctionMallocLike()
861 if (isa<Argument>(RetVal)) in isFunctionMallocLike()
864 if (Instruction *RVI = dyn_cast<Instruction>(RetVal)) in isFunctionMallocLike()
967 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local
970 if (isKnownNonZero(RetVal, DL)) in isReturnNonNull()
[all …]
H A DWholeProgramDevirt.cpp993 Constant *RetVal; in tryEvaluateFunctionsWithArgs() local
994 if (!Eval.EvaluateFunction(Target.Fn, RetVal, EvalArgs) || in tryEvaluateFunctionsWithArgs()
995 !isa<ConstantInt>(RetVal)) in tryEvaluateFunctionsWithArgs()
997 Target.RetVal = cast<ConstantInt>(RetVal)->getZExtValue(); in tryEvaluateFunctionsWithArgs()
1016 uint64_t TheRetVal = TargetsForSlot[0].RetVal; in tryUniformRetValOpt()
1018 if (Target.RetVal != TheRetVal) in tryUniformRetValOpt()
1138 if (Target.RetVal == (IsOne ? 1 : 0)) { in tryUniqueRetValOpt()
/freebsd-12.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-12.1/contrib/llvm/lib/Analysis/
H A DCFLSteensAliasAnalysis.cpp163 for (auto *RetVal : RetVals) { in FunctionInfo() local
164 assert(RetVal != nullptr); in FunctionInfo()
165 assert(RetVal->getType()->isPointerTy()); in FunctionInfo()
166 auto RetInfo = Sets.find(InstantiatedValue{RetVal, 0}); in FunctionInfo()
H A DCFLGraph.h267 if (auto RetVal = Inst.getReturnValue()) { in visitReturnInst() local
268 if (RetVal->getType()->isPointerTy()) { in visitReturnInst()
269 addNode(RetVal); in visitReturnInst()
270 ReturnValues.push_back(RetVal); in visitReturnInst()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp560 Constant *RetVal = nullptr; in EvaluateBlock() local
563 if (!EvaluateFunction(Callee, RetVal, Formals)) { in EvaluateBlock()
568 InstResult = castCallResultIfNeeded(CS.getCalledValue(), RetVal); in EvaluateBlock()
569 if (RetVal && !InstResult) in EvaluateBlock()
645 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction() argument
682 RetVal = getVal(RI->getOperand(0)); in EvaluateFunction()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DBodyFarm.cpp97 ReturnStmt *makeReturn(const Expr *RetVal);
204 ReturnStmt *ASTMaker::makeReturn(const Expr *RetVal) { in makeReturn() argument
205 return ReturnStmt::Create(C, SourceLocation(), const_cast<Expr *>(RetVal), in makeReturn()
647 Expr *RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap() local
649 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
654 RetVal = isBoolean ? M.makeIntegralCastToBoolean(BoolVal) in create_OSAtomicCompareAndSwap()
656 Stmt *Else = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
/freebsd-12.1/contrib/llvm/tools/bugpoint/
H A DExecutionDriver.cpp347 Expected<int> RetVal = AI->ExecuteProgram(BitcodeFile, InputArgv, InputFile, in executeProgram() local
350 if (Error E = RetVal.takeError()) in executeProgram()
353 if (*RetVal == -1) { in executeProgram()
372 outFile << "exit " << *RetVal << '\n'; in executeProgram()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp743 auto *RetVal = RI->getReturnValue(); in runImpl() local
744 if (!RetVal) break; // handle "ret void" in runImpl()
745 if (isa<Constant>(RetVal)) break; // nothing to do in runImpl()
746 if (auto *C = getConstantAt(RetVal, RI, LVI)) { in runImpl()
748 RI->replaceUsesOfWith(RetVal, C); in runImpl()
/freebsd-12.1/contrib/compiler-rt/lib/profile/
H A DInstrProfilingFile.c241 int RetVal; in writeFile() local
258 RetVal = lprofWriteData(&fileWriter, lprofGetVPDataReader(), MergeDone); in writeFile()
261 return RetVal; in writeFile()
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h58 bool EvaluateFunction(Function *F, Constant *&RetVal,
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMLegalizerInfo.cpp366 auto RetVal = MRI.createGenericVirtualRegister( in legalizeCustom() local
369 auto Status = createLibcall(MIRBuilder, Libcall, {RetVal, RetTy}, in legalizeCustom()
380 RetVal); in legalizeCustom()

12