Home
last modified time | relevance | path

Searched refs:Var (Results 1 – 25 of 193) sorted by relevance

12345678

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DCNFFormula.cpp133 Variable Var = NextVar; in buildCNF() local
137 if (!FormulaToVar.try_emplace(F, Var).second) in buildCNF()
144 Atomics[Var] = F->getAtom(); in buildCNF()
171 const Variable Var = GetVar(F); in buildCNF() local
173 if (ProcessedSubVals[Var]) in buildCNF()
175 ProcessedSubVals[Var] = true; in buildCNF()
181 CNF.addClause(F->literal() ? posLit(Var) : negLit(Var)); in buildCNF()
191 builder.addClause({negLit(Var), posLit(LHS)}); in buildCNF()
192 builder.addClause({posLit(Var), negLit(LHS)}); in buildCNF()
197 builder.addClause({negLit(Var), posLit(LHS)}); in buildCNF()
[all …]
H A DWatchedLiteralsSolver.cpp138 for (Variable Var = CNF.largestVar(); Var != NullVar; --Var) { in WatchedLiteralsSolverImpl() local
139 if (isWatched(posLit(Var)) || isWatched(negLit(Var))) in WatchedLiteralsSolverImpl()
140 ActiveVars.push_back(Var); in WatchedLiteralsSolverImpl()
189 const Variable Var = LevelVars[Level]; in solve() local
190 VarAssignments[Var] = VarAssignments[Var] == Assignment::AssignedTrue in solve()
265 const Variable Var = LevelVars[Level]; in reverseForcedMoves() local
267 VarAssignments[Var] = Assignment::Unassigned; in reverseForcedMoves()
271 if (isWatched(posLit(Var)) || isWatched(negLit(Var))) in reverseForcedMoves()
272 ActiveVars.push_back(Var); in reverseForcedMoves()
278 const Variable Var = LevelVars[Level]; in updateWatchedLiterals() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp102 for (const auto &Var : Vars) { in ComputeASanStackFrameDescription() local
103 std::string Name = Var.Name; in ComputeASanStackFrameDescription()
104 if (Var.Line) { in ComputeASanStackFrameDescription()
106 Name += to_string(Var.Line); in ComputeASanStackFrameDescription()
108 StackDescription << " " << Var.Offset << " " << Var.Size << " " in ComputeASanStackFrameDescription()
122 for (const auto &Var : Vars) { in GetShadowBytes() local
123 SB.resize(Var.Offset / Granularity, kAsanStackMidRedzoneMagic); in GetShadowBytes()
125 SB.resize(SB.size() + Var.Size / Granularity, 0); in GetShadowBytes()
126 if (Var.Size % Granularity) in GetShadowBytes()
127 SB.push_back(Var.Size % Granularity); in GetShadowBytes()
[all …]
H A DSSAUpdaterBulk.cpp41 unsigned Var = Rewrites.size(); in AddVariable() local
42 LLVM_DEBUG(dbgs() << "SSAUpdater: Var=" << Var << ": initialized with Ty = " in AddVariable()
46 return Var; in AddVariable()
51 void SSAUpdaterBulk::AddAvailableValue(unsigned Var, BasicBlock *BB, Value *V) { in AddAvailableValue() argument
52 assert(Var < Rewrites.size() && "Variable not found!"); in AddAvailableValue()
53 LLVM_DEBUG(dbgs() << "SSAUpdater: Var=" << Var in AddAvailableValue()
56 Rewrites[Var].Defines[BB] = V; in AddAvailableValue()
61 void SSAUpdaterBulk::AddUse(unsigned Var, Use *U) { in AddUse() argument
62 assert(Var < Rewrites.size() && "Variable not found!"); in AddUse()
63 LLVM_DEBUG(dbgs() << "SSAUpdater: Var=" << Var << ": added a use" << *U->get() in AddUse()
[all …]
H A DMemoryOpRemark.cpp314 VariableInfo Var{nameOrNone(GV), Size}; in visitVariable() local
315 if (!Var.isEmpty()) in visitVariable()
316 Result.push_back(std::move(Var)); in visitVariable()
327 VariableInfo Var{DILV->getName(), DISize}; in visitVariable() local
328 if (!Var.isEmpty()) { in visitVariable()
329 Result.push_back(std::move(Var)); in visitVariable()
350 VariableInfo Var{nameOrNone(AI), Size}; in visitVariable() local
351 if (!Var.isEmpty()) in visitVariable()
352 Result.push_back(std::move(Var)); in visitVariable()
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyVariableDumper.cpp39 void VariableDumper::start(const PDBSymbolData &Var, uint32_t Offset) { in start() argument
40 if (Var.isCompilerGenerated() && opts::pretty::ExcludeCompilerGenerated) in start()
42 if (Printer.IsSymbolExcluded(Var.getName())) in start()
45 auto VarType = Var.getType(); in start()
49 switch (auto LocType = Var.getLocationType()) { in start()
54 << format_hex(Var.getVirtualAddress(), 10); in start()
57 dumpSymbolTypeAndName(*VarType, Var.getName()); in start()
64 dumpSymbolTypeAndName(*VarType, Var.getName()); in start()
66 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getValue(); in start()
72 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDbgEntityHistoryCalculator.cpp70 bool DbgValueHistoryMap::startDbgValue(InlinedEntity Var, in startDbgValue() argument
76 auto &Entries = VarEntries[Var]; in startDbgValue()
90 EntryIndex DbgValueHistoryMap::startClobber(InlinedEntity Var, in startClobber() argument
92 auto &Entries = VarEntries[Var]; in startClobber()
304 InlinedEntity Var) { in dropRegDescribedVar() argument
308 const auto &VarPos = llvm::find(VarSet, Var); in dropRegDescribedVar()
318 InlinedEntity Var) { in addRegDescribedVar() argument
321 assert(!is_contained(VarSet, Var)); in addRegDescribedVar()
322 VarSet.push_back(Var); in addRegDescribedVar()
329 static void clobberRegEntries(InlinedEntity Var, unsigned RegNo, in clobberRegEntries() argument
[all …]
H A DDwarfFile.cpp105 void DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) { in addScopeVariable() argument
107 const DILocalVariable *DV = Var->getVariable(); in addScopeVariable()
109 auto Ret = ScopeVars.Args.insert({ArgNum, Var}); in addScopeVariable()
113 ScopeVars.Locals.push_back(Var); in addScopeVariable()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAssignmentTrackingAnalysis.cpp138 void addSingleLocVar(DebugVariable Var, DIExpression *Expr, DebugLoc DL, in addSingleLocVar() argument
141 VarLoc.VariableID = insertVariable(Var); in addSingleLocVar()
149 void addVarLoc(VarLocInsertPt Before, DebugVariable Var, DIExpression *Expr, in addVarLoc() argument
152 VarLoc.VariableID = insertVariable(Var); in addVarLoc()
332 static DebugAggregate getAggregate(const DebugVariable &Var) { in getAggregate() argument
333 return DebugAggregate(Var.getVariable(), Var.getInlinedAt()); in getAggregate()
398 unsigned Var; member
623 void insertMemLoc(BasicBlock &BB, VarLocInsertPt Before, unsigned Var, in insertMemLoc() argument
630 Loc.Var = Var; in insertMemLoc()
637 LLVM_DEBUG(dbgs() << "Add mem def for " << Aggregates[Var].first->getName() in insertMemLoc()
[all …]
H A DRemoveRedundantDebugValues.cpp92 DebugVariable Var(MI.getDebugVariable(), std::nullopt, in reduceDbgValsForwardScan() local
94 auto VMI = VariableMap.find(Var); in reduceDbgValsForwardScan()
118 VariableMap[Var] = {&Loc, MI.getDebugExpression()}; in reduceDbgValsForwardScan()
131 for (auto &Var : VariableMap) { in reduceDbgValsForwardScan() local
132 auto &LocOp = Var.second.first; in reduceDbgValsForwardScan()
134 VariableMap.erase(Var.first); in reduceDbgValsForwardScan()
163 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in reduceDbgValsBackwardScan() local
165 auto R = VariableSet.insert(Var); in reduceDbgValsBackwardScan()
176 VariableSet.erase(Var); in reduceDbgValsBackwardScan()
H A DMachineCheckDebugify.cpp83 unsigned Var = ~0U; in runOnModule() local
85 (void)to_integer(LocalVar->getName(), Var, 10); in runOnModule()
86 assert(Var <= NumVars && "Unexpected name for DILocalVariable"); in runOnModule()
87 MissingVars.reset(Var - 1); in runOnModule()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DCodeExpander.cpp51 StringRef Var; in emit() local
52 std::tie(Var, Current) = Current.split("}"); in emit()
55 StringRef EndVar = StartVar.drop_front(2 /* ${ */ + Var.size()); in emit()
57 PrintWarning(Loc, "Unterminated expansion '${" + Var + "'"); in emit()
61 auto ValueI = Expansions.find(Var); in emit()
64 "Attempt to expand an undeclared variable '" + Var + "'"); in emit()
68 OS << "/*$" << Var << "{*/"; in emit()
69 OS << Expansions.lookup(Var); in emit()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp61 llvm::GlobalVariable *Var; member
139 void registerDeviceVar(const VarDecl *VD, llvm::GlobalVariable &Var, in registerDeviceVar() argument
141 DeviceVars.push_back({&Var, in registerDeviceVar()
147 void registerDeviceSurf(const VarDecl *VD, llvm::GlobalVariable &Var, in registerDeviceSurf() argument
149 DeviceVars.push_back({&Var, in registerDeviceSurf()
155 void registerDeviceTex(const VarDecl *VD, llvm::GlobalVariable &Var, in registerDeviceTex() argument
157 DeviceVars.push_back({&Var, in registerDeviceTex()
183 llvm::GlobalVariable &Var) override;
489 static void replaceManagedVar(llvm::GlobalVariable *Var, in replaceManagedVar() argument
492 for (auto &&VarUse : Var->uses()) { in replaceManagedVar()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfo.h282 DILocalVariable *Var; member
286 : Var(DVI->getVariable()), DL(getDebugValueLoc(DVI)) {} in VarRecord()
288 : Var(DVR->getVariable()), DL(getDebugValueLoc(DVR)) {} in VarRecord()
289 VarRecord(DILocalVariable *Var, DILocation *DL) : Var(Var), DL(DL) {} in VarRecord()
291 return std::tie(LHS.Var, LHS.DL) < std::tie(RHS.Var, RHS.DL);
294 return std::tie(LHS.Var, LHS.DL) == std::tie(RHS.Var, RHS.DL);
311 static unsigned getHashValue(const at::VarRecord &Var) {
312 return hash_combine(Var.Var, Var.DL);
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIAEnumTables.cpp26 VARIANT Var; in getChildAtIndex() local
27 Var.vt = VT_UINT; in getChildAtIndex()
28 Var.uintVal = Index; in getChildAtIndex()
29 if (S_OK != Enumerator->Item(Var, &Item)) in getChildAtIndex()
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Doptions_parser.cpp36 void *Var);
52 void *Var; member
160 Ok = parseBool(Value, reinterpret_cast<bool *>(Options[I].Var)); in setOptionToValue()
168 *reinterpret_cast<int *>(Options[I].Var) = in setOptionToValue()
186 OptionType Type, void *Var) { in registerOption() argument
192 Options[NumberOfOptions].Var = Var; in registerOption()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp307 } else if (VarDecl *Var = dyn_cast<VarDecl>(ManglingContextDecl)) { in getCurrentMangleNumberContext() local
308 if (Var->getMostRecentDecl()->isInline()) in getCurrentMangleNumberContext()
310 else if (Var->getDeclContext()->isRecord() && IsInNonspecializedTemplate) in getCurrentMangleNumberContext()
312 else if (Var->getDescribedVarTemplate()) in getCurrentMangleNumberContext()
314 else if (auto *VTS = dyn_cast<VarTemplateSpecializationDecl>(Var)) { in getCurrentMangleNumberContext()
875 void Sema::addInitCapture(LambdaScopeInfo *LSI, VarDecl *Var, bool ByRef) { in addInitCapture() argument
876 assert(Var->isInitCapture() && "init capture flag should be set"); in addInitCapture()
877 LSI->addCapture(Var, /*isBlock=*/false, ByRef, in addInitCapture()
878 /*isNested=*/false, Var->getLocation(), SourceLocation(), in addInitCapture()
879 Var->getType(), /*Invalid=*/false); in addInitCapture()
[all …]
H A DSemaTemplateInstantiateDecl.cpp1209 VarDecl *Var; in VisitVarDecl() local
1211 Var = DecompositionDecl::Create(SemaRef.Context, DC, D->getInnerLocStart(), in VisitVarDecl()
1215 Var = VarDecl::Create(SemaRef.Context, DC, D->getInnerLocStart(), in VisitVarDecl()
1221 SemaRef.ObjC().inferObjCARCLifetime(Var)) in VisitVarDecl()
1222 Var->setInvalidDecl(); in VisitVarDecl()
1225 SemaRef.deduceOpenCLAddressSpace(Var); in VisitVarDecl()
1228 if (SubstQualifier(D, Var)) in VisitVarDecl()
1231 SemaRef.BuildVariableInstantiation(Var, D, TemplateArgs, LateAttrs, Owner, in VisitVarDecl()
1233 if (D->isNRVOVariable() && !Var->isInvalidDecl()) { in VisitVarDecl()
1254 Sema::NamedReturnInfo Info = SemaRef.getNamedReturnInfo(Var); in VisitVarDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransBlockObjCVariable.cpp44 VarDecl *Var; member in __anon444fe0df0111::RootBlockObjCVarRewriter::BlockVarChecker
48 BlockVarChecker(VarDecl *var) : Var(var) { } in BlockVarChecker()
53 if (ref->getDecl() == Var) { in TraverseImplicitCastExpr()
57 Var->getASTContext().getLangOpts().CPlusPlus) in TraverseImplicitCastExpr()
66 if (E->getDecl() == Var) in VisitDeclRefExpr()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dflags_parser.cpp141 Ok = parseBool(Value, reinterpret_cast<bool *>(Flags[I].Var)); in runHandler()
157 *reinterpret_cast<int *>(Flags[I].Var) = static_cast<int>(V); in registerFlag()
169 void *Var) {
174 Flags[NumberOfFlags].Var = Var;
155 registerFlag(const char * Name,const char * Desc,FlagType Type,void * Var) registerFlag() argument
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h624 Capture(ValueDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture() argument
627 : CapturedVar(Var), Loc(Loc), EllipsisLoc(EllipsisLoc), in Capture()
731 void addCapture(ValueDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture() argument
734 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc, in addCapture()
736 CaptureMap[Var] = Captures.size(); in addCapture()
758 bool isCaptured(ValueDecl *Var) const { return CaptureMap.count(Var); } in isCaptured() argument
765 Capture &getCapture(ValueDecl *Var) { in getCapture() argument
766 assert(isCaptured(Var) && "Variable has not been captured"); in getCapture()
767 return Captures[CaptureMap[Var] - 1]; in getCapture()
770 const Capture &getCapture(ValueDecl *Var) const { in getCapture() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DDbgEntityHistoryCalculator.h103 bool startDbgValue(InlinedEntity Var, const MachineInstr &MI,
105 EntryIndex startClobber(InlinedEntity Var, const MachineInstr &MI);
107 Entry &getEntry(InlinedEntity Var, EntryIndex Index) { in getEntry() argument
108 auto &Entries = VarEntries[Var]; in getEntry()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp327 const DebugVariable Var; member
423 : Var(MI.getDebugVariable(), MI.getDebugExpression(), in VarLoc()
553 const DILocalVariable *Var = MI.getDebugVariable(); in BuildDbgValue() local
609 return BuildMI(MF, DbgLoc, IID, Indirect, MOs, Var, DIExpr); in BuildDbgValue()
754 Out << ", \"" << Var.getVariable()->getName() << "\", " << *Expr << ", "; in dump()
755 if (Var.getInlinedAt()) in dump()
756 Out << "!" << Var.getInlinedAt()->getMetadataID() << ")\n"; in dump()
768 return std::tie(EVKind, Var, Expr, Locs) == in operator ==()
769 std::tie(Other.EVKind, Other.Var, Other.Expr, Other.Locs); in operator ==()
774 return std::tie(Var, EVKind, Locs, Expr) < in operator <()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp925 Stmt *Init, VarDecl *Var, Expr *Cond, SourceLocation LPL, in IfStmt() argument
929 bool HasVar = Var != nullptr; in IfStmt()
942 setConditionVariable(Ctx, Var); in IfStmt()
959 IfStatementKind Kind, Stmt *Init, VarDecl *Var, in Create() argument
963 bool HasVar = Var != nullptr; in Create()
970 IfStmt(Ctx, IL, Kind, Init, Var, Cond, LPL, RPL, Then, EL, Else); in Create()
1053 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() argument
1059 bool HasVar = Var != nullptr; in SwitchStmt()
1069 setConditionVariable(Ctx, Var); in SwitchStmt()
1081 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h63 VariableIdentifier Var; member
80 Var.Decl = decl; in setVar()
81 Var.IsGlobalLV = isGlobalLV; in setVar()
82 Var.Size = size; in setVar()
83 Var.Type = type; in setVar()
84 Var.Length = size / type; in setVar()

12345678