/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IteratorModeling.cpp | 101 void handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal, 496 if (RetVal.isUnknown()) { in handleComparison() 499 RetVal = nonloc::SymbolVal(SymMgr.conjureSymbol( in handleComparison() 501 State = State->BindExpr(CE, LCtx, RetVal); in handleComparison() 511 if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) { in processComparison() 522 const auto ConditionVal = RetVal.getAs<DefinedSVal>(); in processComparison() 591 const SVal &RetVal, in handleRandomIncrOrDecr() argument 673 SVal RetVal, SVal Iter, in handleAdvance() argument 680 handleRandomIncrOrDecr(C, CE, OO_Minus, RetVal, Iter, Amount); in handlePrev() 685 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() 104 DefinedOrUnknownSVal RetVal) const { in checkReference() 106 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 | 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 | StreamChecker.cpp | 197 DefinedSVal RetVal = makeRetVal(C, CE); in bindAndAssumeTrue() local 199 State = State->assume(RetVal, true); in bindAndAssumeTrue() 518 DefinedSVal RetVal = makeRetVal(C, CE); in evalFopen() local 519 SymbolRef RetSym = RetVal.getAsSymbol(); in evalFopen() 528 C.getConstraintManager().assumeDual(State, RetVal); in evalFopen() 726 NonLoc RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in evalFreadFwrite() local 788 DefinedSVal RetVal = makeRetVal(C, CE); in evalFseek() local 830 DefinedSVal RetVal = makeRetVal(C, CE); in evalFgetpos() local 861 DefinedSVal RetVal = makeRetVal(C, CE); in evalFsetpos() local 896 NonLoc RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in evalFtell() local [all …]
|
H A D | MallocChecker.cpp | 1494 std::optional<SVal> RetVal) { in ProcessZeroAllocCheck() argument 1498 if (!RetVal) in ProcessZeroAllocCheck() 1499 RetVal = Call.getReturnValue(); in ProcessZeroAllocCheck() 1756 if (!RetVal) in MallocUpdateRefState() 1757 RetVal = C.getSVal(E); in MallocUpdateRefState() 1760 if (!RetVal->getAs<Loc>()) in MallocUpdateRefState() 1763 SymbolRef Sym = RetVal->getAsLocSymbol(); in MallocUpdateRefState() 2042 SVal RetVal = C.getSVal(ParentExpr); in FreeMemAux() local 2652 SVal RetVal = C.getSVal(CE); in ReallocMemAux() local 2936 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()
|
H A D | PthreadLockChecker.cpp | 427 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() local 428 if (auto DefinedRetVal = RetVal.getAs<DefinedSVal>()) { in AcquireLockAux() 447 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() local 448 if (auto DefinedRetVal = RetVal.getAs<DefinedSVal>()) { in AcquireLockAux()
|
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/IPO/ |
H A D | WholeProgramDevirt.h | 136 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()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 365 static bool slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, in slotOnlyDiscardsData() argument 377 RetVal = getNoopInput(RetVal, RetIndices, BitsRequired, TLI, DL); in slotOnlyDiscardsData() 381 if (isa<UndefValue>(RetVal)) in slotOnlyDiscardsData() 393 if (CallVal != RetVal || CallIndices != RetIndices) in slotOnlyDiscardsData() 661 const Value *RetVal = Ret->getOperand(0), *CallVal = I; in returnTypeIsEligibleForTailCall() local 676 (RetVal == Call->getArgOperand(0) || in returnTypeIsEligibleForTailCall() 677 isPointerBitcastEqualTo(RetVal, Call->getArgOperand(0)))) in returnTypeIsEligibleForTailCall() 684 bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath); in returnTypeIsEligibleForTailCall() 718 if (!slotOnlyDiscardsData(RetVal, CallVal, TmpRetPath, TmpCallPath, in returnTypeIsEligibleForTailCall()
|
H A D | IfConversion.cpp | 505 bool RetVal = false; in INITIALIZE_PASS_DEPENDENCY() local 518 RetVal = IfConvertSimple(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY() 520 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY() 544 RetVal = IfConvertTriangle(BBI, Kind); in INITIALIZE_PASS_DEPENDENCY() 546 if (RetVal) { in INITIALIZE_PASS_DEPENDENCY() 562 RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY() 566 if (RetVal) ++NumDiamonds; in INITIALIZE_PASS_DEPENDENCY() 574 RetVal = IfConvertForkedDiamond(BBI, Kind, NumDups, NumDups2, in INITIALIZE_PASS_DEPENDENCY() 578 if (RetVal) ++NumForkedDiamonds; in INITIALIZE_PASS_DEPENDENCY() 582 if (RetVal && MRI->tracksLiveness()) in INITIALIZE_PASS_DEPENDENCY() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | DeadArgumentElimination.cpp | 969 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction() local 982 RetVal = IRB.CreateInsertValue(RetVal, V, Ri, "oldret"); in removeDeadStuffFromFunction() 986 CB.replaceAllUsesWith(RetVal); in removeDeadStuffFromFunction() 1026 Value *RetVal = nullptr; in removeDeadStuffFromFunction() local 1037 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction() 1046 RetVal = IRB.CreateInsertValue(RetVal, EV, NewRetIdxs[RetI], in removeDeadStuffFromFunction() 1051 RetVal = EV; in removeDeadStuffFromFunction() 1057 auto *NewRet = ReturnInst::Create(F->getContext(), RetVal, RI); in removeDeadStuffFromFunction()
|
H A D | FunctionAttrs.cpp | 736 Value *RetVal = Ret->getReturnValue()->stripPointerCasts(); in addArgumentReturnedAttrs() local 737 if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType()) in addArgumentReturnedAttrs() 741 RetArg = RetVal; in addArgumentReturnedAttrs() 742 else if (RetArg != RetVal) in addArgumentReturnedAttrs() 1019 Value *RetVal = FlowsToReturn[i]; in isFunctionMallocLike() local 1021 if (Constant *C = dyn_cast<Constant>(RetVal)) { in isFunctionMallocLike() 1028 if (isa<Argument>(RetVal)) in isFunctionMallocLike() 1031 if (Instruction *RVI = dyn_cast<Instruction>(RetVal)) in isFunctionMallocLike() 1132 Value *RetVal = FlowsToReturn[i]; in isReturnNonNull() local 1135 if (isKnownNonZero(RetVal, DL)) in isReturnNonNull() [all …]
|
H A D | IROutliner.cpp | 1549 PhiBlockForRetVal = Group.PHIBlocks.find(RetVal); in findOrCreatePHIBlock() 1550 ReturnBlockForRetVal = Group.EndBBs.find(RetVal); in findOrCreatePHIBlock() 1557 PhiBlockForRetVal = Group.PHIBlocks.find(RetVal); in findOrCreatePHIBlock() 1567 Group.PHIBlocks.insert(std::make_pair(RetVal, PHIBlock)); in findOrCreatePHIBlock() 1864 Value *RetVal = RI->getReturnValue(); in replaceArgumentUses() local 1865 auto VBBIt = OutputBBs.find(RetVal); in replaceArgumentUses() 1901 Region.PHIBlocks.insert(std::make_pair(RetVal, PN->getParent())); in replaceArgumentUses() 1908 Group.PHIBlocks.insert(std::make_pair(RetVal, PHIBlock)); in replaceArgumentUses() 1914 BasicBlock *OverallPhiBlock = findOrCreatePHIBlock(Group, RetVal); in replaceArgumentUses() 2139 for (Value *RetVal : SortedKeys) { in createAndInsertBasicBlocks() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUUnifyDivergentExitNodes.cpp | 232 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in runOnFunction() local 233 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in runOnFunction() 294 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in runOnFunction() local 308 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in runOnFunction()
|
H A D | AMDGPURewriteOutArguments.cpp | 345 Value *RetVal = RI->getReturnValue(); in runOnFunction() local 346 if (RetVal) in runOnFunction() 347 NewRetVal = B.CreateInsertValue(NewRetVal, RetVal, RetIdx++); in runOnFunction() 352 if (RetVal) in runOnFunction()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/cert/ |
H A D | InvalidPtrChecker.cpp | 143 DefinedOrUnknownSVal RetVal = C.getSValBuilder().conjureSymbolVal( in postPreviousReturnInvalidatingCall() local 145 State = State->BindExpr(CE, LCtx, RetVal); in postPreviousReturnInvalidatingCall() 148 const auto *SymRegOfRetVal = cast<SymbolicRegion>(RetVal.getAsRegion()); in postPreviousReturnInvalidatingCall()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | Evaluator.cpp | 528 Constant *RetVal = nullptr; in EvaluateBlock() local 531 if (!EvaluateFunction(Callee, RetVal, Formals)) { in EvaluateBlock() 536 InstResult = castCallResultIfNeeded(CB.getType(), RetVal); in EvaluateBlock() 537 if (RetVal && !InstResult) in EvaluateBlock() 617 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction() argument 665 RetVal = getVal(RI->getOperand(0)); in EvaluateFunction()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/compiler-rt/lib/profile/ |
H A D | InstrProfilingFile.c | 463 int RetVal; in writeFile() local 480 RetVal = lprofWriteData(&fileWriter, lprofGetVPDataReader(), MergeDone); in writeFile() 491 return RetVal; in writeFile() 496 int RetVal; in writeOrderFile() local 509 RetVal = orderFileWriter(OutputFile, DataBegin); in writeOrderFile() 512 return RetVal; in writeOrderFile()
|
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
H A D | Evaluator.h | 99 bool EvaluateFunction(Function *F, Constant *&RetVal,
|