[llvm-dev] Default alignment for 'malloc'

Martin J. O'Riordan via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 3 04:55:14 PDT 2016


I am trying to implement some new alignment based optimisations in our
target backend, and I am wondering if there a way a target can specify that
'malloc', 'realloc' and 'calloc' always return a pointer to memory that is
aligned to a particular boundary?

 

Related too, is it possible to specify that the stack pointer always points
to memory which is aligned to a particular boundary?

 

Thanks,

 

            MartinO

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161003/a3d0313b/attachment.html>


More information about the llvm-dev mailing list