/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | RecyclingAllocator.h | 24 template <class AllocatorType, class T, size_t Size = sizeof(T), 30 Recycler<T, Size, Align> Base; 61 template<class AllocatorType, class T, size_t Size, size_t Align> 64 T, Size, Align> &Allocator) { 65 assert(size <= Size && "allocation size exceeded"); 69 template<class AllocatorType, class T, size_t Size, size_t Align> 72 T, Size, Align> &A) {
|
H A D | raw_sha1_ostream.h | 27 void write_impl(const char *Ptr, size_t Size) override { 28 State.update(ArrayRef<uint8_t>((const uint8_t *)Ptr, Size));
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
H A D | guarded_pool_allocator_posix.cpp | 21 void *GuardedPoolAllocator::mapMemory(size_t Size) const { 23 mmap(nullptr, Size, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); 27 Printf(" mmap(nullptr, %zu, ...) failed.\n", Size); 33 void GuardedPoolAllocator::markReadWrite(void *Ptr, size_t Size) const { 34 if (mprotect(Ptr, Size, PROT_READ | PROT_WRITE) != 0) { 37 Printf(" mprotect(%p, %zu, RW) failed.\n", Ptr, Size); 42 void GuardedPoolAllocator::markInaccessible(void *Ptr, size_t Size) const { 46 if (mmap(Ptr, Size, PROT_NONE, MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, -1, 51 Printf(" mmap(%p, %zu, NONE, ...) failed.\n", Ptr, Size);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/ |
H A D | scudo_errors.h | 20 void NORETURN reportCallocOverflow(uptr Count, uptr Size); 21 void NORETURN reportPvallocOverflow(uptr Size); 26 void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment);
|
H A D | scudo_allocator.h | 42 u64 SizeOrUnusedBytes : 20; // Size for Primary backed allocations, amount of 63 constexpr uptr RoundUpTo(uptr Size, uptr Boundary) { argument 64 return (Size + Boundary - 1) & ~(Boundary - 1); 113 void *scudoAllocate(uptr Size, uptr Alignment, AllocType Type); 114 void scudoDeallocate(void *Ptr, uptr Size, uptr Alignment, AllocType Type); 115 void *scudoRealloc(void *Ptr, uptr Size); 116 void *scudoCalloc(uptr NMemB, uptr Size); 117 void *scudoValloc(uptr Size); 118 void *scudoPvalloc(uptr Size); 119 int scudoPosixMemalign(void **MemPtr, uptr Alignment, uptr Size); [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCInstrAnalysis.cpp | 27 uint64_t Size, uint64_t &Target) const { 33 Target = Addr+Size+Imm; 39 uint64_t Size) const { 26 evaluateBranch(const MCInst &Inst, uint64_t Addr, uint64_t Size, uint64_t &Target) const argument
|
H A D | StringTableBuilder.cpp | 34 Size = 0; 39 Size = 1; 44 Size = 4; 74 support::endian::write32le(Buf, Size); 76 support::endian::write32be(Buf, Size); 147 size_t Pos = Size - S.size() - (K != RAW); 154 Size = alignTo(Size, Alignment); 155 P->second = Size; 157 Size [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | CachedHashString.h | 31 uint32_t Size; member in class:llvm::CachedHashStringRef 40 : P(S.data()), Size(S.size()), Hash(Hash) { 44 StringRef val() const { return StringRef(P, Size); } 46 uint32_t size() const { return Size; } 76 uint32_t Size; member in class:llvm::CachedHashString 91 : P(EmptyOrTombstonePtr), Size(0), Hash(0) { 105 : P(new char[S.size()]), Size(S.size()), Hash(Hash) { 112 : Size(Other.Size), Hash(Other.Hash) { 116 P = new char[Size]; [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | quarantine.h | 23 uptr Size; member in struct:scudo::QuarantineBatch 27 void init(void *Ptr, uptr Size) { argument 30 this->Size = Size + sizeof(QuarantineBatch); // Account for the Batch Size. 34 uptr getQuarantinedSize() const { return Size - sizeof(QuarantineBatch); } 36 void push_back(void *Ptr, uptr Size) { argument 39 this->Size += Size; 48 DCHECK_GE(Size, sizeo 78 enqueue(Callback Cb, void *Ptr, uptr Size) argument 164 atomic_uptr Size; member in class:scudo::QuarantineCache 178 initLinkerInitialized(uptr Size, uptr CacheSize) argument 189 init(uptr Size, uptr CacheSize) argument 197 put(CacheT *C, Callback Cb, Node *Ptr, uptr Size) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerMutate.h | 32 size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize); 34 size_t Mutate_CustomCrossOver(uint8_t *Data, size_t Size, size_t MaxSize); 36 size_t Mutate_ShuffleBytes(uint8_t *Data, size_t Size, size_t MaxSize); 38 size_t Mutate_EraseBytes(uint8_t *Data, size_t Size, size_t MaxSize); 40 size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize); 42 size_t Mutate_InsertRepeatedBytes(uint8_t *Data, size_t Size, size_t MaxSize); 44 size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize); 46 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize); 48 size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize); 51 size_t Mutate_AddWordFromManualDictionary(uint8_t *Data, size_t Size, [all...] |
H A D | FuzzerInterface.h | 14 // extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); 37 // Executes the code under test with [Data, Data+Size) as the input. 41 LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); 50 // Mutates raw data in [Data, Data+Size) inplace. 54 LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize, 68 // Mutates raw data in [Data, Data+Size) inplace. 71 LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVMachineFunctionInfo.h | 28 /// Size of the save area used for varargs 41 void setVarArgsSaveSize(int Size) { VarArgsSaveSize = Size; } argument
|
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | Types.cpp | 38 const char *llvm::getMinimalTypeForEnumBitfield(uint64_t Size) { argument 39 uint64_t MaxIndex = Size;
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_segmented_array.h | 84 uint64_t Size = 0; member in class:__xray::Array::Iterator 90 Size(S) {} function in class:__xray::Array::Iterator 99 if (++Offset % ElementsPerSegment || Offset == Size) 105 DCHECK_NE(Offset, Size); 118 if (PreviousOffset != Size && PreviousOffset % ElementsPerSegment == 0) { 171 uint64_t Size; member in class:__xray::Array 301 Size(0) {} 307 Size(0) {} 316 Size(O.Size) { function in class:__xray::Array [all...] |
/freebsd-11-stable/sys/contrib/dev/acpica/components/utilities/ |
H A D | uttrack.c | 181 ACPI_SIZE Size, 200 * ObjectSize - Size of each cached object 236 * PARAMETERS: Size - Size of the allocation 249 ACPI_SIZE Size, 260 if (!Size) 264 Size = 1; 267 Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER)); 273 "Could not allocate size %u", (UINT32) Size)); 279 Allocation, Size, ACPI_MEM_MALLO 248 AcpiUtAllocateAndTrack( ACPI_SIZE Size, UINT32 Component, const char *Module, UINT32 Line) argument 317 AcpiUtAllocateZeroedAndTrack( ACPI_SIZE Size, UINT32 Component, const char *Module, UINT32 Line) argument 512 AcpiUtTrackAllocation( ACPI_DEBUG_MEM_BLOCK *Allocation, ACPI_SIZE Size, UINT8 AllocType, UINT32 Component, const char *Module, UINT32 Line) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SafeStackLayout.cpp | 41 void StackLayout::addObject(const Value *V, unsigned Size, unsigned Alignment, argument 43 StackObjects.push_back({V, Size, Alignment, Range}); 48 static unsigned AdjustStackOffset(unsigned Offset, unsigned Size, argument 50 return alignTo(Offset + Size, Alignment) - Size; 58 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); 59 unsigned End = Start + Obj.Size; 65 LLVM_DEBUG(dbgs() << "Layout: size " << Obj.Size << ", align " 68 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); 69 unsigned End = Start + Obj.Size; [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyUtil.h | 88 : Data(Dat), Size(Sz), Capacity(Cp) {} 94 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { 96 A.Size = 0; 103 Size = RHS.Size; 107 RHS.Size = RHS.Capacity = 0; 119 memcpy(Data, Odata, sizeof(T) * Size); 126 else if (Size + N < Capacity) 127 reserve(u_max(Size [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 53 /// Size - Size of the basic block in bytes. If the block contains 58 unsigned Size = 0; member in struct:llvm::BasicBlockInfo 65 /// of unknown size. The real size may be smaller than Size bytes by a 82 if (Size & ((1u << Bits) - 1)) 83 Bits = countTrailingZeros(Size); 91 unsigned PO = Offset + Size; 140 void adjustBBSize(MachineBasicBlock *MBB, int Size) { argument 141 BBInfo[MBB->getNumber()].Size += Size; [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/ |
H A D | Buffer.cpp | 29 Error FileBuffer::allocate(size_t Size) { argument 33 if (Size == 0) { 39 FileOutputBuffer::create(getName(), Size, FileOutputBuffer::F_executable); 63 Error MemBuffer::allocate(size_t Size) { argument 64 Buf = WritableMemoryBuffer::getNewMemBuffer(Size, getName());
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | WholeProgramDevirt.h | 45 std::pair<uint8_t *, uint8_t *> getPtrToData(uint64_t Pos, uint8_t Size) { argument 46 if (Bytes.size() < Pos + Size) { 47 Bytes.resize(Pos + Size); 48 BytesUsed.resize(Pos + Size); 53 // Set little-endian value Val with size Size at bit position Pos, 55 void setLE(uint64_t Pos, uint64_t Val, uint8_t Size) { argument 57 auto DataUsed = getPtrToData(Pos / 8, Size); 58 for (unsigned I = 0; I != Size; ++I) { 65 // Set big-endian value Val with size Size at bit position Pos, 67 void setBE(uint64_t Pos, uint64_t Val, uint8_t Size) { argument 183 setBeforeBytes(uint64_t Pos, uint8_t Size) argument 192 setAfterBytes(uint64_t Pos, uint8_t Size) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
H A D | AVRAsmBackend.cpp | 75 void adjustBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, argument 79 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); 86 void adjustRelativeBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, argument 90 signed_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); 104 void fixup_call(unsigned Size, const MCFixup &Fixup, uint64_t &Value, argument 106 adjustBranch(Size, Fixup, Value, Ctx); 120 void fixup_7_pcrel(unsigned Size, const MCFixup &Fixup, uint64_t &Value, argument 122 adjustRelativeBranch(Size, Fixup, Value, Ctx); 134 void fixup_13_pcrel(unsigned Size, const MCFixup &Fixup, uint64_t &Value, argument 136 adjustRelativeBranch(Size, Fixu 192 fixup(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) argument 202 lo8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) argument 208 hi8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) argument 214 hh8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) argument 220 ms8(unsigned Size, const MCFixup &Fixup, uint64_t &Value, MCContext *Ctx = nullptr) argument 237 uint64_t Size = AVRAsmBackend::getFixupKindInfo(Fixup.getKind()).TargetSize; local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | OSLog.cpp | 24 Optional<unsigned> Size; member in struct:__anon337::OSLogFormatStringHandler::ArgData 88 ArgsData.back().Size = precision.getConstantAmount(); 104 ArgsData.back().Size = precision.getConstantAmount(); 139 CharUnits Size = CharUnits::fromQuantity(8); local 141 Size, 0, Data.MaskType); 145 CharUnits Size = Ctx.getTypeSizeInChars((*Data.FieldWidth)->getType()); local 147 Size, 0); 150 CharUnits Size = Ctx.getTypeSizeInChars((*Data.Precision)->getType()); local 152 Size, 0); 156 CharUnits Size local 164 CharUnits Size; local 171 auto Size = Ctx.getTypeSizeInChars(Data.E->getType()); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | EHScopeStack.h | 110 ptrdiff_t Size; member in class:clang::CodeGen::EHScopeStack::stable_iterator 112 stable_iterator(ptrdiff_t Size) : Size(Size) {} argument 116 stable_iterator() : Size(-1) {} 118 bool isValid() const { return Size >= 0; } 123 bool encloses(stable_iterator I) const { return Size <= I.Size; } 129 bool strictlyEncloses(stable_iterator I) const { return Size < I.Size; } 311 pushCopyOfCleanup(CleanupKind Kind, const void *Cleanup, size_t Size) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | RegisterBank.h | 32 unsigned Size; member in class:llvm::RegisterBank 43 RegisterBank(unsigned ID, const char *Name, unsigned Size, 54 unsigned getSize() const { return Size; }
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
H A D | FuzzerCLI.h | 43 using FuzzerTestFun = int (*)(const uint8_t *Data, size_t Size); 56 /// \param Size Size of the 'Data' in bytes 58 std::unique_ptr<Module> parseModule(const uint8_t *Data, size_t Size, 65 /// \param MaxSize Size of the destination buffer 73 std::unique_ptr<Module> parseAndVerify(const uint8_t *Data, size_t Size,
|