| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | LiveVariables.cpp | 160 LiveVariablesImpl &LV; member in __anon9166e1760311::TransferFunctions 169 : LV(im), val(Val), observer(Observer), currentBlock(CurrentBlock) {} in TransferFunctions() 241 val.liveExprs = LV.ESetFact.remove(val.liveExprs, E); in Visit() 258 AddLiveExpr(val.liveExprs, LV.ESetFact, ImplicitObj); in Visit() 266 val.liveDecls = LV.DSetFact.add(val.liveDecls, in Visit() 267 LV.analysisContext.getSelfDecl()); in Visit() 275 AddLiveExpr(val.liveExprs, LV.ESetFact, VA->getSizeExpr()); in Visit() 288 val.liveExprs = LV.ESetFact.add(val.liveExprs, child); in Visit() 309 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<IfStmt>(S)->getCond()); in Visit() 316 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<WhileStmt>(S)->getCond()); in Visit() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | PHIElimination.cpp | 71 LiveVariables *LV = nullptr; member in __anonf60509ee0111::PHIEliminationImpl 126 LV = LVWrapper ? &LVWrapper->getLV() : nullptr; in PHIEliminationImpl() 133 : LV(AM.getCachedResult<LiveVariablesAnalysis>(MF)), in PHIEliminationImpl() 220 if (!DisableEdgeSplitting && (LV || LIS)) { in run() 224 if (LV) { in run() 233 LiveVariables::VarInfo &VI = LV->getVarInfo(VirtReg); in run() 252 SplitPHIEdges(MF, MBB, MLI, (LV ? &LiveInSets : nullptr), MDTU); in run() 259 if (LV || LIS) in run() 413 if (LV) { in LowerPHINode() 415 LiveVariables::VarInfo &VI = LV->getVarInfo(IncomingReg); in LowerPHINode() [all …]
|
| H A D | TwoAddressInstructionPass.cpp | 98 LiveVariables *LV = nullptr; member in __anon97cd436d0111::TwoAddressInstructionImpl 272 LV(MFAM.getCachedResult<LiveVariablesAnalysis>(Func)), in INITIALIZE_PASS_DEPENDENCY() 287 LV = LVWrapper ? &LVWrapper->getLV() : nullptr; in TwoAddressInstructionImpl() 793 MachineInstr *NewMI = TII->convertToThreeAddress(*mi, LV, LIS); in convertInstTo3Addr() 914 if (!LV && !LIS) in rescheduleMIBelowKill() 937 KillMI = LV->getVarInfo(Reg).findKill(MBB); in rescheduleMIBelowKill() 1066 LV->removeVirtualRegisterKilled(Reg, *KillMI); in rescheduleMIBelowKill() 1067 LV->addVirtualRegisterKilled(Reg, *MI); in rescheduleMIBelowKill() 1102 if (!LV && !LIS) in rescheduleKillAboveMI() 1125 KillMI = LV->getVarInfo(Reg).findKill(MBB); in rescheduleKillAboveMI() [all …]
|
| H A D | RDFLiveness.cpp | 868 std::vector<RegisterRef> LV; in computeLiveIns() local 870 LV.push_back(RegisterRef(LI.PhysReg, LI.LaneMask)); in computeLiveIns() 871 llvm::sort(LV, std::less<RegisterRef>(PRI)); in computeLiveIns() 873 for (auto I : LV) in computeLiveIns() 878 LV.clear(); in computeLiveIns() 880 LV.push_back(RR); in computeLiveIns() 881 llvm::sort(LV, std::less<RegisterRef>(PRI)); in computeLiveIns() 883 for (auto I : LV) in computeLiveIns() 911 auto CopyLiveIns = [this](MachineBasicBlock *B, BitVector &LV) -> void { in resetKills() argument 915 LV.set(I.PhysReg.id()); in resetKills() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExpr.cpp | 295 LValue LV = MakeAddrLValue(Location, E->getType()); in EmitAnyExprToMem() local 296 EmitStoreThroughLValue(RV, LV); in EmitAnyExprToMem() 304 const Expr *E, LValue LV, AggValueSlot::IsZeroed_t IsZeroed) { in EmitInitializationToLValue() argument 305 QualType Type = LV.getType(); in EmitInitializationToLValue() 308 EmitComplexExprIntoLValue(E, LV, /*isInit*/ true); in EmitInitializationToLValue() 311 EmitAggExpr(E, AggValueSlot::forLValue(LV, AggValueSlot::IsDestructed, in EmitInitializationToLValue() 317 if (LV.isSimple()) in EmitInitializationToLValue() 318 EmitScalarInit(E, /*D=*/nullptr, LV, /*Captured=*/false); in EmitInitializationToLValue() 320 EmitStoreThroughLValue(RValue::get(EmitScalarExpr(E)), LV); in EmitInitializationToLValue() 570 LValue LV = MakeRawAddrLValue(Object.getPointer(), RefType, in EmitMaterializeTemporaryExpr() local [all …]
|
| H A D | CGExprAgg.cpp | 214 LValue LV = CGF.EmitPseudoObjectLValue(E); in VisitPseudoObjectExpr() local 215 return EmitFinalDestCopy(E->getType(), LV); in VisitPseudoObjectExpr() 257 LValue LV = CGF.EmitLValue(E); in EmitAggLoadOfLValue() local 260 if (LV.getType()->isAtomicType() || CGF.LValueIsSuitableForInlineAtomic(LV)) { in EmitAggLoadOfLValue() 261 CGF.EmitAtomicLoad(LV, E->getExprLoc(), Dest); in EmitAggLoadOfLValue() 265 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue() 844 LValue LV = CGF.EmitCheckedLValue(E->getSubExpr(), in VisitCastExpr() local 847 if (LV.isSimple()) in VisitCastExpr() 848 CGF.EmitDynamicCast(LV.getAddress(), cast<CXXDynamicCastExpr>(E)); in VisitCastExpr() 1264 LValue LV = CGF.EmitPointerToDataMemberBinaryExpr(E); in VisitPointerToDataMemberBinaryOperator() local [all …]
|
| H A D | CGCall.h | 233 LValue LV; /// The argument is semantically a load from this l-value. member 246 : LV(lv), HasLV(true), IsUsed(false), Ty(ty) {} in CallArg() 256 return LV; in getKnownLValue() 307 void addUncopiedAggregate(LValue LV, QualType type) { in addUncopiedAggregate() argument 308 push_back(CallArg(LV, type)); in addUncopiedAggregate()
|
| H A D | CGPointerAuth.cpp | 197 emitLoadOfOrigPointerRValue(CodeGenFunction &CGF, const LValue &LV, in emitLoadOfOrigPointerRValue() argument 199 llvm::Value *Value = CGF.EmitLoadOfScalar(LV, Loc); in emitLoadOfOrigPointerRValue() 201 if (PointerAuthQualifier PtrAuth = LV.getQuals().getPointerAuth()) in emitLoadOfOrigPointerRValue() 202 AuthInfo = CGF.EmitPointerAuthInfo(PtrAuth, LV.getAddress()); in emitLoadOfOrigPointerRValue() 204 AuthInfo = getPointerAuthInfoForType(CGF.CGM, LV.getType()); in emitLoadOfOrigPointerRValue() 228 LValue LV = Result.getReferenceLValue(*this, RefExpr); in EmitOrigPointerRValue() local 229 return emitLoadOfOrigPointerRValue(*this, LV, RefExpr->getLocation()); in EmitOrigPointerRValue() 234 LValue LV = EmitCheckedLValue(E, CodeGenFunction::TCK_Load); in EmitOrigPointerRValue() local 235 return emitLoadOfOrigPointerRValue(*this, LV, E->getExprLoc()); in EmitOrigPointerRValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIOptimizeVGPRLiveRange.cpp | 94 LiveVariables *LV = nullptr; member in __anon0f1b199c0111::SIOptimizeVGPRLiveRange 100 SIOptimizeVGPRLiveRange(LiveVariables *LV, MachineDominatorTree *MDT, in SIOptimizeVGPRLiveRange() argument 102 : LV(LV), MDT(MDT), Loops(Loops) {} in SIOptimizeVGPRLiveRange() 251 LiveVariables::VarInfo &VI = LV->getVarInfo(MOReg); in collectCandidateRegisters() 260 LiveVariables::VarInfo &VI = LV->getVarInfo(MOReg); in collectCandidateRegisters() 290 LiveVariables::VarInfo &VI = LV->getVarInfo(Reg); in collectCandidateRegisters() 383 LiveVariables::VarInfo &OldVarInfo = LV->getVarInfo(MOReg); in collectWaterfallCandidateRegisters() 422 LiveVariables::VarInfo &OldVarInfo = LV->getVarInfo(Reg); in updateLiveRangeInThenRegion() 450 LV->HandleVirtRegUse(Reg, MBB, *(*Uses.begin())); in updateLiveRangeInThenRegion() 457 LV->HandleVirtRegUse(Reg, MBB, MI); in updateLiveRangeInThenRegion() [all …]
|
| H A D | SILowerControlFlow.cpp | 77 LiveVariables *LV = nullptr; member in __anon0c226a110111::SILowerControlFlow 140 SILowerControlFlow(LiveIntervals *LIS, LiveVariables *LV, in SILowerControlFlow() argument 142 : LIS(LIS), LV(LV), MDT(MDT) {} in SILowerControlFlow() 255 if (LV) in emitIf() 256 LV->replaceKillInstruction(Cond.getReg(), MI, *And); in emitIf() 274 if (LV) in emitIf() 275 LV->getVarInfo(Tmp).Kills.push_back(SetExec); in emitIf() 329 if (LV) in emitElse() 330 LV->replaceKillInstruction(SrcReg, MI, *OrSaveExec); in emitElse() 403 if (LV) in emitIfBreak() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | SparsePropagation.h | 95 virtual void PrintLatticeVal(LatticeVal LV, raw_ostream &OS); 104 virtual Value *GetValueFromLatticeVal(LatticeVal LV, Type *Ty = nullptr) { 184 void UpdateState(LatticeKey Key, LatticeVal LV); 236 LatticeVal LV = LatticeFunc->ComputeLatticeVal(Key); in getValueState() local 239 if (LV == LatticeFunc->getUntrackedVal()) in getValueState() 240 return LV; in getValueState() 241 return ValueState[Key] = std::move(LV); in getValueState() 246 LatticeVal LV) { in UpdateState() argument 248 if (!Inserted && I->second == LV) in UpdateState() 253 I->second = std::move(LV); in UpdateState() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | APValue.cpp | 47 APValue::LValueBase APValue::LValueBase::getDynamicAlloc(DynamicAllocLValue LV, in getDynamicAlloc() argument 50 Base.Ptr = LV; in getDynamicAlloc() 55 APValue::LValueBase APValue::LValueBase::getTypeInfo(TypeInfoLValue LV, in getTypeInfo() argument 58 Base.Ptr = LV; in getTypeInfo() 221 struct APValue::LV : LVBase { struct in APValue 233 LV() { PathLength = (unsigned)-1; } in LV() argument 234 ~LV() { resizePath(0); } in ~LV() argument 422 ((LV *)(char *)&Data)->~LV(); in DestroyDataAndMakeUninit() 467 return reinterpret_cast<const LV *>(&Data)->hasPathPtr(); in needsCleanup() 985 return ((const LV *)(const void *)&Data)->Base; in getLValueBase() [all …]
|
| H A D | Decl.cpp | 251 LinkageInfo LV; in getLVForTemplateParameterList() local 266 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList() 275 LV.merge(getTypeLinkageAndVisibility(type)); in getLVForTemplateParameterList() 286 LV.merge(getLVForTemplateParameterList(TTP->getTemplateParameters(), in getLVForTemplateParameterList() 294 LV.merge(getLVForTemplateParameterList( in getLVForTemplateParameterList() 299 return LV; in getLVForTemplateParameterList() 321 LinkageInfo LV; in getLVForTemplateArgumentList() local 331 LV.merge(getLVForType(*Arg.getAsType(), computation)); in getLVForTemplateArgumentList() 337 LV.merge(getLVForDecl(ND, computation)); in getLVForTemplateArgumentList() 342 LV.merge(getTypeLinkageAndVisibility(Arg.getNullPtrType())); in getLVForTemplateArgumentList() [all …]
|
| H A D | Linkage.h | 115 void mergeTemplateLV(LinkageInfo &LV, const FunctionDecl *fn, 119 void mergeTemplateLV(LinkageInfo &LV, 123 void mergeTemplateLV(LinkageInfo &LV,
|
| H A D | StmtCXX.cpp | 78 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable() local 79 assert(LV && "No loop variable in CXXForRangeStmt"); in getLoopVariable() 80 return cast<VarDecl>(LV); in getLoopVariable()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | SourcePrinter.cpp | 131 for (const LiveVariable &LV : LiveVariables) { in dump() local 132 dbgs() << LV.VarName << " @ " << LV.LocExpr.Range << ": "; in dump() 133 LV.print(dbgs(), MRI); in dump() 161 LiveVariable &LV = LiveVariables[ActiveCols[ColIdx].VarIdx]; in update() local 162 ActiveCols[ColIdx].LiveIn = LV.liveAtAddress(ThisAddr); in update() 163 ActiveCols[ColIdx].LiveOut = LV.liveAtAddress(NextAddr); in update() 165 << NextAddr.Address << ", " << LV.VarName << ", Col " in update() 180 LiveVariable &LV = LiveVariables[VarIdx]; in update() local 181 bool LiveIn = LV.liveAtAddress(ThisAddr); in update() 182 bool LiveOut = LV.liveAtAddress(NextAddr); in update() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 50 bool SCCPSolver::isConstant(const ValueLatticeElement &LV) { in isConstant() argument 51 return LV.isConstant() || in isConstant() 52 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant() 55 bool SCCPSolver::isOverdefined(const ValueLatticeElement &LV) { in isOverdefined() argument 56 return !LV.isUnknownOrUndef() && !SCCPSolver::isConstant(LV); in isOverdefined() 563 ValueLatticeElement &LV = I.first->second; in getValueState() local 566 return LV; // Common case, already in the map. in getValueState() 569 LV.markConstant(C); // Constants are constant in getValueState() 572 return LV; in getValueState() 585 ValueLatticeElement &LV = I.first->second; in getStructValueState() local [all …]
|
| H A D | LoopUnroll.cpp | 252 Value *getMatchingValue(LoadValue LV, LoadInst *LI, unsigned CurrentGeneration, in getMatchingValue() argument 255 if (!LV.DefI) in getMatchingValue() 257 if (LV.DefI->getType() != LI->getType()) in getMatchingValue() 259 if (LV.Generation != CurrentGeneration) { in getMatchingValue() 263 auto *EarlierMA = MSSA->getMemoryAccess(LV.DefI); in getMatchingValue() 269 return LV.DefI; in getMatchingValue() 308 LoadValue LV = AvailableLoads.lookup(PtrSCEV); in loadCSE() local 310 getMatchingValue(LV, Load, CurrentGeneration, BAA, GetMSSA)) { in loadCSE()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | CalledValuePropagation.cpp | 193 void PrintLatticeVal(CVPLatticeVal LV, raw_ostream &OS) override { in PrintLatticeVal() argument 194 if (LV == getUndefVal()) in PrintLatticeVal() 196 else if (LV == getOverdefinedVal()) in PrintLatticeVal() 198 else if (LV == getUntrackedVal()) in PrintLatticeVal() 396 CVPLatticeVal LV = Solver.getExistingValueState(RegI); in runCVP() local 397 if (!LV.isFunctionSet() || LV.getFunctions().empty()) in runCVP() 399 MDNode *Callees = MDB.createCallees(LV.getFunctions()); in runCVP()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | LiveVariables.h | 327 LiveVariables LV; variable 337 LV.analyze(MF); in runOnMachineFunction() 343 void releaseMemory() override { LV.VirtRegInfo.clear(); } in releaseMemory() 345 LiveVariables &getLV() { return LV; } in getLV()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SimpleConstraintManager.cpp | 29 if (std::optional<Loc> LV = Cond.getAs<Loc>()) { in assumeInternal() local 32 const MemRegion *MR = LV->getAsRegion(); in assumeInternal() 38 Cond = SVB.evalCast(*LV, SVB.getContext().BoolTy, T).castAs<DefinedSVal>(); in assumeInternal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | RDFDeadCode.h | 36 : Trace(false), DFG(dfg), MRI(mri), LV(mri, dfg) {} in DeadCodeElimination() 54 Liveness LV; member
|
| H A D | HexagonRDFOpt.cpp | 337 Liveness LV(*MRI, G); in runOnMachineFunction() local 338 LV.trace(RDFDump); in runOnMachineFunction() 339 LV.computeLiveIns(); in runOnMachineFunction() 340 LV.resetLiveIns(); in runOnMachineFunction() 341 LV.resetKills(); in runOnMachineFunction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SCCPSolver.h | 177 LLVM_ABI Constant *getConstant(const ValueLatticeElement &LV, Type *Ty) const; 214 LLVM_ABI static bool isConstant(const ValueLatticeElement &LV); 220 LLVM_ABI static bool isOverdefined(const ValueLatticeElement &LV);
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerSubChecker.cpp | 46 SVal LV = C.getSVal(B->getLHS()); in checkPreStmt() local 49 const MemRegion *LR = LV.getAsRegion(); in checkPreStmt()
|