search for: getptrptrfromarrayptr

Displaying 6 results from an estimated 6 matches for "getptrptrfromarrayptr".

2006 Mar 25
1
[LLVMdev] could you give me some advice ?
hi I have one llvm program like this : ... ; define ConstantArray "E1$str" = internal constant [3 x sbyte] c"E1\00" ; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray "E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0) ... when i want to get std::string object from this declaration in another program Module* m = loadModule("XXX.bc"); Constant* c = fin...
2006 Mar 27
1
[LLVMdev] could you give me some advice ?
...ing str = ca->getAsString(); I feel this code a little awkward . I wonder whether it should to be improved ? thanks again >On Sat, 25 Mar 2006, lizhuo wrote: >> ; define ConstantArray >> "E1$str" = internal constant [3 x sbyte] c"E1\00" >> >> ; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray >> "E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0) >> ... >> >> when i want to get std::string object from this declaration in another program >> >> Module* m = l...
2006 Mar 26
0
[LLVMdev] could you give me some advice ?
lizhuo,您好! 不是很明白你的意思,好像你想从一个ConstantExpr::getPtrPtrFromArrayPtr 指针得到这个ConstantExpr 的内容, 但你的困难在哪里? ======= 2006-03-25 22:04:14 您在来信中写道:======= >hi >I have one llvm program like this : >.. >; define ConstantArray >"E1$str" = internal constant [3 x sbyte] c"E1\00" > >; use getPtrPtrFromArrayPtr to define SB...
2006 Mar 27
0
[LLVMdev] could you give me some advice ?
...om table , I want to get the string pointed by E1$entry . Now is there a simple solution to get the string object ? thanks. >On Sat, 25 Mar 2006, lizhuo wrote: >> ; define ConstantArray >> "E1$str" = internal constant [3 x sbyte] c"E1\00" >> >> ; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray >> "E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0) >> ... >> >> when i want to get std::string object from this declaration in another program >> >> Module* m = l...
2005 Apr 07
0
[LLVMdev] arguments to standard library functions
Right now I am trying to capture the function name and the number of arguments , so this following is the pass I wrote . ------------------------------------------------------------- struct pass06a : public ModulePass { virtual bool runOnModule(Module &M) { std::vector<const Type*> pList; pList.push_back( PointerType::get(Type::SByteTy) ); pList.push_back(
2005 Mar 21
3
[LLVMdev] arguments to standard library functions
HI , I understand that the standard C library functions are executed using the native library of the host machine. ( for example when we execute a bytecode to extract the profile info ) Is it possible to extract for each standard library function that is executed , the arguments that the function is called with. For example if printf ("%d", some_int ) when called during runtime