Displaying 5 results from an estimated 5 matches for "_alignof".
Did you mean:
alignof
2016 Jan 14
3
Aligning Long Long Vairables
Hi,
I'm trying to align long long variable on a 4 byte boundary. I tried
to change to clang frontend as follow:
LongLongAlign = 32 ; LongLongWidth = 64;
The asm output is still 8 bytes, when I declare a long long global array:
.align 8
How can I change the alignment from 8 byte to 4 byte for long long
variables? Do I need to write an ASMprinter class or change something
in my backend?
2009 May 02
1
[LLVMdev] PointerIntPair causing trouble
...works for you as well.
>
> To actually solve this properly I see two main options:
>
> (1) we could specialize PointerLikeTypeTraits for User*, and leave
> the default value of NumLowBitsAvailable at 3.
> (2) we could drop the default NumLowBitsAvailable to 2 (or even use
> _alignof and similar compiler-specific extensions to determine it),
> and allow classes that assert that they are only ever allocated
> through malloc to relax it back up to 3.
>
Something like this device should suffice; no need for extensions.
template<typename T>
class alignment_of {...
2009 May 01
0
[LLVMdev] PointerIntPair causing trouble
...if you
could verify that this works for you as well.
To actually solve this properly I see two main options:
(1) we could specialize PointerLikeTypeTraits for User*, and leave the
default value of NumLowBitsAvailable at 3.
(2) we could drop the default NumLowBitsAvailable to 2 (or even use
_alignof and similar compiler-specific extensions to determine it),
and allow classes that assert that they are only ever allocated
through malloc to relax it back up to 3.
My preference would be for option (2), due to the difficulty of
tracking this bug down, and the risk of future similar bugs happ...
2009 May 01
7
[LLVMdev] PointerIntPair causing trouble
Hi all,
I've located a regression that causes my project to crash. It's in revision
67979, where PointerIntPair is changed from storing the integer in the upper
bits instead of the lower bits. My project is an experimental JIT-compiler
in Windows.
So I was wondering if anyone had any clue why the new PointerIntPair
implementation might fail. It doesn't seem very safe to me to
2015 Jul 22
2
[LLVMdev] (no subject)
Hello,
I have tried a lot fix this error but am not able to can you please
find me a solution am trying to compile the SAFECode in Cygwin Environment
to work for windows.
used make -j4 command to make the files in cygwin i have got this error
make[5]: Leaving directory
'/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/include'
/usr/bin/cp: cannot stat