Searched refs:LC (Results 1 - 25 of 96) sorted by relevance

1234

/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DPrettyStackTraceLocationContext.h31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { argument
H A DEnvironment.cpp230 const LocationContext *LC = I.first.getLocationContext(); local
231 if (FoundContexts.count(LC) == 0) {
233 LCtx = LC;
234 for (const LocationContext *LCI = LC; LCI; LCI = LCI->getParent())
246 LCtx->printJson(Out, NL, Space, IsDot, [&](const LocationContext *LC) {
255 if (I->first.getLocationContext() != LC)
272 if (I->first.getLocationContext() != LC)
H A DExprEngine.cpp128 const LocationContext *LC)
129 : Impl(Item, LC) {}
321 ProgramStateRef State, const LocationContext *LC,
329 SVal InitValWithAdjustments = State->getSVal(InitWithAdjustments, LC);
385 if (std::optional<SVal> V = getObjectUnderConstruction(State, MT, LC)) {
386 State = finishObjectConstruction(State, MT, LC);
387 State = State->BindExpr(Result, LC, *V);
396 TR = MRMgr.getCXXTempObjectRegion(Init, LC);
400 TR = MRMgr.getCXXTempObjectRegion(Init, LC);
418 currBldrCtx->blockCount(), LC, tru
127 ConstructedObjectKey(const ConstructionContextItem &Item, const LocationContext *LC) argument
320 createTemporaryRegionIfNeeded( ProgramStateRef State, const LocationContext *LC, const Expr *InitWithAdjustments, const Expr *Result, const SubRegion **OutRegionWithAdjustments) argument
557 addObjectUnderConstruction(ProgramStateRef State, const ConstructionContextItem &Item, const LocationContext *LC, SVal V) argument
598 getObjectUnderConstruction(ProgramStateRef State, const ConstructionContextItem &Item, const LocationContext *LC) argument
607 finishObjectConstruction(ProgramStateRef State, const ConstructionContextItem &Item, const LocationContext *LC) argument
615 elideDestructor(ProgramStateRef State, const CXXBindTemporaryExpr *BTE, const LocationContext *LC) argument
625 cleanupElidedDestructor(ProgramStateRef State, const CXXBindTemporaryExpr *BTE, const LocationContext *LC) argument
633 isDestructorElided(ProgramStateRef State, const CXXBindTemporaryExpr *BTE, const LocationContext *LC) argument
643 const LocationContext *LC = FromLC; local
997 shouldRemoveDeadBindings(AnalysisManager &AMgr, const Stmt *S, const ExplodedNode *Pred, const LocationContext *LC) argument
1023 removeDead(ExplodedNode *Pred, ExplodedNodeSet &Out, const Stmt *ReferenceStmt, const LocationContext *LC, const Stmt *DiagnosticStmt, ProgramPoint::Kind K) argument
1155 const LocationContext *LC = Pred->getLocationContext(); local
1548 const LocationContext *LC = Pred->getLocationContext(); local
1627 const LocationContext *LC = Pred->getLocationContext(); local
1652 const LocationContext *LC = Node->getLocationContext(); local
2651 setWhetherHasMoreIteration( ProgramStateRef State, const ObjCForCollectionStmt *O, const LocationContext *LC, bool HasMoreIteraton) argument
2659 removeIterationState(ProgramStateRef State, const ObjCForCollectionStmt *O, const LocationContext *LC) argument
2666 hasMoreIteration(ProgramStateRef State, const ObjCForCollectionStmt *O, const LocationContext *LC) argument
2898 const LocationContext *LC = FromLC; local
3554 const LocationContext *LC = Pred->getLocationContext(); local
[all...]
H A DExplodedGraph.cpp308 findTopAutosynthesizedParentContext(const LocationContext *LC) { argument
309 assert(LC->getAnalysisDeclContext()->isBodyAutosynthesized());
310 const LocationContext *ParentLC = LC->getParent();
313 LC = ParentLC;
314 ParentLC = LC->getParent();
317 return LC;
324 const LocationContext *LC = getLocationContext(); local
325 if (LC->getAnalysisDeclContext()->isBodyAutosynthesized()) {
327 return cast<StackFrameContext>(findTopAutosynthesizedParentContext(LC))
H A DMemRegion.cpp370 const LocationContext *LC,
375 ID.AddPointer(LC);
381 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion());
937 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, argument
940 while (LC) {
941 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) {
945 if (const auto *BC = dyn_cast<BlockInvocationContext>(LC)) {
959 LC = LC->getParent();
965 const LocationContext *LC) {
368 ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockCodeRegion *BC, const LocationContext *LC, unsigned BlkCount, const MemRegion *sReg) argument
964 getVarRegion(const VarDecl *D, const LocationContext *LC) argument
1072 getParamVarRegion(const Expr *OriginExpr, unsigned Index, const LocationContext *LC) argument
1081 getBlockDataRegion(const BlockCodeRegion *BC, const LocationContext *LC, unsigned blockCount) argument
1119 getCompoundLiteralRegion(const CompoundLiteralExpr *CL, const LocationContext *LC) argument
1193 getCXXTempObjectRegion(Expr const *E, LocationContext const *LC) argument
1249 getCXXThisRegion(QualType thisPointerTy, const LocationContext *LC) argument
1270 getAllocaRegion(const Expr *E, unsigned cnt, const LocationContext *LC) argument
[all...]
/openbsd-current/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp33 using LoadCommandPred = std::function<bool(const LoadCommand &LC)>;
36 static bool isLoadCommandWithPayloadString(const LoadCommand &LC) { argument
39 return LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH ||
40 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_ID_DYLIB ||
41 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_DYLIB ||
42 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_WEAK_DYLIB;
46 static StringRef getPayloadString(const LoadCommand &LC) { argument
47 assert(isLoadCommandWithPayloadString(LC) &&
50 return StringRef(reinterpret_cast<const char *>(LC.Payload.data()),
51 LC
126 updateLoadCommandPayloadString(LoadCommand &LC, StringRef S) argument
138 LoadCommand LC; local
[all...]
H A DMachOObject.cpp44 LoadCommand &LC = LoadCommands[Index]; local
45 switch (LC.MachOLoadCommand.load_command_data.cmd) {
50 if (StringRef(LC.MachOLoadCommand.segment_command_data.segname) ==
55 if (StringRef(LC.MachOLoadCommand.segment_command_64_data.segname) ==
95 [&](const LoadCommand &LC) { return !ToRemove(LC); });
106 for (LoadCommand &LC : LoadCommands) {
108 std::begin(LC.Sections), std::end(LC.Sections),
110 for (auto I = LC
185 LoadCommand LC; local
[all...]
H A DMachOLayoutBuilder.cpp27 for (const LoadCommand &LC : O.LoadCommands) {
28 const MachO::macho_load_command &MLC = LC.MachOLoadCommand;
33 sizeof(MachO::section) * LC.Sections.size();
37 sizeof(MachO::section_64) * LC.Sections.size();
44 Size += sizeof(MachO::LCStruct) + LC.Payload.size(); \
118 for (LoadCommand &LC : O.LoadCommands) {
119 auto &MLC = LC.MachOLoadCommand;
144 assert(LC.Sections.empty() && "__LINKEDIT segment has sections");
153 for (std::unique_ptr<Section> &Sec : LC.Sections) {
193 sizeof(MachO::section) * LC
[all...]
H A DMachOReader.cpp121 LoadCommand LC; local
138 LC.Sections = std::move(*Sections);
154 LC.Sections = std::move(*Sections);
189 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \
192 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \
194 LC.Payload = ArrayRef<uint8_t>( \
202 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr,
205 MachO::swapStruct(LC.MachOLoadCommand.load_command_data);
207 LC.Payload = ArrayRef<uint8_t>(
214 O.LoadCommands.push_back(std::move(LC));
298 const MachO::linkedit_data_command &LC = local
[all...]
H A DMachOWriter.cpp112 for (const LoadCommand &LC : O.LoadCommands)
113 for (const std::unique_ptr<Section> &S : LC.Sections) {
158 for (const LoadCommand &LC : O.LoadCommands) {
160 MachO::macho_load_command MLC = LC.MachOLoadCommand;
168 for (const std::unique_ptr<Section> &Sec : LC.Sections)
178 for (const std::unique_ptr<Section> &Sec : LC.Sections)
185 assert(sizeof(MachO::LCStruct) + LC.Payload.size() == \
191 if (!LC.Payload.empty()) \
192 memcpy(Begin, LC.Payload.data(), LC
[all...]
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DTraversalChecker.cpp84 for (const LocationContext *LC = C.getLocationContext()->getParent();
85 LC != nullptr; LC = LC->getParent())
101 for (const LocationContext *LC = C.getLocationContext()->getParent();
102 LC != nullptr; LC = LC->getParent())
H A DUnreachableCodeChecker.cpp60 const LocationContext *LC = nullptr; local
65 LC = P.getLocationContext();
66 if (!LC->inTopFrame())
70 D = LC->getAnalysisDeclContext()->getDecl();
74 C = LC->getAnalysisDeclContext()->getUnoptimizedCFG();
76 PM = &LC->getParentMap();
160 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC);
H A DAnalyzerStatsChecker.cpp50 const LocationContext *LC = GraphRoot->getLocation().getLocationContext(); local
52 const Decl *D = LC->getDecl();
70 C = LC->getCFG();
134 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC));
H A DMIGChecker.cpp149 const LocationContext *LC = C.getLocationContext(); local
150 assert(LC && "Unknown location context");
154 while (LC) {
155 SFC = LC->getStackFrame();
156 LC = SFC->getParent();
/openbsd-current/gnu/llvm/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp125 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, argument
131 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, argument
135 for (const auto &Sec : LC.Sections) {
148 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) {
150 for (const auto &Sec : LC.Sections) {
162 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { argument
164 if (!LC.Content.empty()) {
165 OS.write(LC.Content.c_str(), LC.Content.length());
166 BytesWritten = LC
147 writeLoadCommandData( MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
172 writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
179 writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
186 writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
193 writeLoadCommandData( MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
199 writeLoadCommandData( MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
205 writeLoadCommandData( MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
211 writeLoadCommandData( MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
217 writeLoadCommandData( MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) argument
703 writeFatArch(MachOYAML::FatArch &LC, raw_ostream &OS) argument
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRuntimeLibcallSignatures.h26 RTLIB::Libcall LC,
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/
H A DConstantFolder.h45 auto *LC = dyn_cast<Constant>(LHS); variable
47 if (LC && RC) {
49 return ConstantExpr::get(Opc, LC, RC);
50 return ConstantFoldBinaryInstruction(Opc, LC, RC);
57 auto *LC = dyn_cast<Constant>(LHS); variable
59 if (LC && RC) {
61 return ConstantExpr::get(Opc, LC, RC,
63 return ConstantFoldBinaryInstruction(Opc, LC, RC);
70 auto *LC = dyn_cast<Constant>(LHS); variable
72 if (LC
99 auto *LC = dyn_cast<Constant>(LHS); variable
[all...]
/openbsd-current/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetFolder.h56 auto *LC = dyn_cast<Constant>(LHS); variable
58 if (LC && RC) {
60 return Fold(ConstantExpr::get(Opc, LC, RC));
61 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL);
68 auto *LC = dyn_cast<Constant>(LHS); variable
70 if (LC && RC) {
73 Opc, LC, RC, IsExact ? PossiblyExactOperator::IsExact : 0));
74 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL);
81 auto *LC = dyn_cast<Constant>(LHS); variable
83 if (LC
103 auto *LC = dyn_cast<Constant>(LHS); variable
[all...]
/openbsd-current/gnu/llvm/clang/lib/Analysis/
H A DProgramPoint.cpp23 const LocationContext *LC,
29 return PreStmt(S, LC, tag);
31 return PostStmt(S, LC, tag);
33 return PreLoad(S, LC, tag);
35 return PostLoad(S, LC, tag);
37 return PreStore(S, LC, tag);
39 return PostLValue(S, LC, tag);
41 return PostStmtPurgeDeadSymbols(S, LC, tag);
43 return PreStmtPurgeDeadSymbols(S, LC, tag);
22 getProgramPoint(const Stmt *S, ProgramPoint::Kind K, const LocationContext *LC, const ProgramPointTag *tag) argument
H A DAnalysisDeclContext.cpp168 for (const auto &LC : parent->captures()) {
169 if (!LC.capturesVariable())
172 ValueDecl *VD = LC.getCapturedVar();
463 const LocationContext *LC = this; local
464 while (LC) {
465 if (const auto *SFC = dyn_cast<StackFrameContext>(LC))
467 LC = LC->getParent();
476 bool LocationContext::isParentOf(const LocationContext *LC) const {
478 const LocationContext *Parent = LC
700 LocationContext *LC = &*I; local
[all...]
/openbsd-current/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp27 MachOYAML::LoadCommand &LC,
68 memcpy((void *)&(LC.Data.LCStruct##_data), LoadCmd.Ptr, \
71 MachO::swapStruct(LC.Data.LCStruct##_data); \
73 processLoadCommandData<MachO::LCStruct>(LC, LoadCmd, *Y.get())) \
209 MachOYAML::LoadCommand &LC,
218 MachOYAML::LoadCommand &LC,
222 LoadCmd, LC.Sections, Y);
228 MachOYAML::LoadCommand &LC,
232 LoadCmd, LC.Sections, Y);
237 readString(MachOYAML::LoadCommand &LC, argument
208 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
217 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
227 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
248 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
257 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
266 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
275 processLoadCommandData( MachOYAML::LoadCommand &LC, const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, MachOYAML::Object &Y) argument
320 MachOYAML::LoadCommand LC; local
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Object/
H A DMachOUniversalWriter.cpp42 for (const auto &LC : O.load_commands()) {
43 if (LC.C.cmd != (Is64Bit ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT))
47 (Is64Bit ? O.getSegment64LoadCommand(LC).nsects
48 : O.getSegmentLoadCommand(LC).nsects);
52 (Is64Bit ? O.getSection64(LC, SI).align
53 : O.getSection(LC, SI).align));
57 countTrailingZeros(Is64Bit ? O.getSegment64LoadCommand(LC).vmaddr
58 : O.getSegmentLoadCommand(LC).vmaddr);
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_format_interceptor_test.cpp43 static const unsigned LC = sizeof(wchar_t); variable
121 testScanf("%lc", 1, LC);
137 testScanf("%10ls", 1, 11 * LC);
138 testScanf("%10lc", 1, 10 * LC);
/openbsd-current/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h135 virtual Loc getLValueVar(const VarDecl *VD, const LocationContext *LC) { argument
136 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC));
140 const LocationContext *LC) {
141 return loc::MemRegionVal(MRMgr.getCompoundLiteralRegion(CL, LC));
139 getLValueCompoundLiteral(const CompoundLiteralExpr *CL, const LocationContext *LC) argument
/openbsd-current/gnu/llvm/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.h64 RTLIB::Libcall LC) const;

Completed in 476 milliseconds

1234