search for: classpoint

Displaying 4 results from an estimated 4 matches for "classpoint".

Did you mean: classint
2010 Aug 09
3
[LLVMdev] llvm "iword" type
Hi, I'm generating some LLVM IR that has to mask out the lower bits two bits of a certain pointers. I expect this should be done like so (on a 32-bit architecture) ... %classPointer = ... %classPointer1 = ptrtoint i8** %classPointer to i32 %classPointer2 = and i32 -4, %classPointer1 %realClassPointer = inttoptr i32 %classPointer2 to i8** ... Ideally, I'd like to generate completely architecture-independent code, which brings me to my question: Does LLVM have some sort o...
2010 Aug 09
0
[LLVMdev] llvm "iword" type
...Mon, Aug 9, 2010 at 5:44 PM, Joshua Warner <joshuawarner32 at gmail.com> wrote: > Hi, > > I'm generating some LLVM IR that has to mask out the lower bits two bits of > a certain pointers.  I expect this should be done like so (on a 32-bit > architecture) > > ... > %classPointer = ... > %classPointer1 = ptrtoint i8** %classPointer to i32 > %classPointer2 = and i32 -4, %classPointer1 > %realClassPointer = inttoptr i32 %classPointer2 to i8** > ... > > Ideally, I'd like to generate completely architecture-independent code, > which brings me to my qu...
2010 Aug 09
3
[LLVMdev] llvm "iword" type
...hua Warner <joshuawarner32 at gmail.com> wrote: >> Hi, >> >> I'm generating some LLVM IR that has to mask out the lower bits two bits of >> a certain pointers.  I expect this should be done like so (on a 32-bit >> architecture) >> >> ... >> %classPointer = ... >> %classPointer1 = ptrtoint i8** %classPointer to i32 >> %classPointer2 = and i32 -4, %classPointer1 >> %realClassPointer = inttoptr i32 %classPointer2 to i8** >> ... >> >> Ideally, I'd like to generate completely architecture-independent code, >&...
2010 Aug 09
0
[LLVMdev] llvm "iword" type
...; wrote: > >> Hi, > >> > >> I'm generating some LLVM IR that has to mask out the lower bits two bits > of > >> a certain pointers. I expect this should be done like so (on a 32-bit > >> architecture) > >> > >> ... > >> %classPointer = ... > >> %classPointer1 = ptrtoint i8** %classPointer to i32 > >> %classPointer2 = and i32 -4, %classPointer1 > >> %realClassPointer = inttoptr i32 %classPointer2 to i8** > >> ... > >> > >> Ideally, I'd like to generate completely archit...