search for: largearrayminsize

Displaying 2 results from an estimated 2 matches for "largearrayminsize".

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
2019 May 05
2
How to get CLang array alloca alignments to be smaller than 16 bytes?
..."datalayout") that's a good first step. At some point you'll want to > actually think about the ABI decisions you've made and perhaps modify > them (like this array issue), but to begin with you can leave it as > is. > >> On the other hand I’m unable to find LargeArrayMinSize in any project files (not even in lib/Basic/Targets/X86.cpp) > > Sorry, I think that may actually be "LargeArrayMinWidth". I > investigated on a different computer to where I typed up my first > reply so didn't have the exact text on screen. > >> LargeArrayAlign...