Displaying 1 result from an estimated 1 matches for "1068682".
Did you mean:
  106868
  
2019 May 05
4
How to get CLang array alloca alignments to be smaller than 16 bytes?
I am working on a custom LLVM backend for a 16 bit architecture.
For my architecture, I need smaller array alignments for arrays created on the stack.
For example, consider the following code at the start of a C function:
  char localBuff[20];
  char localBuff2[6];
this gets converted by Clang into this:
  %localBuff = alloca [20 x i8], align 16
  %localBuff2 = alloca [6 x i8], align 1
Note