Displaying 3 results from an estimated 3 matches for "gvalignment".
Did you mean:
valignment
2012 Sep 06
3
[LLVMdev] Preferred alignment of globals > 16bytes
...l globals bigger than 16 bytes are being 16
byte aligned by LLVM (assuming there isn't an explicitly requested
alignment). I'd really rather avoid this, at least for the XCore
backend. I tracked this down to the following code in TargetData.cpp:
if (GV->hasInitializer() && GVAlignment == 0) {
if (Alignment < 16) {
// If the global is not external, see if it is large. If so,
give it a
// larger alignment.
if (getTypeSizeInBits(ElemType) > 128)
Alignment = 16; // 16-byte alignment.
}
}
I was a bit surprised to see these number...
2012 Sep 06
0
[LLVMdev] Preferred alignment of globals > 16bytes
...bals bigger than 16 bytes are being 16 byte aligned by LLVM (assuming there isn't an explicitly requested alignment). I'd really rather avoid this, at least for the XCore backend. I tracked this down to the following code in TargetData.cpp:
>
> if (GV->hasInitializer() && GVAlignment == 0) {
> if (Alignment < 16) {
> // If the global is not external, see if it is large. If so, give it a
> // larger alignment.
> if (getTypeSizeInBits(ElemType) > 128)
> Alignment = 16; // 16-byte alignment.
> }
> }
>
> I was a bit...
2012 Sep 07
2
[LLVMdev] Preferred alignment of globals > 16bytes
...ger than 16 bytes are being 16 byte aligned by LLVM (assuming there isn't an explicitly requested alignment). I'd really rather avoid this, at least for the XCore backend. I tracked this down to the following code in TargetData.cpp:
>>
>> if (GV->hasInitializer() && GVAlignment == 0) {
>> if (Alignment < 16) {
>> // If the global is not external, see if it is large. If so, give it a
>> // larger alignment.
>> if (getTypeSizeInBits(ElemType) > 128)
>> Alignment = 16; // 16-byte alignment.
>> }...