search for: classpointer2

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

Did you mean: classpointer
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 of i<target_ptr_size> type that I can cast to to do this masking (like...
2010 Aug 09
0
[LLVMdev] llvm "iword" type
...te: > 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 of > i<target_ptr_size> type that I can cas...
2010 Aug 09
3
[LLVMdev] llvm "iword" type
...;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 of >> i<target_ptr_size...
2010 Aug 09
0
[LLVMdev] llvm "iword" type
...ask 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 of >...