Home
last modified time | relevance | path

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

1234567891011

/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/llvm/include/llvm/Support/
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()
DRecycler.h29 void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize);
65 template<class T, size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment>
102 static_assert(AlignOf<SubClass>::Alignment <= Align,
108 static_cast<SubClass *>(Allocator.Allocate(Size, Align));
122 PrintRecyclerStats(Size, Align, FreeList.size());
/external/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp90 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() local
94 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
97 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset()
161 unsigned Align = MFI->getLocalFrameMaxAlign(); in calculateFrameObjectOffsets() local
164 Offset = (Offset + Align - 1) / Align * Align; in calculateFrameObjectOffsets()
179 MaxAlign = std::max(Align, MaxAlign); in calculateFrameObjectOffsets()
/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/include/llvm/CodeGen/
DCallingConvLower.h379 unsigned AllocateStack(unsigned Size, unsigned Align) { in AllocateStack() argument
380 assert(Align && ((Align-1) & Align) == 0); // Align is power of 2. in AllocateStack()
381 StackOffset = ((StackOffset + Align-1) & ~(Align-1)); in AllocateStack()
384 MF.getFrameInfo()->ensureMaxAlignment(Align); in AllocateStack()
389 unsigned AllocateStack(unsigned Size, unsigned Align, unsigned ShadowReg) { in AllocateStack() argument
391 return AllocateStack(Size, Align); in AllocateStack()
396 unsigned AllocateStack(unsigned Size, unsigned Align, in AllocateStack() argument
400 return AllocateStack(Size, Align); in AllocateStack()
/external/llvm/lib/Target/Hexagon/
DHexagonCallingConvLower.h163 unsigned AllocateStack(unsigned Size, unsigned Align) { in AllocateStack() argument
164 assert(Align && ((Align-1) & Align) == 0); // Align is power of 2. in AllocateStack()
165 StackOffset = ((StackOffset + Align-1) & ~(Align-1)); in AllocateStack()
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp36 SDValue Size, unsigned Align, in EmitTargetCodeForMemset() argument
49 if ((Align & 3) != 0 || !ConstantSize || in EmitTargetCodeForMemset()
93 switch (Align & 3) { in EmitTargetCodeForMemset()
104 if (Subtarget.is64Bit() && ((Align & 0x7) == 0)) { // QWORD aligned in EmitTargetCodeForMemset()
168 Align, isVolatile, DstPtrInfo.getWithOffset(Offset)); in EmitTargetCodeForMemset()
178 SDValue Size, unsigned Align, in EmitTargetCodeForMemcpy() argument
196 if (!AlwaysInline && (Align & 3) != 0) in EmitTargetCodeForMemcpy()
213 if (Align & 1) in EmitTargetCodeForMemcpy()
215 else if (Align & 2) in EmitTargetCodeForMemcpy()
217 else if (Align & 4) in EmitTargetCodeForMemcpy()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMemoryManagerTest.cpp130 unsigned Align = 8 << (i % 4); in TEST() local
132 code[i] = MemMgr->allocateCodeSection(CodeSize, Align, i, ""); in TEST()
133 data[i] = MemMgr->allocateDataSection(DataSize, Align, i + 10000, "", in TEST()
147 uintptr_t CodeAlign = Align ? (uintptr_t)code[i] % Align : 0; in TEST()
148 uintptr_t DataAlign = Align ? (uintptr_t)data[i] % Align : 0; in TEST()
/external/llvm/lib/CodeGen/
DPrologEpilogInserter.cpp303 unsigned Align = RC->getAlignment(); in calculateCalleeSavedRegisters() local
309 Align = std::min(Align, StackAlign); in calculateCalleeSavedRegisters()
310 FrameIdx = MFI->CreateStackObject(RC->getSize(), Align, true); in calculateCalleeSavedRegisters()
409 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() local
413 MaxAlign = std::max(MaxAlign, Align); in AdjustStackOffset()
416 Offset = (Offset + Align - 1) / Align * Align; in AdjustStackOffset()
495 unsigned Align = MFI->getObjectAlignment(i); in calculateFrameObjectOffsets() local
497 Offset = (Offset+Align-1)/Align*Align; in calculateFrameObjectOffsets()
504 unsigned Align = MFI->getObjectAlignment(i); in calculateFrameObjectOffsets() local
506 Offset = (Offset+Align-1)/Align*Align; in calculateFrameObjectOffsets()
[all …]
DMachineFunction.cpp492 void MachineFrameInfo::ensureMaxAlignment(unsigned Align) { in ensureMaxAlignment() argument
494 assert(Align <= getFrameLowering()->getStackAlignment() && in ensureMaxAlignment()
496 if (MaxAlignment < Align) MaxAlignment = Align; in ensureMaxAlignment()
500 static inline unsigned clampStackAlignment(bool ShouldClamp, unsigned Align, in clampStackAlignment() argument
502 if (!ShouldClamp || Align <= StackAlign) in clampStackAlignment()
503 return Align; in clampStackAlignment()
504 DEBUG(dbgs() << "Warning: requested alignment " << Align in clampStackAlignment()
571 unsigned Align = MinAlign(SPOffset, StackAlign); in CreateFixedObject() local
572 Align = clampStackAlignment(!getFrameLowering()->isStackRealignable() || in CreateFixedObject()
574 Align, getFrameLowering()->getStackAlignment()); in CreateFixedObject()
[all …]
DCallingConvLower.cpp46 unsigned Align = ArgFlags.getByValAlign(); in HandleByVal() local
50 if (MinAlign > (int)Align) in HandleByVal()
51 Align = MinAlign; in HandleByVal()
52 MF.getFrameInfo()->ensureMaxAlignment(Align); in HandleByVal()
53 TM.getTargetLowering()->HandleByVal(this, Size, Align); in HandleByVal()
54 unsigned Offset = AllocateStack(Size, Align); in HandleByVal()
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp178 unsigned Align; in getMemberPointerWidthAndAlign() local
184 Align = 8 * 8; in getMemberPointerWidthAndAlign()
186 Align = Target.getPointerAlign(0); in getMemberPointerWidthAndAlign()
188 Align = Target.getIntAlign(); in getMemberPointerWidthAndAlign()
191 Width = llvm::RoundUpToAlignment(Width, Align); in getMemberPointerWidthAndAlign()
192 return std::make_pair(Width, Align); in getMemberPointerWidthAndAlign()
/external/clang/lib/CodeGen/
DCGAtomic.cpp180 uint64_t Size, unsigned Align, in emitAtomicCmpXchg() argument
185 Expected->setAlignment(Align); in emitAtomicCmpXchg()
187 Desired->setAlignment(Align); in emitAtomicCmpXchg()
216 StoreExpected->setAlignment(Align); in emitAtomicCmpXchg()
234 uint64_t Size, unsigned Align, in emitAtomicCmpXchgFailureSet() argument
255 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, Align, in emitAtomicCmpXchgFailureSet()
280 Size, Align, SuccessOrder, llvm::Monotonic); in emitAtomicCmpXchgFailureSet()
286 Size, Align, SuccessOrder, llvm::Acquire); in emitAtomicCmpXchgFailureSet()
296 Size, Align, SuccessOrder, llvm::SequentiallyConsistent); in emitAtomicCmpXchgFailureSet()
308 uint64_t Size, unsigned Align, in EmitAtomicOp() argument
[all …]
/external/chromium_org/third_party/skia/include/views/
DSkStackViewLayout.h48 enum Align { enum
56 Align getAlign() const { return (Align)fAlign; } in getAlign()
57 void setAlign(Align);
/external/skia/include/views/
DSkStackViewLayout.h48 enum Align { enum
56 Align getAlign() const { return (Align)fAlign; } in getAlign()
57 void setAlign(Align);
/external/llvm/lib/IR/
DIRBuilder.cpp64 CreateMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Align, in CreateMemSet() argument
67 Value *Ops[] = { Ptr, Val, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemSet()
82 CreateMemCpy(Value *Dst, Value *Src, Value *Size, unsigned Align, in CreateMemCpy() argument
87 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemCpy()
106 CreateMemMove(Value *Dst, Value *Src, Value *Size, unsigned Align, in CreateMemMove() argument
111 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemMove()
/external/llvm/utils/TableGen/
DCallingConvEmitter.cpp174 int Align = Action->getValueAsInt("Align"); in EmitAction() local
183 if (Align) in EmitAction()
184 O << Align; in EmitAction()
194 int Align = Action->getValueAsInt("Align"); in EmitAction() local
210 << Size << ", " << Align << ", " in EmitAction()
240 int Align = Action->getValueAsInt("Align"); in EmitAction() local
243 << Size << ", " << Align << ", ArgFlags);\n"; in EmitAction()
/external/llvm/test/CodeGen/X86/
Dstackmap-liveness.ll36 ; Align
51 ; Align
67 ; Align
98 ; Align
111 ; Align
130 ; Align
148 ; Align
167 ; Align
/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/llvm/lib/Target/ARM/
DARMMachineFunctionInfo.h142 unsigned getArgRegsSaveSize(unsigned Align = 0) const {
143 if (!Align)
145 return (ArgRegsSaveSize + Align - 1) & ~(Align - 1);
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_misc.cpp218 unsigned Align) in lp_set_load_alignment() argument
220 llvm::unwrap<llvm::LoadInst>(Inst)->setAlignment(Align); in lp_set_load_alignment()
226 unsigned Align) in lp_set_store_alignment() argument
228 llvm::unwrap<llvm::StoreInst>(Inst)->setAlignment(Align); in lp_set_store_alignment()
/external/skia/src/core/
DSkDrawProcs.h92 SkTextAlignProc(SkPaint::Align align) in SkTextAlignProc()
112 const SkPaint::Align fAlign;
117 SkTextAlignProcScalar(SkPaint::Align align) in SkTextAlignProcScalar()
136 const SkPaint::Align fAlign;
/external/chromium_org/third_party/skia/src/core/
DSkDrawProcs.h92 SkTextAlignProc(SkPaint::Align align) in SkTextAlignProc()
112 const SkPaint::Align fAlign;
117 SkTextAlignProcScalar(SkPaint::Align align) in SkTextAlignProcScalar()
136 const SkPaint::Align fAlign;
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
Dlp_bld_misc.cpp218 unsigned Align) in lp_set_load_alignment() argument
220 llvm::unwrap<llvm::LoadInst>(Inst)->setAlignment(Align); in lp_set_load_alignment()
226 unsigned Align) in lp_set_store_alignment() argument
228 llvm::unwrap<llvm::StoreInst>(Inst)->setAlignment(Align); in lp_set_store_alignment()

1234567891011