Displaying 4 results from an estimated 4 matches for "setelement".
Did you mean:
getelement
2010 Oct 19
4
[LLVMdev] Structure memory layout
...n time using llvm-gcc and then changing common type to target specific types at code generation time using llc (reconstruct StructLayout).
Second, I have been adding two new intrinsic functions as following.
1. "getelement" intrinsic function to load from bitfield of struct type.
2. "setelement" intrinsic function to store to bitfied of struct type.
I would like to how do LLVM developers think about above concept.
(advices, problems, other solutions etc...)
Thanks,
Jin-Gu Kang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org...
2010 Oct 19
0
[LLVMdev] Structure memory layout
...the struct type is pretty much target
agnostic. What kind of target-specific structure modifications do you
have in mind?
> Second, I have been adding two new intrinsic functions as following.
> 1. "getelement" intrinsic function to load from bitfield of struct type.
> 2. "setelement" intrinsic function to store to bitfied of struct type.
Bitfields and unions can make the IR a big mess. Analysing the memory
layout of the bitfield is not trivial and the low level bit fiddling
you have to do is too big and ugly to be in IR. An instruction that
knows that would be beneficial...
2010 Oct 19
2
[LLVMdev] Structure memory layout
...2 @main() nounwind {
11 entry:
12 %retval = alloca i32 ; <i32*> [#uses=1]
13 %a = alloca i32 ; <i32*> [#uses=0]
14 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
15 call void @llvm.setelement.i2(i8* bitcast (i4* getelementptr (%struct.test* bitcast (%0* @vm to %struct.test*), i32 1, i32 1) to i8*), i2 1)
16 br label %return
17
18 return: ; preds = %entry
19 %retval1 = load i32* %retval ; <i32> [#uses=1]
20 ret...
2003 Mar 06
1
[stuart.leask@nottingham.ac.uk: R in your pocket on a Sharp Zaurus]
Ah, but the interesting thing is that they are coming out with a 'clam'
version like the 5MX. Details are limited at the moment, but that could
mean the combination of 5MX usability with a supported linux distro. I
am drooling in anticipation. Sounds like a "I've finally finished my
PhD and deserve a treat" situation to me :)
Dave
On Thu, Mar 06, 2003 at 09:17:20AM