search for: tokotoko

Displaying 2 results from an estimated 2 matches for "tokotoko".

2019 Dec 08
2
How to generate a .ll file with functions' parameter names
...hanks for your answer. Unfortunately I'm still using llvm 6.0 and in llvm-dis I don't see that option. I tried reading the full list of options but I didn't see an alternative. Do you have any suggestions? Thanks Alberto Il giorno dom 8 dic 2019 alle ore 08:50 Hideto Ueno < uenoku.tokotoko at gmail.com> ha scritto: > Hi Alberto, > > Variable names in LLVM IR are meaningless and only used for debugging. > However, if you want to preserve the variable name, you can use > `-fno-discard-value-names` option. > > Regards, > Hideto > > 2019年12月8日(日) 17:38 A...
2019 Dec 08
2
How to generate a .ll file with functions' parameter names
Hi all, I'm trying to obtain a .ll with parameters name for every function. My simple c C is the following: int sum(int a, int b) { return a+b; } int main() { sum(1,2); } I obtain the .ll with the following commands: clang -emit-llvm sum.c -c llvm-dis-7 sum.bc The obtained .ll is: cat sum.ll ; ModuleID = 'sum.bc' source_filename = "sum.c" target datalayout =