Home
last modified time | relevance | path

Searched refs:mb (Results 1 – 25 of 68) sorted by relevance

123

/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Ddn_expand.cpp41 char unsigned *mb = msg; in testComp() local
43 char unsigned **pb = (char unsigned **)mb; in testComp()
46 mb += 64; in testComp()
47 char unsigned **pe = (char unsigned **)mb; in testComp()
49 char unsigned *n1 = mb; in testComp()
50 int res = dn_comp("llvm.org", mb, me - mb, pb, pe); in testComp()
52 mb += res; in testComp()
54 char unsigned *n2 = mb; in testComp()
55 res = dn_comp("lab.llvm.org", mb, me - mb, pb, pe); in testComp()
57 mb += res; in testComp()
/llvm-project-15.0.7/lld/MachO/
H A DObjC.cpp23 template <class LP> static bool objectHasObjCSection(MemoryBufferRef mb) { in objectHasObjCSection() argument
27 reinterpret_cast<const typename LP::mach_header *>(mb.getBufferStart()); in objectHasObjCSection()
51 static bool objectHasObjCSection(MemoryBufferRef mb) { in objectHasObjCSection() argument
53 return ::objectHasObjCSection<LP64>(mb); in objectHasObjCSection()
55 return ::objectHasObjCSection<ILP32>(mb); in objectHasObjCSection()
58 bool macho::hasObjCSection(MemoryBufferRef mb) { in hasObjCSection() argument
59 switch (identify_magic(mb.getBuffer())) { in hasObjCSection()
61 return objectHasObjCSection(mb); in hasObjCSection()
63 return check(isBitcodeContainingObjCCategory(mb)); in hasObjCSection()
H A DInputFiles.h119 MemoryBufferRef mb; variable
136 InputFile(Kind kind, MemoryBufferRef mb, bool lazy = false)
137 : mb(mb), id(idCount++), lazy(lazy), fileKind(kind), in mb() function
138 name(mb.getBufferIdentifier()) {} in mb()
158 ObjFile(MemoryBufferRef mb, uint32_t modTime, StringRef archiveName,
203 OpaqueFile(MemoryBufferRef mb, StringRef segName, StringRef sectName);
217 explicit DylibFile(MemoryBufferRef mb, DylibFile *umbrella,
224 void parseLoadCommands(MemoryBufferRef mb);
299 explicit BitcodeFile(MemoryBufferRef mb, StringRef archiveName,
H A DInputFiles.cpp119 const char *hdr = input->mb.getBufferStart(); in getPlatformInfos()
205 std::unique_ptr<MemoryBuffer> &mb = *mbOrErr; in readFile() local
206 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile()
1032 : InputFile(OpaqueKind, mb) { in OpaqueFile()
1034 ArrayRef<uint8_t> data = {buf, mb.getBufferSize()}; in OpaqueFile()
1843 void DylibFile::parseLoadCommands(MemoryBufferRef mb) { in parseLoadCommands() argument
2168 switch (identify_magic(mb.getBuffer())) { in loadArchiveMember()
2186 if (!mb) in fetch()
2187 return mb.takeError(); in fetch()
2265 std::string path = mb.getBufferIdentifier().str(); in BitcodeFile()
[all …]
/llvm-project-15.0.7/llvm/test/Bindings/OCaml/
H A Dbitreader.ml31 let mb = Llvm.MemoryBuffer.of_file fn in
33 let m = Llvm_bitreader.parse_bitcode context mb in
36 Llvm.MemoryBuffer.dispose mb;
43 let mb = Llvm.MemoryBuffer.of_file (fn ^ ".bogus") in
44 Llvm.MemoryBuffer.dispose mb;
52 let mb = Llvm.MemoryBuffer.of_file fn in
54 Llvm_bitreader.get_module context mb
56 Llvm.MemoryBuffer.dispose mb;
72 let mb = Llvm.MemoryBuffer.of_file fn in
74 Llvm_bitreader.get_module context mb
[all …]
H A Ddiagnostic_handler.ml34 let mb = Llvm.MemoryBuffer.of_file fn in
39 Llvm_bitreader.get_module context mb
41 Llvm.MemoryBuffer.dispose mb;
/llvm-project-15.0.7/lld/ELF/
H A DScriptParser.h20 void readLinkerScript(MemoryBufferRef mb);
23 void readVersionScript(MemoryBufferRef mb);
25 void readDynamicList(MemoryBufferRef mb);
28 void readDefsym(StringRef name, MemoryBufferRef mb);
H A DScriptLexer.cpp93 ScriptLexer::ScriptLexer(MemoryBufferRef mb) { tokenize(mb); } in ScriptLexer() argument
108 void ScriptLexer::tokenize(MemoryBufferRef mb) { in tokenize() argument
110 mbs.push_back(mb); in tokenize()
111 StringRef s = mb.getBuffer(); in tokenize()
126 StringRef filename = mb.getBufferIdentifier(); in tokenize()
324 for (MemoryBufferRef mb : mbs) in getCurrentMB() local
325 if (encloses(mb.getBuffer(), tokens[pos - 1])) in getCurrentMB()
326 return mb; in getCurrentMB()
H A DInputFiles.cpp68 StringRef filename = mb.getBufferIdentifier(); in getELFKind()
75 if (!mb.getBuffer().startswith(ElfMagic)) in getELFKind()
82 size_t bufSize = mb.getBuffer().size(); in getELFKind()
93 : mb(m), groupId(nextGroupId), fileKind(k) { in InputFile()
300 ELFFileBase::ELFFileBase(Kind k, MemoryBufferRef mb) : InputFile(k, mb) { in ELFFileBase() argument
301 ekind = getELFKind(mb, ""); in ELFFileBase()
1219 switch (getELFKind(mb, archiveName)) { in isNonCommonDef()
1563 : InputFile(BitcodeKind, mb) { in BitcodeFile()
1581 MemoryBufferRef mbref(mb.getBuffer(), name); in BitcodeFile()
1716 switch (getELFKind(mb, archiveName)) { in createObjFile()
[all …]
/llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/
H A Dwchar_h.pass.cpp42 mbstate_t mb = {}; in main() local
52 ((void)mb); // Prevent unused warning in main()
114 ASSERT_SAME_TYPE(int, decltype(mbsinit(&mb))); in main()
115 ASSERT_SAME_TYPE(size_t, decltype(mbrlen("", s, &mb))); in main()
116 ASSERT_SAME_TYPE(size_t, decltype(mbrtowc(ws, "", s, &mb))); in main()
117 ASSERT_SAME_TYPE(size_t, decltype(wcrtomb(ns, L' ', &mb))); in main()
118 ASSERT_SAME_TYPE(size_t, decltype(mbsrtowcs(ws, (const char**)0, s, &mb))); in main()
119 ASSERT_SAME_TYPE(size_t, decltype(wcsrtombs(ns, (const wchar_t**)0, s, &mb))); in main()
/llvm-project-15.0.7/libcxx/test/std/strings/c.strings/
H A Dcwchar.pass.cpp39 std::mbstate_t mb = {}; in main() local
51 ((void)mb); // Prevent unused warning in main()
114 ASSERT_SAME_TYPE(int, decltype(std::mbsinit(&mb))); in main()
115 ASSERT_SAME_TYPE(std::size_t, decltype(std::mbrlen("", s, &mb))); in main()
116 ASSERT_SAME_TYPE(std::size_t, decltype(std::mbrtowc(ws, "", s, &mb))); in main()
117 ASSERT_SAME_TYPE(std::size_t, decltype(std::wcrtomb(ns, L' ', &mb))); in main()
118 ASSERT_SAME_TYPE(std::size_t, decltype(std::mbsrtowcs(ws, (const char**)0, s, &mb))); in main()
119 ASSERT_SAME_TYPE(std::size_t, decltype(std::wcsrtombs(ns, (const wchar_t**)0, s, &mb))); in main()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Davx512dq-mask-op.ll41 %mb = bitcast i8 %y to <8 x i1>
42 %mc = and <8 x i1> %ma, %mb
43 %md = xor <8 x i1> %ma, %mb
61 %mb = load <8 x i1>, ptr %y
62 %mc = and <8 x i1> %ma, %mb
63 %md = xor <8 x i1> %ma, %mb
H A Davx512bw-mask-op.ll87 %mb = bitcast i32 %y to <32 x i1>
88 %mc = and <32 x i1> %ma, %mb
89 %md = xor <32 x i1> %ma, %mb
106 %mb = load <32 x i1>, ptr %y
107 %mc = and <32 x i1> %ma, %mb
108 %md = xor <32 x i1> %ma, %mb
124 %mc = and <64 x i1> %ma, %mb
125 %md = xor <64 x i1> %ma, %mb
142 %mb = load <64 x i1>, ptr %y
143 %mc = and <64 x i1> %ma, %mb
[all …]
/llvm-project-15.0.7/lld/wasm/
H A DInputFiles.h54 StringRef getName() const { return mb.getBufferIdentifier(); } in getName()
72 : mb(m), fileKind(k), live(!config->gcSections) {} in InputFile()
76 MemoryBufferRef mb; variable
185 inline bool isBitcode(MemoryBufferRef mb) { in isBitcode() argument
186 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
191 InputFile *createObjectFile(MemoryBufferRef mb, StringRef archiveName = "",
H A DInputFiles.cpp66 std::unique_ptr<MemoryBuffer> &mb = *mbOrErr; in readFile() local
67 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile()
77 file_magic magic = identify_magic(mb.getBuffer()); in createObjectFile()
80 CHECK(createBinary(mb), mb.getBufferIdentifier()); in createObjectFile()
83 return make<SharedFile>(mb); in createObjectFile()
84 return make<ObjFile>(mb, archiveName); in createObjectFile()
90 std::string name = mb.getBufferIdentifier().str(); in createObjectFile()
683 file = CHECK(Archive::create(mb), toString(this)); in parse()
708 MemoryBufferRef mb = in addMember() local
757 std::string path = mb.getBufferIdentifier().str(); in BitcodeFile()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-ar/
H A Dmove-before.test11 RUN: llvm-ar mb %t2.txt %t-one.a %t3.txt
21 RUN: llvm-ar mb %t1.txt %t-front.a %t3.txt
31 RUN: llvm-ar mb %t2.txt %t-multiple.a %t4.txt %t3.txt
42 RUN: not llvm-ar mb invalid.txt %t-invalid.a %t2.txt 2>&1 \
54 RUN: llvm-ar mb %t3.txt %t-position.a %t2.txt
64 RUN: llvm-ar mb %t2.txt %t-same.a %t2.txt
/llvm-project-15.0.7/llvm/bindings/ocaml/bitreader/
H A Dllvm_bitreader.mli16 (** [get_module context mb] reads the bitcode for a new module [m] from the
17 memory buffer [mb] in the context [context]. Returns [m] if successful, or
22 (** [parse_bitcode context mb] parses the bitcode for a new module [m] from the
23 memory buffer [mb] in the context [context]. Returns [m] if successful, or
/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_sync_test.cpp24 MBlock *mb = m->GetBlock((uptr)&block[0]); in TEST() local
25 CHECK_NE(mb, (MBlock *)0); in TEST()
26 CHECK_EQ(mb->siz, 1 * sizeof(u64)); in TEST()
27 CHECK_EQ(mb->tid, thr->tid); in TEST()
30 mb = m->GetBlock((uptr)&block[0]); in TEST()
31 CHECK_EQ(mb, (MBlock *)0); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstrFMA3Info.cpp106 FMA3GROUP_PACKED_AVX512(VFMADD, mb, 0)
107 FMA3GROUP_PACKED_AVX512(VFMADDSUB, mb, 0)
108 FMA3GROUP_PACKED_AVX512(VFMSUB, mb, 0)
109 FMA3GROUP_PACKED_AVX512(VFMSUBADD, mb, 0)
110 FMA3GROUP_PACKED_AVX512(VFNMADD, mb, 0)
111 FMA3GROUP_PACKED_AVX512(VFNMSUB, mb, 0)
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A Dbitwriter.go34 mb := C.LLVMWriteBitcodeToMemoryBuffer(m.C)
35 return MemoryBuffer{mb}
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dstd-byte.cpp29 extern "C" void test1(::byte *b, ::my::byte *mb, ::my::std::byte *msb) { in test1() argument
31 *mb = ::my::byte{0}; in test1()
/llvm-project-15.0.7/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/
H A Dmoney_base.pass.cpp25 std::money_base mb; ((void)mb); in main() local
/llvm-project-15.0.7/lld/COFF/
H A DInputFiles.h79 StringRef getName() const { return mb.getBufferIdentifier(); } in getName()
87 MemoryBufferRef mb; variable
99 : mb(m), ctx(c), fileKind(k), lazy(lazy) {} in mb() function
368 explicit BitcodeFile(COFFLinkerContext &ctx, MemoryBufferRef mb,
407 inline bool isBitcode(MemoryBufferRef mb) { in isBitcode() argument
408 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Ddependent-template-recover.cpp74 } mb; variable
83 T::g<mb>(0); in f()
86 …T::g<mb, int>(0); // expected-error {{missing 'template' keyword prior to dependent template name … in f()
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dpr39571.ll4 %struct.anon = type { %struct.ma*, %struct.mb }
6 %struct.mb = type { i8, i8 }
29 %2 = bitcast %struct.mb* %cb to i32*

123