Displaying 3 results from an estimated 3 matches for "_z14printhashtablev".
2013 Jul 25
1
[LLVMdev] Passing String to an external function in llvm
...ation of function hashtable() is like
void hashtable(string expr) //in hashtable.cpp
So in getOrInsertFunction() I have to pass some more details like
getOrInsertFunction (name of function in IR, Return type of function, List
of argument for the function, etc.)
i.e. getOrInsertFunction("_Z14printHashTablev",
Type::getVoidTy(M.getContext()), ????, ????,);
Now hashtable() function takes string as an argument, so what should I write
in place of ???? above.
And than how should I actually CALL that hashtable() function with the help
of methods
like CallInst::Create, getInstList().insert etc.
--...
2013 Jul 25
0
[LLVMdev] Passing String to an external function in llvm
On Thu, Jul 25, 2013 at 11:40 AM, Abhinash Jain <omnia at mailinator.com> wrote:
> I have one file named hashtable.cpp whose link is
> "http://pastebin.com/Cq2Qy50C"
>
> and one llvm pass named testing.cpp whose link is
> "http://pastebin.com/E3RemxLF"
>
> Now on this testing.cpp pass I have computed the string named "expr" which I
> want
2013 Jul 25
2
[LLVMdev] Passing String to an external function in llvm
I have one file named hashtable.cpp whose link is
"http://pastebin.com/Cq2Qy50C"
and one llvm pass named testing.cpp whose link is
"http://pastebin.com/E3RemxLF"
Now on this testing.cpp pass I have computed the string named "expr" which I
want to pass to the function named hashtable(string) in hashtable.cpp (on
line 106 of testing.cpp)
> looking at simple