Searched refs:AlignPtr (Results 1 - 2 of 2) sorted by relevance

/external/llvm/lib/Support/
H A DAllocator.cpp32 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
33 /// be a power of two. This method rounds up, so AlignPtr(7, 4) == 8 and
34 /// AlignPtr(8, 4) == 8.
35 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { function in class:llvm::BumpPtrAllocator
100 char *Ptr = AlignPtr(CurPtr, Alignment);
118 Ptr = AlignPtr((char*)(NewSlab + 1), Alignment);
125 Ptr = AlignPtr(CurPtr, Alignment);
/external/llvm/include/llvm/Support/
H A DAllocator.h123 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
124 /// be a power of two. This method rounds up, so AlignPtr(7, 4) == 8 and
125 /// AlignPtr(8, 4) == 8.
126 static char *AlignPtr(char *Ptr, size_t Alignment);
209 Ptr = Allocator.AlignPtr(Ptr, alignOf<T>());

Completed in 67 milliseconds