Searched refs:MB (Results 1 - 25 of 109) sorted by relevance

12345

/openbsd-current/sys/dev/pci/
H A Dtga_conf.c44 #undef MB macro
45 #define MB * 1024 * 1024 macro
53 4 MB,
55 1, { 2 MB, 0 }, { 1 MB, 0 },
63 4 MB,
65 1, { 2 MB, 0 }, { 2 MB, 0 },
73 8 MB,
75 1, { 4 MB,
132 #undef MB macro
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A DMemory.cpp43 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { argument
44 return OS << "[ " << MB.base() << " .. "
45 << (void *)((char *)MB.base() + MB.allocatedSize()) << " ] ("
46 << MB.allocatedSize() << " bytes)";
H A DMemoryBuffer.cpp89 template<typename MB>
90 class MemoryBufferMem : public MB {
113 template <typename MB>
114 static ErrorOr<std::unique_ptr<MB>>
178 template <typename MB>
194 template<typename MB>
195 class MemoryBufferMMapFile : public MB {
213 : MFR(FD, Mapmode<MB>, getLegalMapSize(Len, Offset),
256 template <typename MB>
257 static ErrorOr<std::unique_ptr<MB>>
[all...]
H A DSpecialCaseList.cpp81 std::unique_ptr<SpecialCaseList> SpecialCaseList::create(const MemoryBuffer *MB, argument
84 if (SCL->createInternal(MB, Error))
117 bool SpecialCaseList::createInternal(const MemoryBuffer *MB, argument
120 if (!parse(MB, Sections, Error))
125 bool SpecialCaseList::parse(const MemoryBuffer *MB, argument
130 MB->getBuffer().split(Lines, '\n');
/openbsd-current/gnu/llvm/compiler-rt/lib/orc/tests/unit/
H A Dextensible_rtti_test.cpp33 MyBase MB; local
37 // Check MB properties.
38 EXPECT_TRUE(isa<RTTIRoot>(MB));
39 EXPECT_TRUE(isa<MyBase>(MB));
40 EXPECT_FALSE(isa<MyDerivedA>(MB));
41 EXPECT_FALSE(isa<MyDerivedB>(MB));
/openbsd-current/gnu/llvm/llvm/tools/llvm-c-test/
H A Ddiagnostic.c62 LLVMMemoryBufferRef MB; local
64 if (LLVMCreateMemoryBufferWithSTDIN(&MB, &msg)) {
72 int Ret = LLVMGetBitcodeModule2(MB, &M);
74 LLVMDisposeMemoryBuffer(MB);
H A Dobject.c21 LLVMMemoryBufferRef MB; local
26 if (LLVMCreateMemoryBufferWithSTDIN(&MB, &outBufferErr)) {
33 O = LLVMCreateBinary(MB, LLVMGetGlobalContext(), &outBinaryErr);
52 LLVMDisposeMemoryBuffer(MB);
58 LLVMMemoryBufferRef MB; local
64 if (LLVMCreateMemoryBufferWithSTDIN(&MB, &outBufferErr)) {
71 O = LLVMCreateBinary(MB, LLVMGetGlobalContext(), &outBinaryErr);
94 LLVMDisposeMemoryBuffer(MB);
H A Dmodule.c28 LLVMMemoryBufferRef MB; local
32 if (LLVMCreateMemoryBufferWithSTDIN(&MB, &msg)) {
42 Ret = LLVMGetBitcodeModule2(MB, &M);
44 Ret = LLVMParseBitcode2(MB, &M);
47 Ret = LLVMGetBitcodeModule(MB, &M, &msg);
49 Ret = LLVMParseBitcode(MB, &M, &msg);
54 LLVMDisposeMemoryBuffer(MB);
59 LLVMDisposeMemoryBuffer(MB);
/openbsd-current/lib/libc/gen/
H A Dgetbsize.c44 #define MB (1024 * 1024) macro
68 max = MAXB / MB;
69 mul = MB;
/openbsd-current/gnu/llvm/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp104 sys::MemoryBlock MB = MMapper.allocateMappedMemory( local
113 MemGroup.Near = MB;
118 CodeMem.Near = MB;
120 RODataMem.Near = MB;
122 RWDataMem.Near = MB;
125 MemGroup.AllocatedMem.push_back(MB);
126 Addr = (uintptr_t)MB.base();
127 uintptr_t EndOfBlock = Addr + MB.allocatedSize();
206 for (sys::MemoryBlock &MB : MemGroup.PendingMem)
207 if (std::error_code EC = MMapper.protectMappedMemory(MB, Permission
[all...]
/openbsd-current/gnu/llvm/llvm/lib/ToolDrivers/llvm-lib/
H A DLibDriver.cpp145 static Expected<COFF::MachineTypes> getCOFFFileMachine(MemoryBufferRef MB) { argument
147 auto Obj = object::COFFObjectFile::create(MB);
163 static Expected<COFF::MachineTypes> getBitcodeFileMachine(MemoryBufferRef MB) { argument
164 Expected<std::string> TripleStr = getBitcodeTargetTriple(MB);
185 std::string &LibMachineSource, MemoryBufferRef MB) {
186 file_magic Magic = identify_magic(MB.getBuffer());
191 llvm::errs() << MB.getBufferIdentifier()
203 object::Archive Archive(MB, Err);
204 fatalOpenError(std::move(Err), MB.getBufferIdentifier());
210 llvm::errs() << MB
183 appendFile(std::vector<NewArchiveMember> &Members, COFF::MachineTypes &LibMachine, std::string &LibMachineSource, MemoryBufferRef MB) argument
[all...]
/openbsd-current/gnu/llvm/llvm/include/llvm/Object/
H A DCOFFModuleDefinition.h46 parseCOFFModuleDefinition(MemoryBufferRef MB, COFF::MachineTypes Machine,
/openbsd-current/gnu/llvm/clang/lib/Rewrite/
H A DRewriter.cpp248 StringRef MB = SourceMgr->getBufferData(FID); local
249 I->second.Initialize(MB.begin(), MB.end());
264 StringRef MB = SourceMgr->getBufferData(FID); local
275 while (isWhitespaceExceptNL(MB[i]))
277 indentSpace = MB.substr(lineOffs, i-lineOffs);
341 StringRef MB = SourceMgr->getBufferData(FID); local
342 return ReplaceText(start, origLength, MB.substr(newOffs, newLength));
365 StringRef MB = SourceMgr->getBufferData(FID); local
382 while (isWhitespaceExceptNL(MB[
[all...]
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DCaching.h64 std::unique_ptr<MemoryBuffer> MB)>;
76 std::unique_ptr<MemoryBuffer> MB) {});
H A DSpecialCaseList.h79 static std::unique_ptr<SpecialCaseList> create(const MemoryBuffer *MB,
112 bool createInternal(const MemoryBuffer *MB, std::string &Error);
147 bool parse(const MemoryBuffer *MB, StringMap<size_t> &SectionsMap,
/openbsd-current/gnu/llvm/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp62 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path); local
64 if (std::error_code EC = MB.getError()) {
69 return std::move(*MB);
144 std::unique_ptr<MemoryBuffer> MB = local
146 if (!MB)
149 if (!MB->getBufferSize()) {
169 parseCOFFModuleDefinition(*MB, Machine, true);
/openbsd-current/gnu/llvm/llvm/lib/Debuginfod/
H A DHTTPServer.cpp50 MemoryBuffer *MB = MBOrErr->release(); local
51 Request.setResponse({200u, "application/octet-stream", MB->getBufferSize(),
53 return MB->getBuffer().substr(Offset, Length);
55 [=](bool Success) { delete MB; }});
/openbsd-current/gnu/llvm/llvm/tools/llvm-cat/
H A Dllvm-cat.cpp61 std::unique_ptr<MemoryBuffer> MB = ExitOnErr( local
63 std::vector<BitcodeModule> Mods = ExitOnErr(getBitcodeModuleList(*MB));
/openbsd-current/gnu/llvm/llvm/tools/llvm-modextract/
H A Dllvm-modextract.cpp53 std::unique_ptr<MemoryBuffer> MB = local
55 std::vector<BitcodeModule> Ms = ExitOnErr(getBitcodeModuleList(*MB));
/openbsd-current/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorMemoryManager.cpp26 auto MB = sys::Memory::allocateMappedMemory( local
31 assert(!Allocations.count(MB.base()) && "Duplicate allocation addr");
32 Allocations[MB.base()].Size = Size;
33 return ExecutorAddr::fromPtr(MB.base());
102 sys::MemoryBlock MB(AllocToDestroy.first, AllocToDestroy.second.Size);
103 if (auto EC = sys::Memory::releaseMappedMemory(MB))
220 sys::MemoryBlock MB(Base, A.Size);
221 if (auto EC = sys::Memory::releaseMappedMemory(MB))
/openbsd-current/gnu/llvm/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp189 std::unique_ptr<MemoryBuffer> MB = std::move(BufferOrErr.get()); local
191 BitcodeFileContents IF = ExitOnErr(llvm::getBitcodeFileContents(*MB));
199 BitcodeModule MB = IF.Mods[I]; local
205 MB.getLazyModule(Context, MaterializeMetadata, SetImporting));
212 BitcodeLTOInfo LTOInfo = ExitOnErr(MB.getLTOInfo());
215 Index = ExitOnErr(MB.getSummary());
/openbsd-current/gnu/llvm/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp192 SectionInfo(StringRef Name, sys::MemoryBlock MB, unsigned SectionID) argument
193 : Name(std::string(Name)), MB(std::move(MB)), SectionID(SectionID) {}
195 sys::MemoryBlock MB; member in struct:TrivialMemoryManager::SectionInfo
251 sys::MemoryBlock MB = local
256 if (!MB.base())
260 PreallocSlab = MB;
272 sys::MemoryBlock MB((void *)OldSlabOffset, Size);
274 FunctionMemory.push_back(SectionInfo(SectionName, MB, SectionID));
276 DataMemory.push_back(SectionInfo(SectionName, MB, SectionI
309 sys::MemoryBlock MB = local
338 sys::MemoryBlock MB = local
[all...]
/openbsd-current/gnu/llvm/llvm/tools/sanstats/
H A Dsanstats.cpp140 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get()); local
141 const char *Begin = MB->getBufferStart(), *End = MB->getBufferEnd();
/openbsd-current/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.h57 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { argument
63 MB = countLeadingZeros(Val);
73 MB = countLeadingZeros((Val - 1) ^ Val) + 1;
81 static inline bool isRunOfOnes64(uint64_t Val, unsigned &MB, unsigned &ME) { argument
87 MB = countLeadingZeros(Val);
97 MB = countLeadingZeros((Val - 1) ^ Val) + 1;
/openbsd-current/gnu/llvm/llvm/tools/llvm-bcanalyzer/
H A Dllvm-bcanalyzer.cpp110 std::unique_ptr<MemoryBuffer> MB = ExitOnErr(openBitcodeFile(InputFilename)); local
115 BitcodeAnalyzer BA(MB->getBuffer(),

Completed in 298 milliseconds

12345