Home
last modified time | relevance | path

Searched refs:Alignment (Results 1 – 25 of 263) sorted by relevance

1234567891011

/external/deqp/framework/delibs/decpp/
DdePoolArray.hpp38 template<typename T, deUint32 Alignment>
41 template<typename T, deUint32 Alignment>
51 template<typename T, deUint32 Alignment = (sizeof(T) > 4 ? 4 : sizeof(T))>
55 typedef PoolArrayIterator<T, Alignment> Iterator;
56 typedef PoolArrayConstIterator<T, Alignment> ConstIterator;
59 PoolArray (MemPool* pool, const PoolArray<T, Alignment>& other);
92 …PoolArray (const PoolArray<T, Alignment>& other); // \note Default copy ctor is not allowed, use…
105 template<typename T, deUint32 Alignment>
118 template<typename T, deUint32 Alignment>
119 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment>
[all …]
DdeArrayBuffer.hpp47 template <typename T, size_t Alignment = (sizeof(T) > 4 ? 4 : sizeof(T)), size_t Stride = sizeof(T)>
73 template <typename T, size_t Alignment, size_t Stride>
74 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (void) throw() in ArrayBuffer()
80 template <typename T, size_t Alignment, size_t Stride>
81 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer()
89 void* const ptr = detail::ArrayBuffer_AlignedMalloc(storageSize, Alignment); in ArrayBuffer()
99 template <typename T, size_t Alignment, size_t Stride>
100 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const ArrayBuffer<T,Alignment,Stride>& other) in ArrayBuffer() argument
116 template <typename T, size_t Alignment, size_t Stride>
117 ArrayBuffer<T,Alignment,Stride>::~ArrayBuffer (void) throw() in ~ArrayBuffer()
[all …]
/external/llvm/lib/ExecutionEngine/MCJIT/
DSectionMemoryManager.cpp22 unsigned Alignment, in allocateDataSection() argument
27 return allocateSection(RODataMem, Size, Alignment); in allocateDataSection()
28 return allocateSection(RWDataMem, Size, Alignment); in allocateDataSection()
32 unsigned Alignment, in allocateCodeSection() argument
35 return allocateSection(CodeMem, Size, Alignment); in allocateCodeSection()
40 unsigned Alignment) { in allocateSection() argument
41 if (!Alignment) in allocateSection()
42 Alignment = 16; in allocateSection()
44 assert(!(Alignment & (Alignment - 1)) && "Alignment must be a power of two."); in allocateSection()
46 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection()
[all …]
/external/llvm/unittests/Support/
DAlignOfTest.cpp92 [AlignOf<char>::Alignment > 0]
93 [AlignOf<short>::Alignment > 0]
94 [AlignOf<int>::Alignment > 0]
95 [AlignOf<long>::Alignment > 0]
96 [AlignOf<long long>::Alignment > 0]
97 [AlignOf<float>::Alignment > 0]
98 [AlignOf<double>::Alignment > 0]
99 [AlignOf<long double>::Alignment > 0]
100 [AlignOf<void *>::Alignment > 0]
101 [AlignOf<int *>::Alignment > 0]
[all …]
/external/llvm/lib/Transforms/Utils/
DASanStackFrameLayout.cpp29 return a.Alignment > b.Alignment; in CompareVars()
43 static size_t VarAndRedzoneSize(size_t Size, size_t Alignment) { in VarAndRedzoneSize() argument
51 return RoundUpTo(Res, Alignment); in VarAndRedzoneSize()
65 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout()
71 Layout->FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout()
75 Vars[0].Alignment); in ComputeASanStackFrameLayout()
80 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local
81 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout()
84 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout()
85 assert(Layout->FrameAlignment >= Alignment); in ComputeASanStackFrameLayout()
[all …]
/external/llvm/include/llvm/Support/
DAlignOf.h39 enum { Alignment = enumerator
42 enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 };
43 enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 };
44 enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 };
45 enum { Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 : 0 };
47 enum { Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 : 0 };
48 enum { Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 : 0 };
49 enum { Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 : 0 };
50 enum { Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 : 0 };
58 inline unsigned alignOf() { return AlignOf<T>::Alignment; } in alignOf()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineConstantPool.h56 unsigned Alignment) = 0;
85 unsigned Alignment; variable
88 : Alignment(A) { in MachineConstantPoolEntry()
92 : Alignment(A) { in MachineConstantPoolEntry()
94 Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1); in MachineConstantPoolEntry()
101 return (int)Alignment < 0; in isMachineConstantPoolEntry()
105 return Alignment & ~(1 << (sizeof(unsigned)*CHAR_BIT-1)); in getAlignment()
155 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment);
156 unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
DJITCodeEmitter.h75 unsigned Alignment) = 0;
151 void emitAlignment(unsigned Alignment) { in emitAlignment() argument
152 if (Alignment == 0) Alignment = 1; in emitAlignment()
154 Alignment); in emitAlignment()
160 void emitAlignmentWithFill(unsigned Alignment, uint8_t Fill) { in emitAlignmentWithFill() argument
161 if (Alignment == 0) Alignment = 1; in emitAlignmentWithFill()
163 Alignment); in emitAlignmentWithFill()
256 void *allocateSpace(uintptr_t Size, unsigned Alignment) override { in allocateSpace() argument
257 emitAlignment(Alignment); in allocateSpace()
276 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
DMachineCodeEmitter.h163 void emitAlignment(unsigned Alignment) { in emitAlignment() argument
164 if (Alignment == 0) Alignment = 1; in emitAlignment()
166 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) { in emitAlignment()
169 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) & in emitAlignment()
170 ~(uintptr_t)(Alignment-1)); in emitAlignment()
258 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() argument
259 emitAlignment(Alignment); in allocateSpace()
/external/llvm/test/CodeGen/Generic/
D2009-03-17-LSR-APInt.ll5 %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.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init ; <i32 (%struct.pthread_mutex_…
44 …thread_mutexattr_t = alias weak i32 (%struct.Alignment*)* @pthread_mutexattr_init ; <i32 (%struct…
45 …d_mutexattr_ti = alias weak i32 (%struct.Alignment*, i32)* @pthread_mutexattr_settype ; <i32 (%st…
46 …read_mutexattr_t = alias weak i32 (%struct.Alignment*)* @pthread_mutexattr_destroy ; <i32 (%struc…
98 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) {
110 define i32 @pthread_mutexattr_init(%struct.Alignment*) {
[all …]
/external/clang/lib/Sema/
DSemaAttr.cpp34 unsigned Alignment; member
44 unsigned Alignment; member in __anonae398fe90111::PragmaPackStack
51 PragmaPackStack() : Alignment(0) {} in PragmaPackStack()
53 void setAlignment(unsigned A) { Alignment = A; } in setAlignment()
54 unsigned getAlignment() { return Alignment; } in getAlignment()
59 PackStackEntry PSE = { Alignment, Name }; in push()
81 if (!Alignment) in pop()
85 Alignment = 0; in pop()
87 Alignment = Stack.back().Alignment; in pop()
99 Alignment = Stack[i].Alignment; in pop()
[all …]
/external/clang/lib/CodeGen/
DCGValue.h137 int64_t Alignment; variable
171 CharUnits Alignment,
175 this->Alignment = Alignment.getQuantity();
176 assert(this->Alignment == Alignment.getQuantity() &&
260 CharUnits getAlignment() const { return CharUnits::fromQuantity(Alignment); } in getAlignment()
261 void setAlignment(CharUnits A) { Alignment = A.getQuantity(); } in setAlignment()
308 QualType type, CharUnits Alignment) { in MakeVectorElt() argument
313 R.Initialize(type, type.getQualifiers(), Alignment); in MakeVectorElt()
318 QualType type, CharUnits Alignment) { in MakeExtVectorElt() argument
323 R.Initialize(type, type.getQualifiers(), Alignment); in MakeExtVectorElt()
[all …]
/external/chromium_org/ui/views/controls/
Dimage_view.h31 enum Alignment { enum
67 void SetHorizontalAlignment(Alignment ha);
68 Alignment GetHorizontalAlignment() const;
71 void SetVerticalAlignment(Alignment va);
72 Alignment GetVerticalAlignment() const;
114 Alignment horiz_alignment_;
117 Alignment vert_alignment_;
/external/llvm/tools/lli/
DRemoteMemoryManager.h34 : MB(mb), Alignment(a), IsCode(code) {} in Allocation()
37 unsigned Alignment; member
69 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
73 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
106 unsigned Alignment) override;
109 uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) override;
110 uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) override;
DRemoteMemoryManager.cpp33 allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, in allocateCodeSection() argument
41 AllocatedSections.push_back( Allocation(Block, Alignment, true) ); in allocateCodeSection()
43 UnmappedSections.push_back( Allocation(Block, Alignment, true) ); in allocateCodeSection()
48 allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument
57 AllocatedSections.push_back( Allocation(Block, Alignment, false) ); in allocateDataSection()
59 UnmappedSections.push_back( Allocation(Block, Alignment, false) ); in allocateDataSection()
102 unsigned Align = Section.Alignment; in notifyObjectLoaded()
119 unsigned Align = Section.Alignment; in notifyObjectLoaded()
189 unsigned Alignment) { in allocateStub() argument
197 uint8_t *RemoteMemoryManager::allocateSpace(intptr_t Size, unsigned Alignment) { in allocateSpace() argument
[all …]
/external/llvm/lib/CodeGen/
DMachineFunction.cpp73 Alignment = TM.getTargetLowering()->getMinFunctionAlignment(); in MachineFunction()
78 Alignment = std::max(Alignment, in MachineFunction()
513 int MachineFrameInfo::CreateStackObject(uint64_t Size, unsigned Alignment, in CreateStackObject() argument
516 Alignment = in CreateStackObject()
519 Alignment, getFrameLowering()->getStackAlignment()); in CreateStackObject()
520 Objects.push_back(StackObject(Size, Alignment, 0, false, isSS, Alloca)); in CreateStackObject()
523 ensureMaxAlignment(Alignment); in CreateStackObject()
532 unsigned Alignment) { in CreateSpillStackObject() argument
533 Alignment = clampStackAlignment( in CreateSpillStackObject()
534 !getFrameLowering()->isStackRealignable() || !RealignOption, Alignment, in CreateSpillStackObject()
[all …]
/external/chromium_org/ui/views/layout/
Dgrid_layout.h73 enum Alignment { enum
151 void AddView(View* view, int col_span, int row_span, Alignment h_align,
152 Alignment v_align);
160 Alignment h_align, Alignment v_align,
291 void AddColumn(GridLayout::Alignment h_align,
292 GridLayout::Alignment v_align,
315 void AddColumn(GridLayout::Alignment h_align,
316 GridLayout::Alignment v_align,
/external/lldb/source/Expression/
DIRExecutionUnit.cpp441 unsigned Alignment) in allocateStub() argument
445 uint8_t *return_value = m_default_mm_ap->allocateStub(F, StubSize, Alignment); in allocateStub()
450 Alignment)); in allocateStub()
455 F, StubSize, Alignment, return_value); in allocateStub()
470 IRExecutionUnit::MemoryManager::allocateSpace(intptr_t Size, unsigned Alignment) in allocateSpace() argument
474 uint8_t *return_value = m_default_mm_ap->allocateSpace(Size, Alignment); in allocateSpace()
479 Alignment)); in allocateSpace()
484 (uint64_t)Size, Alignment, return_value); in allocateSpace()
492 unsigned Alignment, in allocateCodeSection() argument
497 uint8_t *return_value = m_default_mm_ap->allocateCodeSection(Size, Alignment, SectionID); in allocateCodeSection()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITCAPITest.cpp100 void useSpace(uintptr_t* UsedSize, uintptr_t Size, unsigned Alignment) { in useSpace() argument
101 uintptr_t AlignedSize = (Size + Alignment - 1) / Alignment * Alignment; in useSpace()
102 uintptr_t AlignedBegin = (*UsedSize + Alignment - 1) / Alignment * Alignment; in useSpace()
106 virtual uint8_t* allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() argument
108 useSpace(IsReadOnly ? &UsedDataSizeRO : &UsedDataSizeRW, Size, Alignment); in allocateDataSection()
109 return SectionMemoryManager::allocateDataSection(Size, Alignment, in allocateDataSection()
113 uint8_t* allocateCodeSection(uintptr_t Size, unsigned Alignment, in allocateCodeSection() argument
115 useSpace(&UsedCodeSize, Size, Alignment); in allocateCodeSection()
116 return SectionMemoryManager::allocateCodeSection(Size, Alignment, in allocateCodeSection()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp537 CharUnits Alignment; member in __anond999b0ee0111::RecordLayoutBuilder
630 Alignment(CharUnits::One()), UnpackedAlignment(CharUnits::One()), in RecordLayoutBuilder()
649 Alignment = UnpackedAlignment = TargetAlignment; in resetWithTargetAlignment()
753 CharUnits getAligment() const { return Alignment; } in getAligment()
1202 Alignment = CharUnits::One(); in LayoutBase()
1241 Alignment = CharUnits::fromQuantity(2); in InitializeLayout()
1263 Alignment = Context.toCharUnitsFromBits(ExternalAlign); in InitializeLayout()
1292 NonVirtualAlignment = Alignment; in Layout()
1792 = llvm::RoundUpToAlignment(getSizeInBits(), Context.toBits(Alignment)); in FinishLayout()
1799 Alignment = CharUnits::One(); in FinishLayout()
[all …]
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp95 unsigned long long Alignment = 0; in LayoutOverrideSource() local
96 (void)LineStr.getAsInteger(10, Alignment); in LayoutOverrideSource()
97 CurrentLayout.Align = Alignment; in LayoutOverrideSource()
118 unsigned long long Alignment = 0; in LayoutOverrideSource() local
119 (void)LineStr.getAsInteger(10, Alignment); in LayoutOverrideSource()
120 CurrentLayout.Align = Alignment; in LayoutOverrideSource()
157 uint64_t &Size, uint64_t &Alignment, in layoutRecordType() argument
187 Alignment = Known->second.Align; in layoutRecordType()
/external/llvm/lib/ExecutionEngine/JIT/
DJITMemoryManager.cpp442 uint8_t *allocateSpace(intptr_t Size, unsigned Alignment) override { in allocateSpace() argument
448 if (Alignment == 0) Alignment = 1; in allocateSpace()
449 result = (uint8_t*)(((intptr_t)result+Alignment-1) & in allocateSpace()
450 ~(intptr_t)(Alignment-1)); in allocateSpace()
460 unsigned Alignment) override { in allocateStub() argument
461 return (uint8_t*)StubAllocator.Allocate(StubSize, Alignment); in allocateStub()
465 uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment) override { in allocateGlobal() argument
466 return (uint8_t*)DataAllocator.Allocate(Size, Alignment); in allocateGlobal()
470 uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment, in allocateCodeSection() argument
477 if (!Alignment) in allocateCodeSection()
[all …]
/external/eigen/test/
Dmapstride.cpp12 template<int Alignment,typename VectorType> void map_class_vector(const VectorType& m) in map_class_vector()
25 if(Alignment!=Aligned) in map_class_vector()
29 Map<VectorType, Alignment, InnerStride<3> > map(array, size); in map_class_vector()
51 template<int Alignment,typename MatrixType> void map_class_matrix(const MatrixType& _m) in map_class_matrix()
64 if(Alignment!=Aligned) in map_class_matrix()
69 …Map<MatrixType, Alignment, OuterStride<Dynamic> > map(array, rows, cols, OuterStride<Dynamic>(m.in… in map_class_matrix()
87 Map<MatrixType, Alignment, OuterStride<OuterStrideAtCompileTime> > in map_class_matrix()
101 …Map<MatrixType, Alignment, Stride<Dynamic,Dynamic> > map(array, rows, cols, Stride<Dynamic,Dynamic… in map_class_matrix()
/external/llvm/lib/IR/
DAttributes.cpp81 return get(Context, Alignment, Align); in getWithAlignment()
146 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
244 if (hasAttribute(Attribute::Alignment)) { in getAsString()
377 case Attribute::Alignment: return 31 << 16; in getAttrMask()
473 if (I->hasAttribute(Attribute::Alignment)) in getAlignment()
514 if (Kind == Attribute::Alignment) in Raw()
617 if (Kind == Attribute::Alignment) in get()
758 assert(!Attrs.hasAttribute(Index, Attribute::Alignment) && in removeAttributes()
959 : Attrs(0), Alignment(0), StackAlignment(0) { in AttrBuilder()
976 Alignment = StackAlignment = 0; in clear()
[all …]
/external/llvm/lib/Target/Mips/
DMipsFrameLowering.h28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) in MipsFrameLowering() argument
29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {} in MipsFrameLowering()

1234567891011