Home
last modified time | relevance | path

Searched refs:LC (Results 1 – 25 of 142) sorted by relevance

123456

/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp47 assert(isLoadCommandWithPayloadString(LC) && in getPayloadString()
51 LC.Payload.size()) in getPayloadString()
138 LoadCommand LC; in buildRPathLoadCommand() local
146 return LC; in buildRPathLoadCommand()
186 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
188 RPaths.insert(getPayloadString(LC)); in processLoadCommands()
205 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
210 LC, *MachOConfig.SharedLibId); in processLoadCommands()
266 return LC.Sections.empty() && in processLoadCommands()
280 for (LoadCommand &LC : Obj.LoadCommands) in dumpSectionToFile()
[all …]
H A DMachOObject.cpp35 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local
36 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
83 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument
94 for (LoadCommand &LC : LoadCommands) { in removeSections()
96 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
102 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
115 for (const LoadCommand &LC : LoadCommands) in removeSections() local
116 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections()
137 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress() local
173 LoadCommand LC; in addSegment() local
[all …]
H A DMachOReader.cpp121 LoadCommand LC; in readLoadCommands() local
138 LC.Sections = std::move(*Sections); in readLoadCommands()
154 LC.Sections = std::move(*Sections); in readLoadCommands()
204 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands()
211 O.LoadCommands.push_back(std::move(LC)); in readLoadCommands()
245 for (auto &LC : O.LoadCommands) in setSymbolInRelocationInfo() local
246 for (std::unique_ptr<Section> &Sec : LC.Sections) in setSymbolInRelocationInfo()
249 for (LoadCommand &LC : O.LoadCommands) in setSymbolInRelocationInfo()
291 const MachO::linkedit_data_command &LC = in readLinkData() local
294 arrayRefFromStringRef(MachOObj.getData().substr(LC.dataoff, LC.datasize)); in readLinkData()
[all …]
H A DMachOLayoutBuilder.cpp27 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds() local
33 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
37 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds()
118 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments()
119 auto &MLC = LC.MachOLoadCommand; in layoutSegments()
153 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutSegments()
193 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments()
215 for (LoadCommand &LC : O.LoadCommands) in layoutRelocations()
216 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutRelocations()
315 for (LoadCommand &LC : O.LoadCommands) { in layoutTail()
[all …]
H A DMachOWriter.cpp111 for (const LoadCommand &LC : O.LoadCommands) in totalSize() local
112 for (const std::unique_ptr<Section> &S : LC.Sections) { in totalSize()
157 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands() local
159 MachO::macho_load_command MLC = LC.MachOLoadCommand; in writeLoadCommands()
167 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
177 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
191 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands()
204 if (!LC.Payload.empty()) in writeLoadCommands()
205 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); in writeLoadCommands()
206 Begin += LC.Payload.size(); in writeLoadCommands()
[all …]
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp160 if (!LC.Content.empty()) { in writePayloadString()
161 OS.write(LC.Content.c_str(), LC.Content.length()); in writePayloadString()
171 return writePayloadString(LC, OS); in writeLoadCommandData()
178 return writePayloadString(LC, OS); in writeLoadCommandData()
185 return writePayloadString(LC, OS); in writeLoadCommandData()
191 return writePayloadString(LC, OS); in writeLoadCommandData()
197 return writePayloadString(LC, OS); in writeLoadCommandData()
203 return writePayloadString(LC, OS); in writeLoadCommandData()
209 return writePayloadString(LC, OS); in writeLoadCommandData()
216 for (const auto &T : LC.Tools) { in writeLoadCommandData()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantFolder.h45 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() local
47 if (LC && RC) { in FoldBinOp()
49 return ConstantExpr::get(Opc, LC, RC); in FoldBinOp()
57 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() local
59 if (LC && RC) { in FoldExactBinOp()
61 return ConstantExpr::get(Opc, LC, RC, in FoldExactBinOp()
70 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
72 if (LC && RC) { in FoldNoWrapBinOp()
99 auto *LC = dyn_cast<Constant>(LHS); in FoldICmp() local
101 if (LC && RC) in FoldICmp()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DTraversalChecker.cpp84 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPreCall() local
85 LC != nullptr; LC = LC->getParent()) in checkPreCall()
101 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPostCall() local
102 LC != nullptr; LC = LC->getParent()) in checkPostCall()
H A DUnreachableCodeChecker.cpp59 const LocationContext *LC = nullptr; in checkEndAnalysis() local
64 LC = P.getLocationContext(); in checkEndAnalysis()
65 if (!LC->inTopFrame()) in checkEndAnalysis()
69 D = LC->getAnalysisDeclContext()->getDecl(); in checkEndAnalysis()
73 C = LC->getAnalysisDeclContext()->getUnoptimizedCFG(); in checkEndAnalysis()
75 PM = &LC->getParentMap(); in checkEndAnalysis()
159 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetFolder.h56 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() local
58 if (LC && RC) { in FoldBinOp()
60 return Fold(ConstantExpr::get(Opc, LC, RC)); in FoldBinOp()
61 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldBinOp()
68 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() local
70 if (LC && RC) { in FoldExactBinOp()
81 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
83 if (LC && RC) { in FoldNoWrapBinOp()
103 auto *LC = dyn_cast<Constant>(LHS); in FoldICmp() local
105 if (LC && RC) in FoldICmp()
[all …]
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp27 MachOYAML::LoadCommand &LC,
207 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
216 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
220 LoadCmd, LC.Sections, Y); in processLoadCommandData()
226 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
230 LoadCmd, LC.Sections, Y); in processLoadCommandData()
247 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
256 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
285 LC.Tools.push_back(BV); in processLoadCommandData()
318 MachOYAML::LoadCommand LC; in dumpLoadCommands() local
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Dppc64-toc.ll21 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2)
30 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2)
40 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2)
53 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2)
64 ; CHECK: .LC{{[0-9]+}}:
66 ; CHECK-NEXT: .LC{{[0-9]+}}:
68 ; CHECK-NEXT: .LC{{[0-9]+}}:
70 ; CHECK-NEXT: .LC{{[0-9]+}}:
H A Dmcm-default.ll20 ; CHECK: addis [[REG1:[0-9]+]], 2, .LC[[TOCNUM:[0-9]+]]@toc@ha
21 ; CHECK: ld [[REG2:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG1]])
23 ; CHECK: addis [[REG3:[0-9]+]], 2, .LC[[TOCNUM]]@toc@ha
24 ; CHECK: ld [[REG4:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG3]])
27 ; CHECK: .LC[[TOCNUM]]:
H A Dmcm-9.ll21 ; CHECK: addis [[REG1:[0-9]+]], 2, .LC[[TOCNUM:[0-9]+]]@toc@ha
22 ; CHECK: ld [[REG2:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG1]])
24 ; CHECK: addis [[REG3:[0-9]+]], 2, .LC[[TOCNUM]]@toc@ha
25 ; CHECK: ld [[REG4:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG3]])
28 ; CHECK: .LC[[TOCNUM]]:
H A Ddsolocal-pic.ll6 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
7 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
24 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
25 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
34 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
35 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
52 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
53 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
H A Ddsolocal-static.ll6 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
7 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
24 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
25 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
34 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
35 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
52 ; CHECK: addis 3, 2, .LC{{.*}}@toc@ha
53 ; CHECK-NEXT: ld 3, .LC{{.*}}@toc@l(3)
H A Dmcm-13.ll21 ; CHECK: addis [[REG1:[0-9]+]], 2, .LC[[TOCNUM:[0-9]+]]@toc@ha
22 ; CHECK: ld [[REG2:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG1]])
24 ; CHECK: addis [[REG3:[0-9]+]], 2, .LC[[TOCNUM]]@toc@ha
25 ; CHECK: ld [[REG4:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG3]])
28 ; CHECK: .LC[[TOCNUM]]:
H A Dmcm-6.ll21 ; CHECK: addis [[REG1:[0-9]+]], 2, .LC[[TOCNUM:[0-9]+]]@toc@ha
22 ; CHECK: ld [[REG2:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG1]])
24 ; CHECK: addis [[REG3:[0-9]+]], 2, .LC[[TOCNUM]]@toc@ha
25 ; CHECK: ld [[REG4:[0-9]+]], .LC[[TOCNUM]]@toc@l([[REG3]])
29 ; CHECK-NEXT: .LC[[TOCNUM]]:
H A Dblockaddress.ll14 ; MEDIUM: addis [[R0:[0-9]+]], 2, .LC[[LC0:[0-9]+]]@toc@ha
15 ; MEDIUM: ld 3, .LC[[LC0]]@toc@l([[R0]])
17 ; MEDIUM: .LC[[LC0]]:
20 ; SMALL: ld 3, .LC[[LC0:[0-9]+]]@toc(2)
22 ; SMALL: .LC[[LC0]]:
/llvm-project-15.0.7/clang/lib/Analysis/
H A DProgramPoint.cpp23 const LocationContext *LC, in getProgramPoint() argument
29 return PreStmt(S, LC, tag); in getProgramPoint()
31 return PostStmt(S, LC, tag); in getProgramPoint()
33 return PreLoad(S, LC, tag); in getProgramPoint()
35 return PostLoad(S, LC, tag); in getProgramPoint()
37 return PreStore(S, LC, tag); in getProgramPoint()
39 return PostLValue(S, LC, tag); in getProgramPoint()
41 return PostStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint()
43 return PreStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint()
/llvm-project-15.0.7/llvm/test/tools/llvm-nm/X86/
H A Ddyldinfo.test5 # RUN: llvm-nm %p/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 | FileCheck --check-prefix=LC-MAIN %s
29 # LC-MAIN: 0000000100000f50 t <redacted LC_MAIN>
30 # LC-MAIN: 0000000100000000 T __mh_execute_header
31 # LC-MAIN: U _printf
32 # LC-MAIN: U dyld_stub_binder
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp128 : Impl(Item, LC) {} in ConstructedObjectKey()
425 SVal InitVal = State->getSVal(Init, LC); in createTemporaryRegionIfNeeded()
605 const LocationContext *LC = FromLC; in areAllObjectsFullyConstructed() local
606 while (LC != ToLC) { in areAllObjectsFullyConstructed()
612 LC = LC->getParent(); in areAllObjectsFullyConstructed()
882 LC = LC->getParent(); in removeDead()
885 const StackFrameContext *SFC = LC ? LC->getStackFrame() : nullptr; in removeDead()
2575 const LocationContext *LC = FromLC; in processEndOfFunction() local
2576 while (LC != ToLC) { in processEndOfFunction()
2589 LC = LC->getParent(); in processEndOfFunction()
[all …]
H A DMemRegion.cpp375 ID.AddPointer(LC); in ProfileRegion()
928 while (LC) { in getStackOrCaptureRegionForDeclContext()
947 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext()
1062 const StackFrameContext *SFC = LC->getStackFrame(); in getParamVarRegion()
1079 if (LC) { in getBlockDataRegion()
1245 LC = LC->getParent(); in getCXXThisRegion()
1246 D = dyn_cast<CXXMethodDecl>(LC->getDecl()); in getCXXThisRegion()
1617 OriginalVR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions()
1620 if (LC) { in getCaptureRegions()
1621 VR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions()
[all …]
H A DEnvironment.cpp230 const LocationContext *LC = I.first.getLocationContext(); in printJson() local
231 if (FoundContexts.count(LC) == 0) { in printJson()
233 LCtx = LC; in printJson()
234 for (const LocationContext *LCI = LC; LCI; LCI = LCI->getParent()) in printJson()
246 LCtx->printJson(Out, NL, Space, IsDot, [&](const LocationContext *LC) { in printJson() argument
255 if (I->first.getLocationContext() != LC) in printJson()
272 if (I->first.getLocationContext() != LC) in printJson()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A D2009-01-19-fmod-constant-float-specials.ll9 @"\01LC" = internal constant [4 x i8] c"%f\0A\00" ; <[4 x i8]*> [#uses=1]
23 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
44 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
63 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
82 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
101 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
120 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
139 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
158 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
177 …%5 = call i32 (i8*, ...) @printf(i8* getelementptr ([4 x i8], [4 x i8]* @"\01LC", i32 0, i32 0), d…
[all …]

123456