/external/deqp/framework/delibs/decpp/ |
D | dePoolArray.hpp | 38 template<typename T, deUint32 Alignment> 41 template<typename T, deUint32 Alignment> 51 template<typename T, deUint32 Alignment = (sizeof(T) > sizeof(void*) ? (deUint32)sizeof(void*) : (d… 55 typedef PoolArrayIterator<T, Alignment> Iterator; 56 typedef PoolArrayConstIterator<T, Alignment> ConstIterator; 62 PoolArray (MemPool* pool, const PoolArray<T, Alignment>& other); 101 …PoolArray (const PoolArray<T, Alignment>& other); // \note Default copy ctor is not allowed, use… 114 template<typename T, deUint32 Alignment> 127 template<typename T, deUint32 Alignment> 128 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment> [all …]
|
D | deArrayBuffer.hpp | 47 template <typename T, size_t Alignment = (sizeof(T) > 4 ? 4 : sizeof(T)), size_t Stride = sizeof(T)> 76 template <typename T, size_t Alignment, size_t Stride> 77 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (void) throw() in ArrayBuffer() 83 template <typename T, size_t Alignment, size_t Stride> 84 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer() 92 void* const ptr = detail::ArrayBuffer_AlignedMalloc(storageSize, Alignment); in ArrayBuffer() 102 template <typename T, size_t Alignment, size_t Stride> 103 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const T* ptr, size_t numElements) in ArrayBuffer() 110 ArrayBuffer<T,Alignment,Stride> tmp(numElements); in ArrayBuffer() 129 template <typename T, size_t Alignment, size_t Stride> [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineFrameInfo.cpp | 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment() argument 33 assert(Alignment <= StackAlignment && in ensureMaxAlignment() 35 if (MaxAlignment < Alignment) in ensureMaxAlignment() 36 MaxAlignment = Alignment; in ensureMaxAlignment() 40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, in clampStackAlignment() argument 42 if (!ShouldClamp || Alignment <= StackAlignment) in clampStackAlignment() 43 return Alignment; in clampStackAlignment() 44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << DebugStr(Alignment) in clampStackAlignment() 51 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, in CreateStackObject() argument 56 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineFrameInfo.cpp | 31 void MachineFrameInfo::ensureMaxAlignment(Align Alignment) { in ensureMaxAlignment() argument 33 assert(Alignment <= StackAlignment && in ensureMaxAlignment() 35 if (MaxAlignment < Alignment) in ensureMaxAlignment() 36 MaxAlignment = Alignment; in ensureMaxAlignment() 40 static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment, in clampStackAlignment() argument 42 if (!ShouldClamp || Alignment <= StackAlignment) in clampStackAlignment() 43 return Alignment; in clampStackAlignment() 44 LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Alignment.value() in clampStackAlignment() 50 int MachineFrameInfo::CreateStackObject(uint64_t Size, Align Alignment, in CreateStackObject() argument 55 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject() [all …]
|
/external/llvm-project/clang/test/Analysis/inlining/ |
D | placement-new-fp-suppression.cpp | 22 inline uintptr_t alignAddr(const void *Addr, size_t Alignment) { in alignAddr() argument 23 return (((uintptr_t)Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1)); in alignAddr() 26 inline size_t alignmentAdjustment(const void *Ptr, size_t Alignment) { in alignmentAdjustment() argument 27 return alignAddr(Ptr, Alignment) - (uintptr_t)Ptr; in alignmentAdjustment() 51 void *Allocate(size_t Size, size_t Alignment) { in Allocate() argument 53 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate() 56 size_t PaddedSize = SizeToAllocate + Alignment - 1; in Allocate() 58 Alignment); in Allocate() 74 void *operator new(size_t Bytes, const ASTContext &C, size_t Alignment = 8); 75 void *operator new[](size_t Bytes, const ASTContext &C, size_t Alignment = 8); [all …]
|
/external/llvm/unittests/Support/ |
D | AlignOfTest.cpp | 110 [AlignOf<char>::Alignment > 0] 111 [AlignOf<short>::Alignment > 0] 112 [AlignOf<int>::Alignment > 0] 113 [AlignOf<long>::Alignment > 0] 114 [AlignOf<long long>::Alignment > 0] 115 [AlignOf<float>::Alignment > 0] 116 [AlignOf<double>::Alignment > 0] 117 [AlignOf<long double>::Alignment > 0] 118 [AlignOf<void *>::Alignment > 0] 119 [AlignOf<int *>::Alignment > 0] [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ASanStackFrameLayout.cpp | 30 return a.Alignment > b.Alignment; in CompareVars() 39 static size_t VarAndRedzoneSize(size_t Size, size_t Alignment) { in VarAndRedzoneSize() argument 47 return alignTo(Res, Alignment); in VarAndRedzoneSize() 61 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout() 67 Layout->FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() 71 Vars[0].Alignment); in ComputeASanStackFrameLayout() 76 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local 77 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout() 80 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout() 81 assert(Layout->FrameAlignment >= Alignment); in ComputeASanStackFrameLayout() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | OptimizedStructLayout.cpp | 27 assert(isAligned(Field.Alignment, Field.Offset) && in checkValidLayout() 32 assert(Field.Alignment <= MaxAlign && in checkValidLayout() 34 ComputedMaxAlign = std::max(Field.Alignment, MaxAlign); in checkValidLayout() 71 MaxAlign = std::max(MaxAlign, FirstFlexible->Alignment); in performOptimizedStructLayout() 96 MaxAlign = std::max(MaxAlign, I->Alignment); in performOptimizedStructLayout() 108 if (lhs->Alignment != rhs->Alignment) in performOptimizedStructLayout() 109 return (lhs->Alignment < rhs->Alignment ? 1 : -1); in performOptimizedStructLayout() 151 auto Offset = alignTo(LastEnd, I->Alignment); in performOptimizedStructLayout() 247 Align Alignment; in performOptimizedStructLayout() member 256 auto Alignment = I->Alignment; in performOptimizedStructLayout() local [all …]
|
/external/gwp_asan/gwp_asan/ |
D | guarded_pool_allocator.cpp | 154 size_t Alignment, in getRequiredBackingSize() argument 156 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in getRequiredBackingSize() 157 assert(Alignment != 0 && "Alignment should be non-zero"); in getRequiredBackingSize() 160 if (Alignment <= PageSize) in getRequiredBackingSize() 163 return Size + Alignment - PageSize; in getRequiredBackingSize() 166 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp() argument 167 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignUp() 168 assert(Alignment != 0 && "Alignment should be non-zero"); in alignUp() 169 if ((Ptr & (Alignment - 1)) == 0) in alignUp() 172 Ptr += Alignment - (Ptr & (Alignment - 1)); in alignUp() [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/ |
D | scudo_errors.cpp | 30 void NORETURN reportAllocationAlignmentTooBig(uptr Alignment, in reportAllocationAlignmentTooBig() argument 33 "allocation of %zd\n", Alignment, MaxAlignment); in reportAllocationAlignmentTooBig() 36 void NORETURN reportAllocationAlignmentNotPowerOfTwo(uptr Alignment) { in reportAllocationAlignmentNotPowerOfTwo() argument 38 "of two\n", Alignment); in reportAllocationAlignmentNotPowerOfTwo() 41 void NORETURN reportInvalidPosixMemalignAlignment(uptr Alignment) { in reportInvalidPosixMemalignAlignment() argument 45 Alignment, sizeof(void *)); in reportInvalidPosixMemalignAlignment() 48 void NORETURN reportInvalidAlignedAllocAlignment(uptr Size, uptr Alignment) { in reportInvalidAlignedAllocAlignment() argument 52 "of alignment\n", Alignment, Size); in reportInvalidAlignedAllocAlignment() 55 "requested size 0x%zx must be a multiple of alignment\n", Alignment, in reportInvalidAlignedAllocAlignment()
|
/external/llvm/lib/ExecutionEngine/ |
D | SectionMemoryManager.cpp | 23 unsigned Alignment, in allocateDataSection() argument 28 return allocateSection(RODataMem, Size, Alignment); in allocateDataSection() 29 return allocateSection(RWDataMem, Size, Alignment); in allocateDataSection() 33 unsigned Alignment, in allocateCodeSection() argument 36 return allocateSection(CodeMem, Size, Alignment); in allocateCodeSection() 41 unsigned Alignment) { in allocateSection() argument 42 if (!Alignment) in allocateSection() 43 Alignment = 16; in allocateSection() 45 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection() 47 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection() [all …]
|
/external/llvm/include/llvm/Support/ |
D | AlignOf.h | 78 static constexpr unsigned Alignment = static_cast<unsigned int>( 82 Alignment = static_cast<unsigned int>( 86 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 }; 87 enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 }; 88 enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 }; 89 enum { Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 : 0 }; 91 enum { Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 : 0 }; 92 enum { Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 : 0 }; 93 enum { Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 : 0 }; 94 enum { Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 : 0 }; [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | ASanStackFrameLayout.cpp | 31 return a.Alignment > b.Alignment; in CompareVars() 42 size_t Alignment) { in VarAndRedzoneSize() argument 50 return alignTo(std::max(Res, 2 * Granularity), Alignment); in VarAndRedzoneSize() 63 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout() 69 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() 71 Vars[0].Alignment); in ComputeASanStackFrameLayout() 75 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local 76 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout() 78 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout() 79 assert(Layout.FrameAlignment >= Alignment); in ComputeASanStackFrameLayout() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | ASanStackFrameLayout.cpp | 31 return a.Alignment > b.Alignment; in CompareVars() 42 size_t Alignment) { in VarAndRedzoneSize() argument 50 return alignTo(std::max(Res, 2 * Granularity), Alignment); in VarAndRedzoneSize() 63 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout() 69 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() 71 Vars[0].Alignment); in ComputeASanStackFrameLayout() 75 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local 76 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout() 78 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout() 79 assert(Layout.FrameAlignment >= Alignment); in ComputeASanStackFrameLayout() [all …]
|
/external/XNNPACK/src/xnnpack/ |
D | AlignedAllocator.h | 20 template <typename T, size_t Alignment> 23 template <size_t Alignment> 24 class AlignedAllocator<void, Alignment> { 32 typedef AlignedAllocator<U, Alignment> other; 36 template <typename T, size_t Alignment> 53 typedef AlignedAllocator<U, Alignment> other; 61 const AlignedAllocator<U, Alignment>& other) noexcept {} in AlignedAllocator() 64 return (std::numeric_limits<size_type>::max() - size_type(Alignment)) / in max_size() 78 typename AlignedAllocator<void, Alignment>::const_pointer hint = 0) { 81 memory = _aligned_malloc(n * sizeof(T), Alignment); [all …]
|
/external/scudo/standalone/ |
D | wrappers_c_checks.h | 33 inline bool checkAlignedAllocAlignmentAndSize(uptr Alignment, uptr Size) { in checkAlignedAllocAlignmentAndSize() argument 34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize() 35 !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize() 40 inline bool checkPosixMemalignAlignment(uptr Alignment) { in checkPosixMemalignAlignment() argument 41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment() 42 !isAligned(Alignment, sizeof(void *)); in checkPosixMemalignAlignment()
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | wrappers_c_checks.h | 33 inline bool checkAlignedAllocAlignmentAndSize(uptr Alignment, uptr Size) { in checkAlignedAllocAlignmentAndSize() argument 34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize() 35 !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize() 40 inline bool checkPosixMemalignAlignment(uptr Alignment) { in checkPosixMemalignAlignment() argument 41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment() 42 !isAligned(Alignment, sizeof(void *)); in checkPosixMemalignAlignment()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
D | SectionMemoryManager.cpp | 22 unsigned Alignment, in allocateDataSection() argument 28 Size, Alignment); in allocateDataSection() 30 Alignment); in allocateDataSection() 34 unsigned Alignment, in allocateCodeSection() argument 38 Alignment); in allocateCodeSection() 43 unsigned Alignment) { in allocateSection() argument 44 if (!Alignment) in allocateSection() 45 Alignment = 16; in allocateSection() 47 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection() 49 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1) / Alignment + 1); in allocateSection() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/ |
D | SectionMemoryManager.cpp | 22 unsigned Alignment, in allocateDataSection() argument 28 Size, Alignment); in allocateDataSection() 30 Alignment); in allocateDataSection() 34 unsigned Alignment, in allocateCodeSection() argument 38 Alignment); in allocateCodeSection() 43 unsigned Alignment) { in allocateSection() argument 44 if (!Alignment) in allocateSection() 45 Alignment = 16; in allocateSection() 47 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection() 49 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1) / Alignment + 1); in allocateSection() [all …]
|
/external/llvm-project/llvm/test/CodeGen/Generic/ |
D | 2009-03-17-LSR-APInt.ll | 5 %struct.Alignment = type { i32 } 11 …type { %"struct.QHashData::Node"*, %"struct.QHashData::Node"**, %struct.Alignment, i32, i32, i16, … 16 %"struct.QListData::Data" = type { %struct.Alignment, i32, i32, i32, i8, [1 x i8*] } 25 …%struct.QWidgetData = type { i64, i32, %struct.Alignment, i8, i8, i16, %struct.QRect, %struct.QPal… 41 …%struct.Alignment*), i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init ; <i… 44 …ttr_t = weak alias i32 (%struct.Alignment*), i32 (%struct.Alignment*)* @pthread_mutexattr_init ; … 45 … weak alias i32 (%struct.Alignment*, i32), i32 (%struct.Alignment*, i32)* @pthread_mutexattr_setty… 46 …r_t = weak alias i32 (%struct.Alignment*), i32 (%struct.Alignment*)* @pthread_mutexattr_destroy ;… 98 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) { 110 define i32 @pthread_mutexattr_init(%struct.Alignment*) { [all …]
|
/external/llvm/test/CodeGen/Generic/ |
D | 2009-03-17-LSR-APInt.ll | 5 %struct.Alignment = type { i32 } 11 …type { %"struct.QHashData::Node"*, %"struct.QHashData::Node"**, %struct.Alignment, i32, i32, i16, … 16 %"struct.QListData::Data" = type { %struct.Alignment, i32, i32, i32, i8, [1 x i8*] } 25 …%struct.QWidgetData = type { i64, i32, %struct.Alignment, i8, i8, i16, %struct.QRect, %struct.QPal… 41 …%struct.Alignment*), i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init ; <i… 44 …ttr_t = weak alias i32 (%struct.Alignment*), i32 (%struct.Alignment*)* @pthread_mutexattr_init ; … 45 … weak alias i32 (%struct.Alignment*, i32), i32 (%struct.Alignment*, i32)* @pthread_mutexattr_setty… 46 …r_t = weak alias i32 (%struct.Alignment*), i32 (%struct.Alignment*)* @pthread_mutexattr_destroy ;… 98 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) { 110 define i32 @pthread_mutexattr_init(%struct.Alignment*) { [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | Loads.cpp | 39 static bool isAligned(const Value *Base, const APInt &Offset, Align Alignment, in isAligned() argument 43 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); in isAligned() 53 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument 65 return isDereferenceableAndAlignedPointer(BC->getOperand(0), Alignment, in isDereferenceableAndAlignedPointer() 79 return isAligned(V, Offset, Alignment, DL); in isDereferenceableAndAlignedPointer() 88 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer() 101 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer() 108 RelocateInst->getDerivedPtr(), Alignment, Size, DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer() 111 return isDereferenceableAndAlignedPointer(ASC->getOperand(0), Alignment, in isDereferenceableAndAlignedPointer() 116 return isDereferenceableAndAlignedPointer(RP, Alignment, Size, DL, CtxI, in isDereferenceableAndAlignedPointer() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineConstantPool.h | 48 unsigned Alignment) = 0; 76 unsigned Alignment; variable 79 : Alignment(A) { in MachineConstantPoolEntry() 84 : Alignment(A) { in MachineConstantPoolEntry() 86 Alignment |= 1U << (sizeof(unsigned) * CHAR_BIT - 1); in MachineConstantPoolEntry() 93 return (int)Alignment < 0; in isMachineConstantPoolEntry() 97 return Alignment & ~(1 << (sizeof(unsigned) * CHAR_BIT - 1)); in getAlignment() 142 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment); 144 unsigned Alignment);
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineConstantPool.h | 50 unsigned Alignment) = 0; 78 unsigned Alignment; variable 81 : Alignment(A) { in MachineConstantPoolEntry() 85 : Alignment(A) { in MachineConstantPoolEntry() 87 Alignment |= 1U << (sizeof(unsigned) * CHAR_BIT - 1); in MachineConstantPoolEntry() 94 return (int)Alignment < 0; in isMachineConstantPoolEntry() 98 return Alignment & ~(1 << (sizeof(unsigned) * CHAR_BIT - 1)); in getAlignment() 143 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment); 145 unsigned Alignment);
|
/external/eigen/Eigen/src/Core/functors/ |
D | AssignmentFunctors.h | 26 template<int Alignment, typename Packet> 28 { internal::pstoret<DstScalar,Packet,Alignment>(a,b); } in assignPacket() 51 template<int Alignment, typename Packet> 53 …{ internal::pstoret<DstScalar,Packet,Alignment>(a,internal::padd(internal::ploadt<Packet,Alignment… 72 template<int Alignment, typename Packet> 74 …{ internal::pstoret<DstScalar,Packet,Alignment>(a,internal::psub(internal::ploadt<Packet,Alignment… 94 template<int Alignment, typename Packet> 96 …{ internal::pstoret<DstScalar,Packet,Alignment>(a,internal::pmul(internal::ploadt<Packet,Alignment… 115 template<int Alignment, typename Packet> 117 …{ internal::pstoret<DstScalar,Packet,Alignment>(a,internal::pdiv(internal::ploadt<Packet,Alignment…
|