/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | LiveVariables.cpp | 159 LiveVariablesImpl &LV; member in __anon9166e1760311::TransferFunctions 168 : LV(im), val(Val), observer(Observer), currentBlock(CurrentBlock) {} in TransferFunctions() 224 val.liveExprs = LV.ESetFact.remove(val.liveExprs, E); in Visit() 241 AddLiveExpr(val.liveExprs, LV.ESetFact, ImplicitObj); in Visit() 249 val.liveDecls = LV.DSetFact.add(val.liveDecls, in Visit() 250 LV.analysisContext.getSelfDecl()); in Visit() 258 AddLiveExpr(val.liveExprs, LV.ESetFact, VA->getSizeExpr()); in Visit() 271 val.liveExprs = LV.ESetFact.add(val.liveExprs, child); in Visit() 292 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<IfStmt>(S)->getCond()); in Visit() 299 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<WhileStmt>(S)->getCond()); in Visit() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | PHIElimination.cpp | 70 LiveVariables *LV = nullptr; member in __anonf60509ee0111::PHIEliminationImpl 124 LV = LVWrapper ? &LVWrapper->getLV() : nullptr; in PHIEliminationImpl() 131 : LV(AM.getCachedResult<LiveVariablesAnalysis>(MF)), in PHIEliminationImpl() 209 if (!DisableEdgeSplitting && (LV || LIS)) { in run() 213 if (LV) { in run() 222 LiveVariables::VarInfo &VI = LV->getVarInfo(VirtReg); in run() 240 Changed |= SplitPHIEdges(MF, MBB, MLI, (LV ? &LiveInSets : nullptr)); in run() 247 if (LV || LIS) in run() 405 if (LV) { in LowerPHINode() 407 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() 790 MachineInstr *NewMI = TII->convertToThreeAddress(*mi, LV, LIS); in convertInstTo3Addr() 912 if (!LV && !LIS) in rescheduleMIBelowKill() 935 KillMI = LV->getVarInfo(Reg).findKill(MBB); in rescheduleMIBelowKill() 1064 LV->removeVirtualRegisterKilled(Reg, *KillMI); in rescheduleMIBelowKill() 1065 LV->addVirtualRegisterKilled(Reg, *MI); in rescheduleMIBelowKill() 1100 if (!LV && !LIS) in rescheduleKillAboveMI() 1123 KillMI = LV->getVarInfo(Reg).findKill(MBB); in rescheduleKillAboveMI() [all …]
|
H A D | RDFLiveness.cpp | 873 std::vector<RegisterRef> LV; in computeLiveIns() local 875 LV.push_back(RegisterRef(LI.PhysReg, LI.LaneMask)); in computeLiveIns() 876 llvm::sort(LV, std::less<RegisterRef>(PRI)); in computeLiveIns() 878 for (auto I : LV) in computeLiveIns() 883 LV.clear(); in computeLiveIns() 885 LV.push_back(RR); in computeLiveIns() 886 llvm::sort(LV, std::less<RegisterRef>(PRI)); in computeLiveIns() 888 for (auto I : LV) in computeLiveIns() 916 auto CopyLiveIns = [this](MachineBasicBlock *B, BitVector &LV) -> void { in resetKills() argument 920 LV.set(I.PhysReg); in resetKills() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 276 LValue LV = MakeAddrLValue(Location, E->getType()); in EmitAnyExprToMem() local 277 EmitStoreThroughLValue(RV, LV); in EmitAnyExprToMem() 605 LValue LV = MakeAddrLValue(Object, E->getType(), AlignmentSource::Decl); in EmitMaterializeTemporaryExpr() local 606 LV = EmitLValueForField(LV, Adjustment.Field); in EmitMaterializeTemporaryExpr() 607 assert(LV.isSimple() && in EmitMaterializeTemporaryExpr() 609 Object = LV.getAddress(); in EmitMaterializeTemporaryExpr() 628 LValue LV = EmitLValue(E); in EmitReferenceBindingToExpr() local 629 assert(LV.isSimple()); in EmitReferenceBindingToExpr() 630 llvm::Value *Value = LV.getPointer(*this); in EmitReferenceBindingToExpr() 1130 LValue LV = EmitLValue(StructBase); in EmitCountedByFieldExpr() local [all …]
|
H A D | CGExprAgg.cpp | 208 LValue LV = CGF.EmitPseudoObjectLValue(E); in VisitPseudoObjectExpr() local 209 return EmitFinalDestCopy(E->getType(), LV); in VisitPseudoObjectExpr() 251 LValue LV = CGF.EmitLValue(E); in EmitAggLoadOfLValue() local 254 if (LV.getType()->isAtomicType() || CGF.LValueIsSuitableForInlineAtomic(LV)) { in EmitAggLoadOfLValue() 255 CGF.EmitAtomicLoad(LV, E->getExprLoc(), Dest); in EmitAggLoadOfLValue() 259 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue() 742 LValue LV = CGF.EmitCheckedLValue(E->getSubExpr(), in VisitCastExpr() local 745 if (LV.isSimple()) in VisitCastExpr() 746 CGF.EmitDynamicCast(LV.getAddress(), cast<CXXDynamicCastExpr>(E)); in VisitCastExpr() 1131 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() 300 void addUncopiedAggregate(LValue LV, QualType type) { in addUncopiedAggregate() argument 301 push_back(CallArg(LV, type)); in addUncopiedAggregate()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | SparsePropagation.h | 96 virtual void PrintLatticeVal(LatticeVal LV, raw_ostream &OS); 105 virtual Value *GetValueFromLatticeVal(LatticeVal LV, Type *Ty = nullptr) { 185 void UpdateState(LatticeKey Key, LatticeVal LV); 237 LatticeVal LV = LatticeFunc->ComputeLatticeVal(Key); in getValueState() local 240 if (LV == LatticeFunc->getUntrackedVal()) in getValueState() 241 return LV; in getValueState() 242 return ValueState[Key] = std::move(LV); in getValueState() 247 LatticeVal LV) { in UpdateState() argument 249 if (I != ValueState.end() && I->second == LV) in UpdateState() 254 ValueState[Key] = 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 417 ((LV *)(char *)&Data)->~LV(); in DestroyDataAndMakeUninit() 461 return reinterpret_cast<const LV *>(&Data)->hasPathPtr(); in needsCleanup() 976 return ((const LV *)(const void *)&Data)->Base; in getLValueBase() [all …]
|
H A D | Decl.cpp | 252 LinkageInfo LV; in getLVForTemplateParameterList() local 267 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList() 276 LV.merge(getTypeLinkageAndVisibility(type)); in getLVForTemplateParameterList() 287 LV.merge(getLVForTemplateParameterList(TTP->getTemplateParameters(), in getLVForTemplateParameterList() 295 LV.merge(getLVForTemplateParameterList( in getLVForTemplateParameterList() 300 return LV; in getLVForTemplateParameterList() 322 LinkageInfo LV; in getLVForTemplateArgumentList() local 332 LV.merge(getLVForType(*Arg.getAsType(), computation)); in getLVForTemplateArgumentList() 338 LV.merge(getLVForDecl(ND, computation)); in getLVForTemplateArgumentList() 343 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/lib/Target/AMDGPU/ |
H A D | SILowerControlFlow.cpp | 76 LiveVariables *LV = nullptr; member in __anon0c226a110111::SILowerControlFlow 246 if (LV) in emitIf() 247 LV->replaceKillInstruction(Cond.getReg(), MI, *And); in emitIf() 265 if (LV) in emitIf() 266 LV->getVarInfo(Tmp).Kills.push_back(SetExec); in emitIf() 320 if (LV) in emitElse() 321 LV->replaceKillInstruction(SrcReg, MI, *OrSaveExec); in emitElse() 394 if (LV) in emitIfBreak() 395 LV->replaceKillInstruction(MI.getOperand(1).getReg(), MI, *And); in emitIfBreak() 403 if (LV) in emitIfBreak() [all …]
|
H A D | SIOptimizeVGPRLiveRange.cpp | 94 LiveVariables *LV = nullptr; member in __anon0f1b199c0111::SIOptimizeVGPRLiveRange 244 LiveVariables::VarInfo &VI = LV->getVarInfo(MOReg); in collectCandidateRegisters() 253 LiveVariables::VarInfo &VI = LV->getVarInfo(MOReg); in collectCandidateRegisters() 283 LiveVariables::VarInfo &VI = LV->getVarInfo(Reg); in collectCandidateRegisters() 376 LiveVariables::VarInfo &OldVarInfo = LV->getVarInfo(MOReg); in collectWaterfallCandidateRegisters() 417 LiveVariables::VarInfo &OldVarInfo = LV->getVarInfo(Reg); in updateLiveRangeInThenRegion() 445 LV->HandleVirtRegUse(Reg, MBB, *(*Uses.begin())); in updateLiveRangeInThenRegion() 452 LV->HandleVirtRegUse(Reg, MBB, MI); in updateLiveRangeInThenRegion() 458 LV->MarkVirtRegAliveInBlock(OldVarInfo, MRI->getVRegDef(Reg)->getParent(), in updateLiveRangeInThenRegion() 473 LiveVariables::VarInfo &NewVarInfo = LV->getVarInfo(NewReg); in updateLiveRangeInElseRegion() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
H A D | SourcePrinter.cpp | 133 for (const LiveVariable &LV : LiveVariables) { in dump() local 134 dbgs() << LV.VarName << " @ " << LV.LocExpr.Range << ": "; in dump() 135 LV.print(dbgs(), MRI); in dump() 163 LiveVariable &LV = LiveVariables[ActiveCols[ColIdx].VarIdx]; in update() local 164 ActiveCols[ColIdx].LiveIn = LV.liveAtAddress(ThisAddr); in update() 165 ActiveCols[ColIdx].LiveOut = LV.liveAtAddress(NextAddr); in update() 167 << NextAddr.Address << ", " << LV.VarName << ", Col " in update() 182 LiveVariable &LV = LiveVariables[VarIdx]; in update() local 183 bool LiveIn = LV in update() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SCCPSolver.cpp | 47 bool SCCPSolver::isConstant(const ValueLatticeElement &LV) { in isConstant() argument 48 return LV.isConstant() || in isConstant() 49 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant() 52 bool SCCPSolver::isOverdefined(const ValueLatticeElement &LV) { in isOverdefined() argument 53 return !LV.isUnknownOrUndef() && !SCCPSolver::isConstant(LV); in isOverdefined() 482 ValueLatticeElement &LV = I.first->second; in getValueState() local 485 return LV; // Common case, already in the map. in getValueState() 488 LV.markConstant(C); // Constants are constant in getValueState() 491 return LV; in getValueState() 504 ValueLatticeElement &LV = I.first->second; in getStructValueState() local [all …]
|
H A D | LoopUnroll.cpp | 256 Value *getMatchingValue(LoadValue LV, LoadInst *LI, unsigned CurrentGeneration, in getMatchingValue() argument 259 if (!LV.DefI) in getMatchingValue() 261 if (LV.DefI->getType() != LI->getType()) in getMatchingValue() 263 if (LV.Generation != CurrentGeneration) { in getMatchingValue() 267 auto *EarlierMA = MSSA->getMemoryAccess(LV.DefI); in getMatchingValue() 273 return LV.DefI; in getMatchingValue() 312 LoadValue LV = AvailableLoads.lookup(PtrSCEV); in loadCSE() local 314 getMatchingValue(LV, Load, CurrentGeneration, BAA, GetMSSA)) { in loadCSE()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | CalledValuePropagation.cpp | 192 void PrintLatticeVal(CVPLatticeVal LV, raw_ostream &OS) override { in PrintLatticeVal() argument 193 if (LV == getUndefVal()) in PrintLatticeVal() 195 else if (LV == getOverdefinedVal()) in PrintLatticeVal() 197 else if (LV == getUntrackedVal()) in PrintLatticeVal() 391 CVPLatticeVal LV = Solver.getExistingValueState(RegI); in runCVP() local 392 if (!LV.isFunctionSet() || LV.getFunctions().empty()) in runCVP() 394 MDNode *Callees = MDB.createCallees(LV.getFunctions()); in runCVP()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LiveVariables.h | 325 LiveVariables LV; variable 335 LV.analyze(MF); in runOnMachineFunction() 341 void releaseMemory() override { LV.VirtRegInfo.clear(); } in releaseMemory() 343 LiveVariables &getLV() { return LV; } in getLV()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SCCPSolver.h | 165 Constant *getConstant(const ValueLatticeElement &LV, Type *Ty) const; 202 static bool isConstant(const ValueLatticeElement &LV); 208 static bool isOverdefined(const ValueLatticeElement &LV);
|
/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 | 344 Liveness LV(*MRI, G); in runOnMachineFunction() local 345 LV.trace(RDFDump); in runOnMachineFunction() 346 LV.computeLiveIns(); in runOnMachineFunction() 347 LV.resetLiveIns(); in runOnMachineFunction() 348 LV.resetKills(); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ProgramState.h | 305 [[nodiscard]] ProgramStateRef killBinding(Loc LV) const; 380 SVal getSVal(Loc LV, QualType T = QualType()) const; 383 SVal getRawSVal(Loc LV, QualType T= QualType()) const; 751 inline ProgramStateRef ProgramState::bindLoc(SVal LV, SVal V, const LocationContext *LCtx) const { in bindLoc() argument 752 if (std::optional<Loc> L = LV.getAs<Loc>()) in bindLoc() 812 inline SVal ProgramState::getRawSVal(Loc LV, QualType T) const { in getRawSVal() argument 813 return getStateManager().StoreMgr->getBinding(getStore(), LV, T); in getRawSVal()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/ |
H A D | LVReader.h | 82 llvm::SpecificBumpPtrAllocator<LV##KIND> Allocated##KIND; 189 LV##KIND *create##KIND() { \ 190 return new (Allocated##KIND.Allocate()) LV##KIND(); \
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PointerSubChecker.cpp | 112 SVal LV = C.getSVal(B->getLHS()); in checkPreStmt() local 115 const MemRegion *LR = LV.getAsRegion(); in checkPreStmt()
|