| /NextBSD/contrib/llvm/lib/Target/X86/AsmParser/ |
| HD | X86Operand.h | 58 unsigned Size; member 210 return Kind == Memory && Mem.Size == 0; in isMemUnsized() 213 return Kind == Memory && (!Mem.Size || Mem.Size == 8); in isMem8() 216 return Kind == Memory && (!Mem.Size || Mem.Size == 16); in isMem16() 219 return Kind == Memory && (!Mem.Size || Mem.Size == 32); in isMem32() 222 return Kind == Memory && (!Mem.Size || Mem.Size == 64); in isMem64() 225 return Kind == Memory && (!Mem.Size || Mem.Size == 80); in isMem80() 228 return Kind == Memory && (!Mem.Size || Mem.Size == 128); in isMem128() 231 return Kind == Memory && (!Mem.Size || Mem.Size == 256); in isMem256() 234 return Kind == Memory && (!Mem.Size || Mem.Size == 512); in isMem512() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Support/ |
| HD | AlignOf.h | 95 template<std::size_t Alignment, std::size_t Size> 97 alignas(Alignment) char buffer[Size]; 102 template<std::size_t Alignment, std::size_t Size> 106 template<std::size_t Size> \ 107 struct AlignedCharArray<x, Size> { \ 108 __attribute__((aligned(x))) char buffer[Size]; \ 129 template<std::size_t Alignment, std::size_t Size> 140 template<std::size_t Size> 141 struct AlignedCharArray<1, Size> { 144 char buffer[Size]; [all …]
|
| HD | raw_ostream.h | 103 void SetBufferSize(size_t Size) { in SetBufferSize() argument 105 SetBufferAndMode(new char[Size], Size, InternalBuffer); in SetBufferSize() 162 size_t Size = Str.size(); 165 if (Size > (size_t)(OutBufEnd - OutBufCur)) 166 return write(Str.data(), Size); 168 if (Size) { 169 memcpy(OutBufCur, Str.data(), Size); 170 OutBufCur += Size; 214 raw_ostream &write(const char *Ptr, size_t Size); 278 virtual void write_impl(const char *Ptr, size_t Size) = 0; [all …]
|
| HD | Allocator.h | 46 void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument 55 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate() 60 void Deallocate(const void *Ptr, size_t Size) { in Deallocate() argument 69 return static_cast<DerivedT *>(this)->Deallocate(Ptr, Size); in Deallocate() 93 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, in Allocate() argument 95 return malloc(Size); in Allocate() 208 Allocate(size_t Size, size_t Alignment) { in Allocate() argument 212 BytesAllocated += Size; in Allocate() 215 assert(Adjustment + Size >= Size && "Adjustment + Size must not overflow"); in Allocate() 218 if (Adjustment + Size <= size_t(End - CurPtr)) { in Allocate() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/ |
| HD | ThreadSafetyUtil.h | 88 SimpleArray() : Data(nullptr), Size(0), Capacity(0) {} in SimpleArray() 90 : Data(Dat), Size(Sz), Capacity(Cp) {} in Data() 92 : Data(Cp == 0 ? nullptr : A.allocateT<T>(Cp)), Size(0), Capacity(Cp) {} in SimpleArray() 94 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray() 96 A.Size = 0; in SimpleArray() 103 Size = RHS.Size; 107 RHS.Size = RHS.Capacity = 0; 119 memcpy(Data, Odata, sizeof(T) * Size); in reserve() 127 else if (Size + N < Capacity) in reserveCheck() 128 reserve(u_max(Size + N, Capacity * 2), A); in reserveCheck() [all …]
|
| /NextBSD/contrib/llvm/lib/Transforms/Utils/ |
| HD | ASanStackFrameLayout.cpp | 39 static size_t VarAndRedzoneSize(size_t Size, size_t Alignment) { in VarAndRedzoneSize() argument 41 if (Size <= 4) Res = 16; in VarAndRedzoneSize() 42 else if (Size <= 16) Res = 32; in VarAndRedzoneSize() 43 else if (Size <= 128) Res = Size + 32; in VarAndRedzoneSize() 44 else if (Size <= 512) Res = Size + 64; in VarAndRedzoneSize() 45 else if (Size <= 4096) Res = Size + 128; in VarAndRedzoneSize() 46 else Res = Size + 256; in VarAndRedzoneSize() 78 size_t Size = Vars[i].Size; in ComputeASanStackFrameLayout() local 83 assert(Size > 0); in ComputeASanStackFrameLayout() 84 StackDescription << " " << Offset << " " << Size << " " << strlen(Name) in ComputeASanStackFrameLayout() [all …]
|
| /NextBSD/sys/contrib/dev/acpica/components/utilities/ |
| HD | uttrack.c | 73 ACPI_SIZE Size, 143 ACPI_SIZE Size, in AcpiUtAllocateAndTrack() argument 154 if (!Size) in AcpiUtAllocateAndTrack() 158 Size = 1; in AcpiUtAllocateAndTrack() 161 Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER)); in AcpiUtAllocateAndTrack() 167 "Could not allocate size %u", (UINT32) Size)); in AcpiUtAllocateAndTrack() 172 Status = AcpiUtTrackAllocation (Allocation, Size, in AcpiUtAllocateAndTrack() 181 AcpiGbl_GlobalList->TotalSize += (UINT32) Size; in AcpiUtAllocateAndTrack() 182 AcpiGbl_GlobalList->CurrentTotalSize += (UINT32) Size; in AcpiUtAllocateAndTrack() 209 ACPI_SIZE Size, in AcpiUtAllocateZeroedAndTrack() argument [all …]
|
| /NextBSD/contrib/compiler-rt/lib/tsan/tests/unit/ |
| HD | tsan_mutexset_test.cc | 29 EXPECT_EQ(mset.Size(), (uptr)0); in TEST() 32 EXPECT_EQ(mset.Size(), (uptr)1); in TEST() 35 EXPECT_EQ(mset.Size(), (uptr)0); in TEST() 39 EXPECT_EQ(mset.Size(), (uptr)2); in TEST() 43 EXPECT_EQ(mset.Size(), (uptr)1); in TEST() 45 EXPECT_EQ(mset.Size(), (uptr)0); in TEST() 51 EXPECT_EQ(mset.Size(), (uptr)1); in TEST() 55 EXPECT_EQ(mset.Size(), (uptr)1); in TEST() 59 EXPECT_EQ(mset.Size(), (uptr)1); in TEST() 63 EXPECT_EQ(mset.Size(), (uptr)0); in TEST() [all …]
|
| /NextBSD/contrib/llvm/lib/Support/ |
| HD | raw_ostream.cpp | 82 if (size_t Size = preferred_buffer_size()) in SetBuffered() local 83 SetBufferSize(Size); in SetBuffered() 89 void raw_ostream::SetBufferAndMode(char *BufferStart, size_t Size, in SetBufferAndMode() argument 91 assert(((Mode == Unbuffered && !BufferStart && Size == 0) || in SetBufferAndMode() 92 (Mode != Unbuffered && BufferStart && Size != 0)) && in SetBufferAndMode() 101 OutBufEnd = OutBufStart+Size; in SetBufferAndMode() 296 raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) { in write() argument 298 if (LLVM_UNLIKELY(size_t(OutBufEnd - OutBufCur) < Size)) { in write() 301 write_impl(Ptr, Size); in write() 306 return write(Ptr, Size); in write() [all …]
|
| HD | FormattedStream.cpp | 24 static void UpdatePosition(std::pair<unsigned, unsigned> &Position, const char *Ptr, size_t Size) { in UpdatePosition() argument 30 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) { in UpdatePosition() 48 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { in ComputePosition() argument 52 if (Ptr <= Scanned && Scanned <= Ptr + Size) in ComputePosition() 55 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr)); in ComputePosition() 57 UpdatePosition(Position, Ptr, Size); in ComputePosition() 60 Scanned = Ptr + Size; in ComputePosition() 76 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) { in write_impl() argument 78 ComputePosition(Ptr, Size); in write_impl() 82 TheStream->write(Ptr, Size); in write_impl()
|
| HD | FoldingSet.cpp | 31 return static_cast<unsigned>(hash_combine_range(Data, Data+Size)); in ComputeHash() 35 if (Size != RHS.Size) return false; in operator ==() 36 return memcmp(Data, RHS.Data, Size*sizeof(*Data)) == 0; in operator ==() 42 if (Size != RHS.Size) in operator <() 43 return Size < RHS.Size; in operator <() 44 return memcmp(Data, RHS.Data, Size*sizeof(*Data)) < 0; in operator <() 88 unsigned Size = String.size(); in AddString() local 89 Bits.push_back(Size); in AddString() 90 if (!Size) return; in AddString() 92 unsigned Units = Size / 4; in AddString() [all …]
|
| HD | StreamingMemoryObject.cpp | 28 uint64_t readBytes(uint8_t *Buf, uint64_t Size, 49 uint64_t RawMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, in readBytes() argument 55 uint64_t End = Address + Size; in readBytes() 60 Size = End - Address; in readBytes() 61 memcpy(Buf, Address + FirstChar, Size); in readBytes() 62 return Size; in readBytes() 87 uint64_t StreamingMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, in readBytes() argument 89 fetchToPos(Address + Size - 1); in readBytes() 98 uint64_t End = Address + Size; in readBytes() 102 Size = End - Address; in readBytes() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Analysis/ |
| HD | AliasAnalysis.h | 359 const Value *P, uint64_t Size) { in getModRefInfo() argument 360 return getModRefInfo(I, MemoryLocation(P, Size)); in getModRefInfo() 370 const Value *P, uint64_t Size) { in getModRefInfo() argument 371 return getModRefInfo(CS, MemoryLocation(P, Size)); in getModRefInfo() 381 ModRefResult getModRefInfo(const CallInst *C, const Value *P, uint64_t Size) { in getModRefInfo() argument 382 return getModRefInfo(C, MemoryLocation(P, Size)); in getModRefInfo() 393 const Value *P, uint64_t Size) { in getModRefInfo() argument 394 return getModRefInfo(I, MemoryLocation(P, Size)); in getModRefInfo() 402 ModRefResult getModRefInfo(const LoadInst *L, const Value *P, uint64_t Size) { in getModRefInfo() argument 403 return getModRefInfo(L, MemoryLocation(P, Size)); in getModRefInfo() [all …]
|
| /NextBSD/contrib/llvm/tools/lli/ |
| HD | RemoteTargetExternal.cpp | 31 bool RemoteTargetExternal::allocateSpace(size_t Size, unsigned Alignment, in allocateSpace() argument 33 DEBUG(dbgs() << "Message [allocate space] size: " << Size << in allocateSpace() 35 if (!SendAllocateSpace(Alignment, Size)) { in allocateSpace() 52 bool RemoteTargetExternal::loadData(uint64_t Address, const void *Data, size_t Size) { in loadData() argument 54 ", size: " << Size << "\n"); in loadData() 55 if (!SendLoadSection(Address, Data, (uint32_t)Size, false)) { in loadData() 76 bool RemoteTargetExternal::loadCode(uint64_t Address, const void *Data, size_t Size) { in loadCode() argument 78 ", size: " << Size << "\n"); in loadCode() 79 if (!SendLoadSection(Address, Data, (uint32_t)Size, true)) { in loadCode() 119 bool RemoteTargetExternal::SendAllocateSpace(uint32_t Alignment, uint32_t Size) { in SendAllocateSpace() argument [all …]
|
| HD | RemoteTargetExternal.h | 34 bool WriteBytes(const void *Data, size_t Size) { in WriteBytes() argument 35 return RPC.WriteBytes(Data, Size); in WriteBytes() 38 bool ReadBytes(void *Data, size_t Size) { return RPC.ReadBytes(Data, Size); } in ReadBytes() argument 49 bool allocateSpace(size_t Size, unsigned Alignment, 60 bool loadData(uint64_t Address, const void *Data, size_t Size) override; 70 bool loadCode(uint64_t Address, const void *Data, size_t Size) override; 114 bool SendAllocateSpace(uint32_t Alignment, uint32_t Size); 117 uint32_t Size, 137 void AppendWrite(const void *Data, uint32_t Size); 138 void AppendRead(void *Data, uint32_t Size);
|
| HD | RemoteMemoryManager.cpp | 33 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, in allocateCodeSection() argument 39 sys::MemoryBlock Block = allocateSection(Size); in allocateCodeSection() 48 allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument 55 sys::MemoryBlock Block = allocateSection(Size); in allocateDataSection() 63 sys::MemoryBlock RemoteMemoryManager::allocateSection(uintptr_t Size) { in allocateSection() argument 65 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(Size, in allocateSection() 101 unsigned Size = Section.MB.size(); in notifyObjectLoaded() local 103 DEBUG(dbgs() << "code region: size " << Size in notifyObjectLoaded() 110 CurOffset += Size; in notifyObjectLoaded() 118 unsigned Size = Section.MB.size(); in notifyObjectLoaded() local [all …]
|
| /NextBSD/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| HD | DIE.cpp | 157 << ", Size: " << Size << "\n"; in print() 164 O << "Size: " << Size << "\n"; in print() 243 unsigned Size = ~0U; in EmitValue() local 252 case dwarf::DW_FORM_data1: Size = 1; break; in EmitValue() 254 case dwarf::DW_FORM_data2: Size = 2; break; in EmitValue() 258 case dwarf::DW_FORM_data4: Size = 4; break; in EmitValue() 261 case dwarf::DW_FORM_data8: Size = 8; break; in EmitValue() 267 Size = Asm->getDataLayout().getPointerSize(); break; in EmitValue() 269 Size = SizeOf(Asm, dwarf::DW_FORM_ref_addr); in EmitValue() 273 Asm->OutStreamer->EmitIntValue(Integer, Size); in EmitValue() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Lex/ |
| HD | Lexer.h | 448 static inline char getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeNoWarn() argument 453 Size = 1; in getCharAndSizeNoWarn() 457 Size = 0; in getCharAndSizeNoWarn() 458 return getCharAndSizeSlowNoWarn(Ptr, Size, LangOpts); in getCharAndSizeNoWarn() 531 unsigned Size = 0; in getAndAdvanceChar() local 532 char C = getCharAndSizeSlow(Ptr, Size, &Tok); in getAndAdvanceChar() 533 Ptr += Size; in getAndAdvanceChar() 541 const char *ConsumeChar(const char *Ptr, unsigned Size, Token &Tok) { in ConsumeChar() argument 543 if (Size == 1) in ConsumeChar() 544 return Ptr+Size; in ConsumeChar() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/ADT/ |
| HD | BitVector.h | 36 unsigned Size; // Size of bitvector in bits. variable 78 BitVector() : Size(0), Capacity(0) { in BitVector() 84 explicit BitVector(unsigned s, bool t = false) : Size(s) { in Size() function 93 BitVector(const BitVector &RHS) : Size(RHS.size()) { in BitVector() 94 if (Size == 0) { in BitVector() 106 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector() 115 bool empty() const { return Size == 0; } in empty() 118 size_type size() const { return Size; } in size() 138 for (unsigned i = 0; i < Size / BITWORD_SIZE; ++i) in all() 143 if (unsigned Remainder = Size % BITWORD_SIZE) in all() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | EHScopeStack.h | 105 ptrdiff_t Size; 107 stable_iterator(ptrdiff_t Size) : Size(Size) {} 111 stable_iterator() : Size(-1) {} 113 bool isValid() const { return Size >= 0; } 118 bool encloses(stable_iterator I) const { return Size <= I.Size; } 124 bool strictlyEncloses(stable_iterator I) const { return Size < I.Size; } 127 return A.Size == B.Size; 130 return A.Size != B.Size; 250 char *allocate(size_t Size); 294 void pushCopyOfCleanup(CleanupKind Kind, const void *Cleanup, size_t Size) { [all …]
|
| /NextBSD/sys/contrib/dev/acpica/components/namespace/ |
| HD | nsnames.c | 101 ACPI_SIZE Size; in AcpiNsGetPathnameLength() local 107 Size = AcpiNsBuildNormalizedPath (Node, NULL, 0, FALSE); in AcpiNsGetPathnameLength() 109 return (Size); in AcpiNsGetPathnameLength() 219 #define ACPI_PATH_PUT8(Path, Size, Byte, Length) \ in AcpiNsBuildNormalizedPath() argument 221 if ((Length) < (Size)) \ in AcpiNsBuildNormalizedPath() 315 ACPI_SIZE Size; in AcpiNsGetNormalizedPathname() local 323 Size = AcpiNsBuildNormalizedPath (Node, NULL, 0, NoTrailing); in AcpiNsGetNormalizedPathname() 324 if (!Size) in AcpiNsGetNormalizedPathname() 331 NameBuffer = ACPI_ALLOCATE_ZEROED (Size); in AcpiNsGetNormalizedPathname() 334 ACPI_ERROR ((AE_INFO, "Could not allocate %u bytes", (UINT32) Size)); in AcpiNsGetNormalizedPathname() [all …]
|
| /NextBSD/contrib/compiler-rt/lib/tsan/rtl/ |
| HD | tsan_report.cc | 131 for (uptr i = 0; i < mset.Size(); i++) { in PrintMutexSet() 136 Printf(i == mset.Size() - 1 ? ")" : ","); in PrintMutexSet() 244 if (rep->mops.Size()) in ChooseSummaryStack() 246 if (rep->stacks.Size()) in ChooseSummaryStack() 248 if (rep->mutexes.Size()) in ChooseSummaryStack() 250 if (rep->threads.Size()) in ChooseSummaryStack() 283 for (uptr i = 0; i < rep->mutexes.Size(); i++) in PrintReport() 286 CHECK_GT(rep->mutexes.Size(), 0U); in PrintReport() 287 CHECK_EQ(rep->mutexes.Size() * (flags()->second_deadlock_stack ? 2 : 1), in PrintReport() 288 rep->stacks.Size()); in PrintReport() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/AST/ |
| HD | Stmt.cpp | 33 unsigned Size; member 46 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); in getStmtInfoTableEntry() 77 << StmtClassInfo[i].Name << ", " << StmtClassInfo[i].Size in PrintStats() 78 << " each (" << StmtClassInfo[i].Counter*StmtClassInfo[i].Size in PrintStats() 80 sum += StmtClassInfo[i].Counter*StmtClassInfo[i].Size; in PrintStats() 800 unsigned Size = sizeof(ObjCAtTryStmt) + in Create() local 802 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in Create() 810 unsigned Size = sizeof(ObjCAtTryStmt) + in CreateEmpty() local 812 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in CreateEmpty() 826 std::size_t Size = sizeof(CXXTryStmt); in Create() local [all …]
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | MemoryBuiltins.cpp | 353 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout &DL, in getObjectSize() argument 363 Size = 0; in getObjectSize() 365 Size = (ObjSize - Offset).getZExtValue(); in getObjectSize() 376 APInt ObjectSizeOffsetVisitor::align(APInt Size, uint64_t Align) { in align() argument 378 return APInt(IntTyBits, RoundUpToAlignment(Size.getZExtValue(), Align)); in align() 379 return Size; in align() 432 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst() local 434 return std::make_pair(align(Size, I.getAlignment()), Zero); in visitAllocaInst() 438 Size *= C->getValue().zextOrSelf(IntTyBits); in visitAllocaInst() 439 return std::make_pair(align(Size, I.getAlignment()), Zero); in visitAllocaInst() [all …]
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/ |
| HD | GDBRegistrationListener.cpp | 68 RegisteredObjectInfo(std::size_t Size, jit_code_entry *Entry, in RegisteredObjectInfo() 70 : Size(Size), Entry(Entry), Obj(std::move(Obj)) {} in RegisteredObjectInfo() 73 : Size(Other.Size), Entry(Other.Entry), Obj(std::move(Other.Obj)) {} in RegisteredObjectInfo() 76 Size = Other.Size; in operator =() 82 std::size_t Size; member 170 size_t Size = DebugObj.getBinary()->getMemoryBufferRef().getBufferSize(); in NotifyObjectEmitted() local 185 JITCodeEntry->symfile_size = Size; in NotifyObjectEmitted() 187 ObjectBufferMap[Key] = RegisteredObjectInfo(Size, JITCodeEntry, in NotifyObjectEmitted()
|