Home
last modified time | relevance | path

Searched refs:Align (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/external/libchrome/base/
Dbits_unittest.cc52 TEST(BitsTest, Align) { in TEST() argument
54 EXPECT_EQ(0ul, Align(0, 4)); in TEST()
55 EXPECT_EQ(4ul, Align(1, 4)); in TEST()
56 EXPECT_EQ(4096ul, Align(1, 4096)); in TEST()
57 EXPECT_EQ(4096ul, Align(4096, 4096)); in TEST()
58 EXPECT_EQ(4096ul, Align(4095, 4096)); in TEST()
59 EXPECT_EQ(8192ul, Align(4097, 4096)); in TEST()
60 EXPECT_EQ(kSizeTMax - 31, Align(kSizeTMax - 62, 32)); in TEST()
61 EXPECT_EQ(kSizeTMax / 2 + 1, Align(1, kSizeTMax / 2 + 1)); in TEST()
Dpickle.cc42 size_t aligned_size = bits::Align(size, sizeof(uint32_t)); in Advance()
226 header_size_(bits::Align(header_size, sizeof(uint32_t))), in Pickle()
246 if (header_size_ != bits::Align(header_size_, sizeof(uint32_t))) in Pickle()
314 size_t data_len = bits::Align(length, sizeof(uint32_t)); in Reserve()
327 capacity_after_header_ = bits::Align(new_capacity, kPayloadUnit); in Resize()
365 DCHECK_EQ(header_size, bits::Align(header_size, sizeof(uint32_t))); in PeekNext()
398 size_t data_len = bits::Align(length, sizeof(uint32_t)); in ClaimUninitializedBytesInternal()
409 new_capacity = bits::Align(new_capacity, kPickleHeapAlign) - kPayloadUnit; in ClaimUninitializedBytesInternal()
/external/llvm/tools/lli/
DRemoteMemoryManager.cpp102 unsigned Align = Section.Alignment; in notifyObjectLoaded() local
104 << ", alignment " << Align << "\n"); in notifyObjectLoaded()
107 CurOffset = (CurOffset + Align - 1) / Align * Align; in notifyObjectLoaded()
119 unsigned Align = Section.Alignment; in notifyObjectLoaded() local
121 << ", alignment " << Align << "\n"); in notifyObjectLoaded()
124 CurOffset = (CurOffset + Align - 1) / Align * Align; in notifyObjectLoaded()
/external/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp91 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() local
95 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
98 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset()
162 unsigned Align = MFI->getLocalFrameMaxAlign(); in calculateFrameObjectOffsets() local
165 Offset = (Offset + Align - 1) / Align * Align; in calculateFrameObjectOffsets()
180 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
/external/llvm/include/llvm/Support/
DRecycler.h29 void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize);
35 template<class T, size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment>
83 static_assert(AlignOf<SubClass>::Alignment <= Align, in Allocate()
88 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
104 template <class T, size_t Size, size_t Align>
105 void Recycler<T, Size, Align>::PrintStats() { in PrintStats()
109 PrintRecyclerStats(Size, Align, S); in PrintStats()
DRecyclingAllocator.h26 size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment>
31 Recycler<T, Size, Align> Base;
62 template<class AllocatorType, class T, size_t Size, size_t Align>
65 T, Size, Align> &Allocator) { in new()
70 template<class AllocatorType, class T, size_t Size, size_t Align>
73 T, Size, Align> &A) { in delete()
DTrailingObjects.h99 template <int Align>
131 template <int Align, typename BaseTy, typename TopTrailingObj, typename PrevTy,
138 template <int Align, typename BaseTy, typename TopTrailingObj, typename PrevTy,
140 struct TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, PrevTy, NextTy,
142 : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
145 typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
202 template <int Align, typename BaseTy, typename TopTrailingObj, typename PrevTy>
203 struct TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, PrevTy>
204 : public TrailingObjectsAligner<Align> {
/external/eigen/Eigen/src/Eigen2Support/
DMemory.h21 template<bool Align> inline void* ei_conditional_aligned_malloc(size_t size) in ei_conditional_aligned_malloc()
23 return internal::conditional_aligned_malloc<Align>(size); in ei_conditional_aligned_malloc()
25 template<bool Align> inline void ei_conditional_aligned_free(void *ptr) in ei_conditional_aligned_free()
27 internal::conditional_aligned_free<Align>(ptr); in ei_conditional_aligned_free()
29 template<bool Align> inline void* ei_conditional_aligned_realloc(void* ptr, size_t new_size, size_t… in ei_conditional_aligned_realloc()
31 return internal::conditional_aligned_realloc<Align>(ptr, new_size, old_size); in ei_conditional_aligned_realloc()
/external/clang/lib/CodeGen/
DCGBuilder.h99 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align,
101 return CreateAlignedLoad(Addr, Align.getQuantity(), Name);
103 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, in CreateAlignedLoad() argument
105 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); in CreateAlignedLoad()
108 CharUnits Align,
111 return CreateAlignedLoad(Addr, Align.getQuantity(), Name);
113 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align,
116 return CreateAlignedLoad(Addr, Align.getQuantity(), IsVolatile, Name);
129 CharUnits Align, bool IsVolatile = false) {
130 return CreateAlignedStore(Val, Addr, Align.getQuantity(), IsVolatile);
[all …]
/external/llvm/lib/Target/ARM/
DARMSelectionDAGInfo.cpp28 SDValue Size, unsigned Align, in EmitSpecializedLibcall() argument
71 if ((Align & 7) == 0) in EmitSpecializedLibcall()
73 else if ((Align & 3) == 0) in EmitSpecializedLibcall()
135 SDValue Size, unsigned Align, in EmitTargetCodeForMemcpy() argument
143 if ((Align & 3) != 0) in EmitTargetCodeForMemcpy()
149 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemcpy()
153 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemcpy()
254 SDValue Size, unsigned Align, in EmitTargetCodeForMemmove() argument
258 return EmitSpecializedLibcall(DAG, dl, Chain, Dst, Src, Size, Align, in EmitTargetCodeForMemmove()
267 unsigned Align, bool isVolatile, in EmitTargetCodeForMemset() argument
[all …]
DARMSelectionDAGInfo.h44 SDValue Size, unsigned Align,
52 SDValue Size, unsigned Align, bool isVolatile,
60 SDValue Op3, unsigned Align,
67 SDValue Size, unsigned Align,
/external/llvm/lib/IR/
DDataLayout.cpp493 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo() local
494 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo()
497 if (Align & (Align-1)) in getAlignmentInfo()
498 Align = NextPowerOf2(Align); in getAlignmentInfo()
499 return Align; in getAlignmentInfo()
510 unsigned Align = getTypeStoreSize(Ty); in getAlignmentInfo() local
511 if (Align & (Align-1)) in getAlignmentInfo()
512 Align = NextPowerOf2(Align); in getAlignmentInfo()
513 return Align; in getAlignmentInfo()
651 unsigned Align = getAlignmentInfo(AGGREGATE_ALIGN, 0, abi_or_pref, Ty); in getAlignment() local
[all …]
/external/llvm/include/llvm/CodeGen/
DCallingConvLower.h413 unsigned AllocateStack(unsigned Size, unsigned Align) { in AllocateStack() argument
414 assert(Align && ((Align - 1) & Align) == 0); // Align is power of 2. in AllocateStack()
415 StackOffset = RoundUpToAlignment(StackOffset, Align); in AllocateStack()
418 MaxStackArgAlign = std::max(Align, MaxStackArgAlign); in AllocateStack()
419 MF.getFrameInfo()->ensureMaxAlignment(Align); in AllocateStack()
424 unsigned AllocateStack(unsigned Size, unsigned Align, unsigned ShadowReg) { in AllocateStack() argument
426 return AllocateStack(Size, Align); in AllocateStack()
431 unsigned AllocateStack(unsigned Size, unsigned Align, in AllocateStack() argument
435 return AllocateStack(Size, Align); in AllocateStack()
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMemoryManagerTest.cpp129 unsigned Align = 8 << (i % 4); in TEST() local
131 code[i] = MemMgr->allocateCodeSection(CodeSize, Align, i, ""); in TEST()
132 data[i] = MemMgr->allocateDataSection(DataSize, Align, i + 10000, "", in TEST()
146 uintptr_t CodeAlign = Align ? (uintptr_t)code[i] % Align : 0; in TEST()
147 uintptr_t DataAlign = Align ? (uintptr_t)data[i] % Align : 0; in TEST()
/external/llvm/lib/Analysis/
DLoads.cpp66 unsigned Align) { in isSafeToLoadUnconditionally() argument
70 if (Align == 0) in isSafeToLoadUnconditionally()
71 Align = DL.getABITypeAlignment(V->getType()->getPointerElementType()); in isSafeToLoadUnconditionally()
72 assert(isPowerOf2_32(Align)); in isSafeToLoadUnconditionally()
108 if (Align <= BaseAlign) { in isSafeToLoadUnconditionally()
111 ((ByteOffset % Align) == 0)) in isSafeToLoadUnconditionally()
151 if (AccessedAlign < Align) in isSafeToLoadUnconditionally()
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp49 SDValue Size, unsigned Align, bool isVolatile, in EmitTargetCodeForMemset() argument
69 if ((Align & 3) != 0 || !ConstantSize || in EmitTargetCodeForMemset()
114 switch (Align & 3) { in EmitTargetCodeForMemset()
125 if (Subtarget.is64Bit() && ((Align & 0x7) == 0)) { // QWORD aligned in EmitTargetCodeForMemset()
189 Align, isVolatile, false, in EmitTargetCodeForMemset()
199 SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, in EmitTargetCodeForMemcpy() argument
216 if (!AlwaysInline && (Align & 3) != 0) in EmitTargetCodeForMemcpy()
231 if (Align & 1) in EmitTargetCodeForMemcpy()
233 else if (Align & 2) in EmitTargetCodeForMemcpy()
235 else if (Align & 4) in EmitTargetCodeForMemcpy()
[all …]
/external/llvm/lib/CodeGen/
DMachineFunction.cpp517 void MachineFrameInfo::ensureMaxAlignment(unsigned Align) { in ensureMaxAlignment() argument
519 assert(Align <= StackAlignment && in ensureMaxAlignment()
521 if (MaxAlignment < Align) MaxAlignment = Align; in ensureMaxAlignment()
525 static inline unsigned clampStackAlignment(bool ShouldClamp, unsigned Align, in clampStackAlignment() argument
527 if (!ShouldClamp || Align <= StackAlign) in clampStackAlignment()
528 return Align; in clampStackAlignment()
529 DEBUG(dbgs() << "Warning: requested alignment " << Align in clampStackAlignment()
586 unsigned Align = MinAlign(SPOffset, StackAlignment); in CreateFixedObject() local
587 Align = clampStackAlignment(!StackRealignable || !RealignOption, Align, in CreateFixedObject()
589 Objects.insert(Objects.begin(), StackObject(Size, Align, SPOffset, Immutable, in CreateFixedObject()
[all …]
/external/skia/include/views/
DSkStackViewLayout.h48 enum Align { enum
56 Align getAlign() const { return (Align)fAlign; } in getAlign()
57 void setAlign(Align);
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp206 CharUnits Align; in calculateOptimalPad() member
211 return std::make_pair(Align, -Size) < in calculateOptimalPad()
212 std::make_pair(RHS.Align, -RHS.Size); in calculateOptimalPad()
219 std::tie(RetVal.Size, RetVal.Align) = in calculateOptimalPad()
221 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
223 RetVal.Align = std::max(Ctx.toCharUnitsFromBits(Max), RetVal.Align); in calculateOptimalPad()
263 CharUnits NextOffset = NewOffset.RoundUpToAlignment(Fields[0].Align); in calculateOptimalPad()
/external/llvm/include/llvm/MC/
DMCSymbolMachO.h104 if (unsigned Align = getCommonAlignment()) { in getEncodedFlags() local
105 unsigned Log2Size = Log2_32(Align); in getEncodedFlags()
106 assert((1U << Log2Size) == Align && "Invalid 'common' alignment!"); in getEncodedFlags()
109 Twine(Align) + "' for '" + getName() + "'", in getEncodedFlags()
DMCSymbol.h338 void setCommon(uint64_t Size, unsigned Align) { in setCommon() argument
343 assert((!Align || isPowerOf2_32(Align)) && in setCommon()
345 unsigned Log2Align = Log2_32(Align) + 1; in setCommon()
362 bool declareCommon(uint64_t Size, unsigned Align) { in declareCommon() argument
365 if(CommonSize != Size || getCommonAlignment() != Align) in declareCommon()
368 setCommon(Size, Align); in declareCommon()
/external/eigen/Eigen/src/Core/util/
DMemory.h299 template<bool Align> inline void* conditional_aligned_malloc(size_t size) in conditional_aligned_malloc()
315 template<bool Align> inline void conditional_aligned_free(void *ptr) in conditional_aligned_free()
325 template<bool Align> inline void* conditional_aligned_realloc(void* ptr, size_t new_size, size_t ol… in conditional_aligned_realloc()
380 template<typename T, bool Align> inline T* conditional_aligned_new(size_t size) in conditional_aligned_new()
383 T *result = reinterpret_cast<T*>(conditional_aligned_malloc<Align>(sizeof(T)*size)); in conditional_aligned_new()
399 template<typename T, bool Align> inline void conditional_aligned_delete(T *ptr, size_t size) in conditional_aligned_delete()
402 conditional_aligned_free<Align>(ptr); in conditional_aligned_delete()
405 template<typename T, bool Align> inline T* conditional_aligned_realloc_new(T* pts, size_t new_size,… in conditional_aligned_realloc_new()
411 …T *result = reinterpret_cast<T*>(conditional_aligned_realloc<Align>(reinterpret_cast<void*>(pts), … in conditional_aligned_realloc_new()
418 template<typename T, bool Align> inline T* conditional_aligned_new_auto(size_t size) in conditional_aligned_new_auto()
[all …]
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp252 unsigned Align; in getMemberPointerWidthAndAlign() local
258 Align = 64; in getMemberPointerWidthAndAlign()
260 Align = Target.getPointerAlign(0); in getMemberPointerWidthAndAlign()
262 Align = Target.getIntAlign(); in getMemberPointerWidthAndAlign()
265 Width = llvm::RoundUpToAlignment(Width, Align); in getMemberPointerWidthAndAlign()
266 return std::make_pair(Width, Align); in getMemberPointerWidthAndAlign()
/external/llvm/test/CodeGen/X86/
Dstackmap-liveness.ll36 ; Align
51 ; Align
67 ; Align
98 ; Align
111 ; Align
130 ; Align
148 ; Align
167 ; Align
/external/llvm/utils/TableGen/
DCallingConvEmitter.cpp176 int Align = Action->getValueAsInt("Align"); in EmitAction() local
187 if (Align) in EmitAction()
188 O << Align; in EmitAction()
200 int Align = Action->getValueAsInt("Align"); in EmitAction() local
216 << Size << ", " << Align << ", " in EmitAction()
260 int Align = Action->getValueAsInt("Align"); in EmitAction() local
263 << Size << ", " << Align << ", ArgFlags);\n"; in EmitAction()

12345678910>>...13