Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp100 void handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal,
104 SymbolRef Sym1, SymbolRef Sym2, const SVal &RetVal,
106 void handleIncrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter,
108 void handleDecrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter,
111 OverloadedOperatorKind Op, const SVal &RetVal,
115 void handleAdvance(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
117 void handlePrev(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
119 void handleNext(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
121 void assignToContainer(CheckerContext &C, const Expr *CE, const SVal &RetVal,
450 SVal RetVal, const SVal &LVal, in handleComparison() argument
[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.cpp248 FieldInfo RetVal; in calculateOptimalPad() local
249 RetVal.Field = FD; in calculateOptimalPad()
252 RetVal.Size = Info.Width; in calculateOptimalPad()
253 RetVal.Align = Info.Align; in calculateOptimalPad()
254 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
256 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align); in calculateOptimalPad()
257 return RetVal; in calculateOptimalPad()
H A DStreamChecker.cpp182 DefinedSVal RetVal = makeRetVal(C, CE); in bindAndAssumeTrue() local
183 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in bindAndAssumeTrue()
184 State = State->assume(RetVal, true); in bindAndAssumeTrue()
449 DefinedSVal RetVal = makeRetVal(C, CE); in evalFopen() local
450 SymbolRef RetSym = RetVal.getAsSymbol(); in evalFopen()
453 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in evalFopen()
459 C.getConstraintManager().assumeDual(State, RetVal); in evalFopen()
642 Optional<NonLoc> RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in evalFreadFwrite() local
643 assert(RetVal && "Value should be NonLoc."); in evalFreadFwrite()
645 State->BindExpr(CE, C.getLocationContext(), *RetVal); in evalFreadFwrite()
[all …]
H A DMallocChecker.cpp216 Optional<SVal> RetVal = None);
459 Optional<SVal> RetVal = None);
1297 Optional<SVal> RetVal) { in ProcessZeroAllocCheck() argument
1301 if (!RetVal) in ProcessZeroAllocCheck()
1302 RetVal = Call.getReturnValue(); in ProcessZeroAllocCheck()
1336 SymbolRef Sym = RetVal->getAsLocSymbol(); in ProcessZeroAllocCheck()
1533 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) in MallocMemAux() local
1535 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in MallocMemAux()
1538 State = State->bindDefaultInitial(RetVal, Init, LCtx); in MallocMemAux()
1541 State = setDynamicExtent(State, RetVal.getAsRegion(), in MallocMemAux()
[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()
H A DPthreadLockChecker.cpp426 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() local
427 if (auto DefinedRetVal = RetVal.getAs<DefinedSVal>()) { in AcquireLockAux()
446 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() local
447 if (auto DefinedRetVal = RetVal.getAs<DefinedSVal>()) { in AcquireLockAux()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
521 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY()
522 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
546 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY()
547 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY()
548 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY()
564 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY()
567 LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n"); in INITIALIZE_PASS_DEPENDENCY()
568 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
929 if (PointerMayBeCaptured(RetVal, false, /*StoreCaptures=*/false)) in isFunctionMallocLike()
995 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local
[all …]
H A DDeadArgumentElimination.cpp982 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction() local
995 RetVal = IRB.CreateInsertValue(RetVal, V, Ri, "oldret"); in RemoveDeadStuffFromFunction()
999 CB.replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1039 Value *RetVal = nullptr; in RemoveDeadStuffFromFunction() local
1050 RetVal = UndefValue::get(NRetTy); in RemoveDeadStuffFromFunction()
1059 RetVal = IRB.CreateInsertValue(RetVal, EV, NewRetIdxs[RetI], in RemoveDeadStuffFromFunction()
1064 RetVal = EV; in RemoveDeadStuffFromFunction()
1070 auto *NewRet = ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/profile/
H A DInstrProfilingFile.c54 int RetVal; in writeFileWithName() local
64 RetVal = writeFile(OutputFile); in writeFileWithName()
67 return RetVal; in writeFileWithName()
/netbsd-src/sys/external/bsd/acpica/dist/os_specific/service_layers/
H A Dosunixxf.c879 int RetVal; in AcpiOsWaitSemaphore() local
911 while (((RetVal = sem_wait (Sem)) == -1) && (errno == EINTR)) in AcpiOsWaitSemaphore()
915 if (RetVal != 0) in AcpiOsWaitSemaphore()
973 while (((RetVal = sem_timedwait (Sem, &Time)) == -1) && (errno == EINTR)) in AcpiOsWaitSemaphore()
979 if (RetVal != 0) in AcpiOsWaitSemaphore()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp263 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() local
294 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in runOnFunction()
355 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() local
369 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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp605 Constant *RetVal = nullptr; in EvaluateBlock() local
608 if (!EvaluateFunction(Callee, RetVal, Formals)) { in EvaluateBlock()
613 InstResult = castCallResultIfNeeded(CB.getCalledOperand(), RetVal); in EvaluateBlock()
614 if (RetVal && !InstResult) in EvaluateBlock()
689 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction() argument
737 RetVal = getVal(RI->getOperand(0)); in EvaluateFunction()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h57 bool EvaluateFunction(Function *F, Constant *&RetVal,

123