Home
last modified time | relevance | path

Searched refs:mh (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/firmware-corefile/
H A Dcreate-empty-corefile.cpp219 if (::fread(&mh, 1, sizeof(mh), f) != sizeof(mh)) { in get_uuid_from_binary()
223 if (mh.cputype != CPU_TYPE_X86_64 && mh.cputype != CPU_TYPE_ARM64) { in get_uuid_from_binary()
233 cputype = mh.cputype; in get_uuid_from_binary()
237 if (::fread(&mh, 1, sizeof(mh), f) != sizeof(mh)) { in get_uuid_from_binary()
241 if (mh.cputype != CPU_TYPE_X86_64 && mh.cputype != CPU_TYPE_ARM64) { in get_uuid_from_binary()
251 cputype = mh.cputype; in get_uuid_from_binary()
365 mh.magic = MH_MAGIC_64; in main()
366 mh.cputype = cputype; in main()
369 mh.filetype = MH_CORE; in main()
372 mh.flags = 0; in main()
[all …]
/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/kern-ver-str/
H A Dcreate-empty-corefile.cpp172 struct mach_header mh; in get_uuid_from_binary() local
173 if (::fread (&mh, 1, sizeof (mh), f) != sizeof (mh)) in get_uuid_from_binary()
185 num_of_load_cmds = mh.ncmds; in get_uuid_from_binary()
191 struct mach_header_64 mh; in get_uuid_from_binary() local
192 if (::fread (&mh, 1, sizeof (mh), f) != sizeof (mh)) in get_uuid_from_binary()
204 num_of_load_cmds = mh.ncmds; in get_uuid_from_binary()
286 struct mach_header_64 mh; in main() local
287 mh.magic = MH_MAGIC_64; in main()
290 mh.filetype = MH_CORE; in main()
293 mh.flags = 0; in main()
[all …]
/llvm-project-15.0.7/lldb/test/API/macosx/unregistered-macho/
H A Dmain.c13 struct mach_header_64 mh; in main() local
14 mh.magic = MH_MAGIC_64; in main()
15 mh.cputype = CPU_TYPE_ARM64; in main()
16 mh.cpusubtype = 0; in main()
17 mh.filetype = MH_EXECUTE; in main()
18 mh.ncmds = 2; in main()
19 mh.sizeofcmds = size_of_load_cmds; in main()
20 mh.flags = MH_NOUNDEFS | MH_DYLDLINK | MH_TWOLEVEL | MH_PIE; in main()
22 memcpy(p, &mh, sizeof(mh)); in main()
23 p += sizeof(mh); in main()
/llvm-project-15.0.7/lldb/test/API/macosx/corefile-default-ptrauth/
H A Dcreate-corefile.c103 struct mach_header_64 mh; in main() local
104 mh.magic = 0xfeedfacf; in main()
105 mh.cputype = CPU_TYPE_ARM64; in main()
106 mh.cpusubtype = CPU_SUBTYPE_ARM64E; in main()
107 mh.filetype = MH_CORE; in main()
108 mh.ncmds = 3; // LC_THREAD, LC_SEGMENT_64, LC_NOTE in main()
110 mh.flags = 0; in main()
111 mh.reserved = 0; in main()
113 fwrite(&mh, sizeof (mh), 1, out); in main()
123 seg.fileoff = sizeof (mh) + size_of_thread_cmd + sizeof(seg) + sizeof(lcnote); in main()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DMachO.h1029 sys::swapByteOrder(mh.magic); in swapStruct()
1034 sys::swapByteOrder(mh.cputype); in swapStruct()
1036 sys::swapByteOrder(mh.offset); in swapStruct()
1037 sys::swapByteOrder(mh.size); in swapStruct()
1038 sys::swapByteOrder(mh.align); in swapStruct()
1044 sys::swapByteOrder(mh.offset); in swapStruct()
1045 sys::swapByteOrder(mh.size); in swapStruct()
1046 sys::swapByteOrder(mh.align); in swapStruct()
1051 sys::swapByteOrder(mh.magic); in swapStruct()
1055 sys::swapByteOrder(mh.ncmds); in swapStruct()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/
H A Dint-mul-01.ll9 ; CHECK: mh %r2, 0(%r3)
20 ; CHECK: mh %r2, 4094(%r3)
58 ; CHECK: mh %r2, 0(%r3)
96 ; CHECK: mh %r2, 0(%r3)
108 ; CHECK: mh %r2, 4094({{%r4,%r3|%r3,%r4}})
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_mac.cpp75 const struct mach_header_64 *mh = (struct mach_header_64 *)info.dli_fbase; in AsanApplyToGlobals() local
77 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals() local
83 mh, in AsanApplyToGlobals()
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
H A DDynamicLoaderDarwin.cpp392 StructuredData::Dictionary *mh = in JSONImageInformationIntoImageInfo() local
395 mh->GetValueForKey("magic")->GetAsInteger()->GetValue(); in JSONImageInformationIntoImageInfo()
397 mh->GetValueForKey("cputype")->GetAsInteger()->GetValue(); in JSONImageInformationIntoImageInfo()
399 mh->GetValueForKey("cpusubtype")->GetAsInteger()->GetValue(); in JSONImageInformationIntoImageInfo()
401 mh->GetValueForKey("filetype")->GetAsInteger()->GetValue(); in JSONImageInformationIntoImageInfo()
442 if (mh->HasKey("flags")) in JSONImageInformationIntoImageInfo()
444 mh->GetValueForKey("flags")->GetAsInteger()->GetValue(); in JSONImageInformationIntoImageInfo()
448 if (mh->HasKey("ncmds")) in JSONImageInformationIntoImageInfo()
450 mh->GetValueForKey("ncmds")->GetAsInteger()->GetValue(); in JSONImageInformationIntoImageInfo()
454 if (mh->HasKey("sizeofcmds")) in JSONImageInformationIntoImageInfo()
[all …]
/llvm-project-15.0.7/libunwind/src/
H A DUnwindCursor.hpp99 static pint_t findFDE(pint_t mh, pint_t pc);
101 static void removeAllIn(pint_t mh);
109 pint_t mh; member
152 typename A::pint_t DwarfFDECache<A>::findFDE(pint_t mh, pint_t pc) { in findFDE() argument
156 if ((mh == p->mh) || (mh == kSearchAll)) { in findFDE()
168 void DwarfFDECache<A>::add(pint_t mh, pint_t ip_start, pint_t ip_end, in add() argument
184 _bufferUsed->mh = mh; in add()
200 void DwarfFDECache<A>::removeAllIn(pint_t mh) { in removeAllIn() argument
204 if (s->mh != mh) { in removeAllIn()
217 removeAllIn((pint_t) mh); in dyldUnloadHook()
[all …]
H A Dlibunwind_ext.h52 unw_word_t ip_start, unw_word_t ip_end, unw_word_t fde, unw_word_t mh));
H A DAddressSpace.hpp59 const struct mach_header* mh; member
513 info.dso_base = (uintptr_t)dyldInfo.mh; in findUnwindSections()
H A Dlibunwind.cpp277 unw_word_t ip_start, unw_word_t ip_end, unw_word_t fde, unw_word_t mh)) { in _LIBUNWIND_WEAK_ALIAS()
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/
H A DDynamicLoaderDarwinKernel.cpp658 llvm::MachO::mach_header mh; in ReadMemoryModule() local
660 if (ReadMachHeader(m_load_address, process, mh)) { in ReadMemoryModule()
661 if (mh.magic == llvm::MachO::MH_CIGAM || mh.magic == llvm::MachO::MH_MAGIC) in ReadMemoryModule()
662 size_to_read = sizeof(llvm::MachO::mach_header) + mh.sizeofcmds; in ReadMemoryModule()
663 if (mh.magic == llvm::MachO::MH_CIGAM_64 || in ReadMemoryModule()
664 mh.magic == llvm::MachO::MH_MAGIC_64) in ReadMemoryModule()
665 size_to_read = sizeof(llvm::MachO::mach_header_64) + mh.sizeofcmds; in ReadMemoryModule()
H A DDynamicLoaderDarwinKernel.h274 ReadMachHeader(lldb::addr_t addr, lldb_private::Process *process, llvm::MachO::mach_header &mh,
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.interp.f16.ll113 %mh = bitcast i16 %my to half
114 %res = fadd half %p2_0, %mh
176 %mh = bitcast i16 %my to half
177 %res = fadd half %p2_0, %mh
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DRNBRemote.cpp5965 mach_header &mh) { in MachHeaderIsMainExecutable() argument
5971 DNBProcessMemoryRead(pid, mach_header_addr, sizeof(mh), &mh); in MachHeaderIsMainExecutable()
5972 if (bytes_read == sizeof(mh)) { in MachHeaderIsMainExecutable()
5979 pid, addr_size, mach_header_addr, mh.magic, mh.cputype, mh.cpusubtype, in MachHeaderIsMainExecutable()
5980 mh.filetype, mh.ncmds, mh.sizeofcmds, mh.flags); in MachHeaderIsMainExecutable()
5981 if ((addr_size == 4 && mh.magic == MH_MAGIC) || in MachHeaderIsMainExecutable()
5982 (addr_size == 8 && mh.magic == MH_MAGIC_64)) { in MachHeaderIsMainExecutable()
5983 if (mh.filetype == MH_EXECUTE) { in MachHeaderIsMainExecutable()
6061 mh)) in GetMachHeaderForMainExecutable()
6101 bzero(&mh, sizeof(mh)); in GetMachHeaderForMainExecutable()
[all …]
/llvm-project-15.0.7/lld/COFF/
H A DDLL.cpp677 auto *mh = make<NullChunk>(8); in create() local
678 mh->setAlignment(8); in create()
679 moduleHandles.push_back(mh); in create()
682 dir->moduleHandle = mh; in create()
/llvm-project-15.0.7/lldb/tools/compact-unwind/
H A Dcompact-unwind-dumper.c113 struct mach_header mh; in scan_macho_load_commands() local
114 memcpy(&mh, offset, sizeof(struct mach_header)); in scan_macho_load_commands()
125 baton->cputype = mh.cputype; in scan_macho_load_commands()
130 while (cur_cmd < mh.ncmds && in scan_macho_load_commands()
131 (offset - start_of_load_commands) < mh.sizeofcmds) { in scan_macho_load_commands()
/llvm-project-15.0.7/llvm/test/MC/SystemZ/
H A Dinsn-good.s11652 #CHECK: mh %r0, 0 # encoding: [0x4c,0x00,0x00,0x00]
11653 #CHECK: mh %r0, 4095 # encoding: [0x4c,0x00,0x0f,0xff]
11654 #CHECK: mh %r0, 0(%r1) # encoding: [0x4c,0x00,0x10,0x00]
11655 #CHECK: mh %r0, 0(%r15) # encoding: [0x4c,0x00,0xf0,0x00]
11660 mh %r0, 0
11661 mh %r0, 4095
11662 mh %r0, 0(%r1)
11663 mh %r0, 0(%r15)
11664 mh %r0, 4095(%r1,%r15)
11665 mh %r0, 4095(%r15,%r1)
[all …]
H A Dinsn-bad.s4332 #CHECK: mh %r0, -1
4334 #CHECK: mh %r0, 4096
4336 mh %r0, -1
4337 mh %r0, 4096
/llvm-project-15.0.7/llvm/test/Transforms/SLPVectorizer/X86/
H A Dhorizontal-minmax.ll1406 %mh = tail call i8 @llvm.umin.i8(i8 %mfeba, i8 %mdc98)
1407 %m = tail call i8 @llvm.umin.i8(i8 %mh, i8 %ml)
/llvm-project-15.0.7/llvm/test/MC/Disassembler/SystemZ/
H A Dinsns.txt11439 # CHECK: mh %r0, 0
11442 # CHECK: mh %r0, 4095
11445 # CHECK: mh %r0, 0(%r1)
11448 # CHECK: mh %r0, 0(%r15)
11451 # CHECK: mh %r0, 4095(%r1,%r15)
11454 # CHECK: mh %r0, 4095(%r15,%r1)
11457 # CHECK: mh %r15, 0
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td1398 defm MH : BinaryRXPair<"mh", 0x4C, 0xE37C, mul, GR32, asextloadi16, 2>;