Searched refs:LV (Results 1 - 25 of 72) sorted by relevance

123

/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp258 const Expr *LV, DerefKind AK, llvm::function_ref<bool(PrimType)> Direct,
260 if (Optional<PrimType> T = classify(LV->getType())) {
261 if (!LV->refersToBitField()) {
263 if (auto *DE = dyn_cast<DeclRefExpr>(LV)) {
266 return dereferenceParam(LV, *T, PD, AK, Direct, Indirect);
268 return dereferenceVar(LV, *T, VD, AK, Direct, Indirect);
273 if (!visit(LV))
283 const Expr *LV, PrimType T, const ParmVarDecl *PD, DerefKind AK,
291 return DiscardResult ? true : this->emitGetParam(T, Idx, LV);
296 if (!this->emitSetParam(T, Idx, LV))
[all...]
H A DByteCodeExprGen.h181 bool dereference(const Expr *LV, DerefKind AK,
184 bool dereferenceParam(const Expr *LV, PrimType T, const ParmVarDecl *PD,
188 bool dereferenceVar(const Expr *LV, PrimType T, const VarDecl *PD,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp201 LiveVariablesImpl &LV; member in class:__anon384::TransferFunctions
210 : LV(im), val(Val), observer(Observer), currentBlock(CurrentBlock) {}
266 val.liveStmts = LV.SSetFact.remove(val.liveStmts, S);
283 AddLiveStmt(val.liveStmts, LV.SSetFact, ImplicitObj);
291 val.liveDecls = LV.DSetFact.add(val.liveDecls,
292 LV.analysisContext.getSelfDecl());
300 AddLiveStmt(val.liveStmts, LV.SSetFact, VA->getSizeExpr());
313 val.liveStmts = LV.SSetFact.add(val.liveStmts, child);
334 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<IfStmt>(S)->getCond());
341 AddLiveStmt(val.liveStmts, LV
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPointerSubChecker.cpp41 SVal LV = C.getSVal(B->getLHS());
44 const MemRegion *LR = LV.getAsRegion();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DRDFDeadCode.h36 : Trace(false), DFG(dfg), MRI(mri), LV(mri, dfg) {}
54 Liveness LV; member in struct:llvm::rdf::DeadCodeElimination
H A DHexagonRDFOpt.cpp326 Liveness LV(*MRI, G);
327 LV.trace(RDFDump);
328 LV.computeLiveIns();
329 LV.resetLiveIns();
330 LV.resetKills();
H A DHexagonOptAddrMode.cpp88 Liveness *LV = nullptr; member in class:__anon97::HexagonOptAddrMode
182 NodeAddr<RefNode*> AA = LV->getNearestAliasedRef(OffsetRR, IA);
218 const auto &P = LV->getAllReachingDefsRec(UR, UN, Visited, Defs);
251 auto UseSet = LV->getAllReachedUses(DR, DA);
264 const Liveness::RefMap &phiUse = LV->getRealUses(id);
306 NodeAddr<RefNode*> AA = LV->getNearestAliasedRef(LRExtRR, IA);
799 LV = &L;
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSparsePropagation.h94 virtual void PrintLatticeVal(LatticeVal LV, raw_ostream &OS);
103 virtual Value *GetValueFromLatticeVal(LatticeVal LV, Type *Ty = nullptr) { argument
183 void UpdateState(LatticeKey Key, LatticeVal LV);
235 LatticeVal LV = LatticeFunc->ComputeLatticeVal(Key);
238 if (LV == LatticeFunc->getUntrackedVal())
239 return LV;
240 return ValueState[Key] = std::move(LV);
245 LatticeVal LV) {
247 if (I != ValueState.end() && I->second == LV)
252 ValueState[Key] = std::move(LV);
244 UpdateState(LatticeKey Key, LatticeVal LV) argument
508 LatticeVal LV; local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DPHIElimination.cpp69 LiveVariables *LV; member in class:__anon1780::PHIElimination
149 LV = getAnalysisIfAvailable<LiveVariables>();
158 if (!DisableEdgeSplitting && (LV || LIS)) {
290 if (LV) {
292 LiveVariables::VarInfo &VI = LV->getVarInfo(IncomingReg);
295 LV->setPHIJoin(IncomingReg);
303 LV->removeVirtualRegisterKilled(IncomingReg, *OldKill);
311 LV->addVirtualRegisterKilled(IncomingReg, *PHICopy);
317 LV->removeVirtualRegistersKilled(*MPhi);
319 // If the result is dead, update LV
[all...]
H A DTwoAddressInstructionPass.cpp98 LiveVariables *LV; member in class:__anon1833::TwoAddressInstructionPass
322 // Update kill and LV information.
327 if (LV)
328 LV->replaceKillInstruction(SavedReg, *KillMI, *MI);
735 MachineInstr *NewMI = TII->convertToThreeAddress(MFI, *mi, LV);
859 // Bail immediately if we don't have LV or LIS available. We use them to find
861 if (!LV && !LIS)
884 KillMI = LV->getVarInfo(Reg).findKill(MBB);
1014 LV->removeVirtualRegisterKilled(Reg, *KillMI);
1015 LV
[all...]
H A DRDFLiveness.cpp811 std::vector<RegisterRef> LV; local
813 LV.push_back(RegisterRef(I->PhysReg, I->LaneMask));
814 llvm::sort(LV);
816 for (auto I : LV)
821 LV.clear();
824 LV.push_back(*I);
825 llvm::sort(LV);
827 for (auto I : LV)
858 auto CopyLiveIns = [this] (MachineBasicBlock *B, BitVector &LV) -> void {
862 LV
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp245 LValue LV = MakeAddrLValue(Location, E->getType()); local
246 EmitStoreThroughLValue(RV, LV);
572 LValue LV = MakeAddrLValue(Object, E->getType(), AlignmentSource::Decl); local
573 LV = EmitLValueForField(LV, Adjustment.Field);
574 assert(LV.isSimple() &&
576 Object = LV.getAddress(*this);
595 LValue LV = EmitLValue(E); local
596 assert(LV.isSimple());
597 llvm::Value *Value = LV
988 EmitComplexPrePostIncDec(const UnaryOperator *E, LValue LV, bool isInc, bool isPre) argument
1132 LValue LV = EmitLValue(UO->getSubExpr()); local
1211 LValue LV; local
1309 LValue LV = EmitLValue(cleanups->getSubExpr()); local
1777 EmitLoadOfLValue(LValue LV, SourceLocation Loc) argument
1823 EmitLoadOfBitfieldLValue(LValue LV, SourceLocation Loc) argument
1855 EmitLoadOfExtVectorElementLValue(LValue LV) argument
1884 EmitExtVectorElementLValue(LValue LV) argument
1904 EmitLoadOfGlobalRegLValue(LValue LV) argument
2190 setObjCGCLValueClass(const ASTContext &Ctx, const Expr *E, LValue &LV, bool IsMemberAccess=false) argument
2391 LValue LV = VD->getType()->isReferenceType() ? local
2434 LValue LV = CGF.MakeNaturalAlignAddrLValue(ThisValue, TagType); local
2661 LValue LV = VD->getType()->isReferenceType() ? local
2679 setObjCGCLValueClass(getContext(), E, LV); local
2711 LValue LV = MakeAddrLValue(Addr, T, BaseInfo, TBAAInfo); local
2726 LValue LV = EmitLValue(E->getSubExpr()); local
2750 LValue LV = EmitLValue(E->getSubExpr()); local
3341 LValue LV = EmitLValue(E); local
3554 LValue LV = EmitLValue(E->getBase()); local
3658 LValue LV = MakeAddrLValue(Addr, E->getType(), EltBaseInfo, EltTBAAInfo); local
3663 setObjCGCLValueClass(getContext(), E, LV); local
3946 LValue LV = EmitLValueForField(BaseLV, Field); local
3947 setObjCGCLValueClass(getContext(), E, LV); local
4201 LValue LV = MakeAddrLValue(addr, FieldType, FieldBaseInfo, FieldTBAAInfo); local
4422 LValue LV = EmitLValue(E->getSubExpr()); local
4442 LValue LV = EmitLValue(E->getSubExpr()); local
4462 LValue LV = EmitLValue(E->getSubExpr()); local
4488 LValue LV = EmitLValue(E->getSubExpr()); local
4501 LValue LV = EmitLValue(E->getSubExpr()); local
4511 LValue LV = EmitLValue(E->getSubExpr()); local
4557 EmitRValueForField(LValue LV, const FieldDecl *FD, SourceLocation Loc) argument
4725 LValue LV = EmitCheckedLValue(E->getLHS(), TCK_Store); local
4845 LValue LV = local
4848 setObjCGCLValueClass(getContext(), E, LV); local
5095 LValue LV; member in struct:__anon354::LValueOrRValue
5131 LValue LV = CGF.MakeAddrLValue(slot.getAddress(), ov->getType(), local
[all...]
H A DCGCall.h220 LValue LV; /// The argument is semantically a load from this l-value. member in union:clang::CodeGen::CGCallee::CallArg::__anon337
233 : LV(lv), HasLV(true), IsUsed(false), Ty(ty) {}
243 return LV;
287 void addUncopiedAggregate(LValue LV, QualType type) { argument
288 push_back(CallArg(LV, type));
H A DCGExprAgg.cpp192 LValue LV = CGF.EmitPseudoObjectLValue(E); local
193 return EmitFinalDestCopy(E->getType(), LV);
220 LValue LV = CGF.EmitLValue(E); local
223 if (LV.getType()->isAtomicType() || CGF.LValueIsSuitableForInlineAtomic(LV)) {
224 CGF.EmitAtomicLoad(LV, E->getExprLoc(), Dest);
228 EmitFinalDestCopy(E->getType(), LV);
687 LValue LV = CGF.EmitCheckedLValue(E->getSubExpr(), local
690 if (LV.isSimple())
691 CGF.EmitDynamicCast(LV
1060 LValue LV = CGF.EmitPointerToDataMemberBinaryExpr(E); local
1294 LValue LV = CGF.EmitLValueForFieldInitialization(SlotLV, *CurField); local
1379 EmitInitializationToLValue(Expr *E, LValue LV) argument
1411 CGF.EmitStoreThroughLValue(RValue::get(CGF.EmitScalarExpr(E)), LV); local
1578 LValue LV = CGF.EmitLValueForFieldInitialization(DestLV, field); local
1856 LValue LV = MakeAddrLValue(Temp, E->getType()); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DAPValue.cpp45 APValue::LValueBase APValue::LValueBase::getDynamicAlloc(DynamicAllocLValue LV, argument
48 Base.Ptr = LV;
53 APValue::LValueBase APValue::LValueBase::getTypeInfo(TypeInfoLValue LV, argument
56 Base.Ptr = LV;
146 struct APValue::LV : LVBase { struct in class:APValue
158 LV() { PathLength = (unsigned)-1; } function in struct:APValue::LV
159 ~LV() { resizePath(0); }
321 ((LV*)(char*)Data.buffer)->~LV();
365 return reinterpret_cast<const LV *>(Dat
[all...]
H A DDecl.cpp251 LinkageInfo LV; local
266 LV.merge(getLVForType(*NTTP->getType(), computation));
275 LV.merge(getTypeLinkageAndVisibility(type));
286 LV.merge(getLVForTemplateParameterList(TTP->getTemplateParameters(),
294 LV.merge(getLVForTemplateParameterList(
299 return LV;
321 LinkageInfo LV; local
331 LV.merge(getLVForType(*Arg.getAsType(), computation));
337 LV.merge(getLVForDecl(ND, computation));
342 LV
387 mergeTemplateLV( LinkageInfo &LV, const FunctionDecl *fn, const FunctionTemplateSpecializationInfo *specInfo, LVComputationKind computation) argument
455 mergeTemplateLV( LinkageInfo &LV, const ClassTemplateSpecializationDecl *spec, LVComputationKind computation) argument
507 mergeTemplateLV(LinkageInfo &LV, const VarTemplateSpecializationDecl *spec, LVComputationKind computation) argument
709 LinkageInfo LV = getExternalLinkageFor(D); local
[all...]
H A DLinkage.h25 /// Kinds of LV computation. The linkage side of the computation is
56 /// Do an LV computation when we only care about the linkage.
111 void mergeTemplateLV(LinkageInfo &LV, const FunctionDecl *fn,
115 void mergeTemplateLV(LinkageInfo &LV,
119 void mergeTemplateLV(LinkageInfo &LV,
H A DStmtCXX.cpp77 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); local
78 assert(LV && "No loop variable in CXXForRangeStmt");
79 return cast<VarDecl>(LV);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleConstraintManager.cpp29 if (Optional<Loc> LV = Cond.getAs<Loc>()) {
32 const MemRegion *MR = LV->getAsRegion();
38 Cond = SVB.evalCast(*LV, SVB.getContext().BoolTy, T).castAs<DefinedSVal>();
H A DSValBuilder.cpp417 if (Optional<Loc> LV = lhs.getAs<Loc>()) {
419 return evalBinOpLL(state, op, *LV, *RV, type);
421 return evalBinOpLN(state, op, *LV, rhs.castAs<NonLoc>(), type);
566 if (Optional<nonloc::LocAsInteger> LV = val.getAs<nonloc::LocAsInteger>()) {
567 if (const MemRegion *R = LV->getLoc().getAsRegion()) {
572 return LV->getLoc();
H A DProgramState.cpp117 ProgramStateRef ProgramState::bindLoc(Loc LV, argument
123 LV, V));
124 const MemRegion *MR = LV.getAsRegion();
222 ProgramStateRef ProgramState::killBinding(Loc LV) const {
223 assert(!LV.getAs<loc::MemRegionVal>() && "Use invalidateRegion instead.");
227 getStateManager().StoreMgr->killBinding(OldStore, LV);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCalledValuePropagation.cpp193 void PrintLatticeVal(CVPLatticeVal LV, raw_ostream &OS) override {
194 if (LV == getUndefVal())
196 else if (LV == getOverdefinedVal())
198 else if (LV == getUntrackedVal())
394 CVPLatticeVal LV = Solver.getExistingValueState(RegI); local
395 if (!LV.isFunctionSet() || LV.getFunctions().empty())
397 MDNode *Callees = MDB.createCallees(LV.getFunctions());
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp416 LatticeVal LV = It->second; local
417 if (LV.isOverdefined())
495 LatticeVal &LV = I.first->second; local
498 return LV; // Common case, already in the map.
503 LV.markConstant(C); // Constants are constant
507 return LV;
515 ValueLatticeElement &LV = PI.first->second; local
517 LV = getValueState(V).toValueLattice();
519 return LV;
533 LatticeVal &LV local
1462 LatticeVal &LV = getStructValueState(&I, i); local
1469 LatticeVal &LV = getValueState(&I); local
[all...]
H A DLoopFuse.cpp460 for (const LoopVector &LV : *this)
461 for (Loop *L : LV)
492 static void printLoopVector(const LoopVector &LV) { argument
494 for (auto L : LV)
540 for (const LoopVector &LV : LDT) {
541 assert(LV.size() > 0 && "Empty loop set was build!");
545 if (LV.size() == 1)
550 dbgs() << " Visit loop set (#" << LV.size() << "):\n";
551 printLoopVector(LV);
556 collectFusionCandidates(LV);
603 collectFusionCandidates(const LoopVector &LV) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramState.h262 LLVM_NODISCARD ProgramStateRef killBinding(Loc LV) const;
333 SVal getSVal(Loc LV, QualType T = QualType()) const;
335 /// Returns the "raw" SVal bound to LV before any value simplfication.
336 SVal getRawSVal(Loc LV, QualType T= QualType()) const;
702 inline ProgramStateRef ProgramState::bindLoc(SVal LV, SVal V, const LocationContext *LCtx) const { argument
703 if (Optional<Loc> L = LV.getAs<Loc>())
777 inline SVal ProgramState::getRawSVal(Loc LV, QualType T) const { argument
778 return getStateManager().StoreMgr->getBinding(getStore(), LV, T);

Completed in 209 milliseconds

123