search for: travitch

Displaying 14 results from an estimated 14 matches for "travitch".

2012 Jul 20
1
[LLVMdev] llvm/dragonegg as drop-in replacement to gcc
...binary and not all options to gcc/g++/gfortran can be passed to llvm-ld. I believe I could use llvm-as to compile bitcode to x86 assembly and then link everything together using gcc/g++/gfortran but this approach poses problems when building / using libraries (`.a' files). [ https://github.com/travitch/whole-program-llvm] seems to come close but it works only for gcc and g++ (not gfortran). Clang doesn't support OpenMP and hence doesn't look like a viable option at this time. Any other ways of using dragonegg in a transparent way? Thanks much! Ashay -------------- next part -------------...
2019 Jan 13
2
Convert commands in make to llmv commands for code analysis
This URL mentions using LLVM IR to perform code analysis. https://stackoverflow.com/questions/9939794/how-to-use-llvm-to-generate-a-call-graph But the first problem to solve is how to convert the commands used in Makefiles to the corresponding LLVM commands. https://pastebin.com/RcnA14Qa The above URL shows the makefile screen output from the bash source code. Where `gcc -c`, `gcc` (link with
2014 Jul 07
4
[LLVMdev] Proposal: support object file-based on-disk module format
Hi, Over in [1] we've been discussing adding support in LTO for an object file-based on-disk module format. Rafael suggested that I send a proposal to this list; this is that proposal. As motivation, consider a compiler that needs to store metadata in the LTO object file that may need to be read by future compilation steps, such as the "export data" used by some Go compilers [2].
2018 May 14
1
LLVM IR with MakeFile
Hi LLVM Devs I am not sure whether this is the right email to ask such kind of question. If not, please tell me the right mailing list. I am new to llvm and I am going to use llvm to do some task related to program analysis. Now I would like to generate llvm IR. I know that we can use the command like "clang -S -emit-llvm" to get the llvm IR. However, I would like to have a makefile
2018 Sep 02
2
Replacing a function from one module into another one
...it from foo2 to foo3, and adjusting the function parameter's references). Regards, Daniel Moya El dom., 2 de sep. de 2018 a la(s) 17:00, Ahmad Nouralizadeh Khorrami ( ahmad.llvm at gmail.com) escribió: > Hi. > Besides the LLVM linker, you can also use this tool: > https://github.com/travitch/whole-program-llvm > It links all the modules and produces a single module containing every > function. > Regards. > > On Sun, 2 Sep 2018 at 16:57, Daniel Moya via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hello and thanks for the answer, >> >&gt...
2014 Sep 03
2
[LLVMdev] Convert C code with external library access to llvm
Hi, I have written a c program which accesses sqlite database. Normally I compile the program as $ clang insertselect.c -l sqlite3 To emit-llvm I use: > $ clang insertselect.c -S -emit-llvm How do I link the sqlite3 library so that llvm can generate IR with the IR being linked to the external library? Thanks for your help? Thanks Prakash -------------- next part -------------- An
2014 Jul 08
3
[LLVMdev] Proposal: support object file-based on-disk module format
...code files that > make up the final executable. > > If I've understood your proposal correctly then when compiling and > using the GNU ld linker you would end up with all the bitcode files > embedded in the final executable. Is this intentional? > > [1] https://github.com/travitch/whole-program-llvm If the linker never sees the intermediate object files, this will not happen. This is the case under the current proposal. However, if we codegen into the object files, we might want to make those object files visible to the linker. In which case, the compiler can use an object-...
2018 Sep 03
2
Replacing a function from one module into another one
...t; >> Regards, >> Daniel Moya >> >> El dom., 2 de sep. de 2018 a la(s) 17:00, Ahmad Nouralizadeh Khorrami ( >> ahmad.llvm at gmail.com) escribió: >> >>> Hi. >>> Besides the LLVM linker, you can also use this tool: >>> https://github.com/travitch/whole-program-llvm >>> It links all the modules and produces a single module containing every >>> function. >>> Regards. >>> >>> On Sun, 2 Sep 2018 at 16:57, Daniel Moya via llvm-dev < >>> llvm-dev at lists.llvm.org> wrote: >>> &g...
2018 Sep 02
2
Replacing a function from one module into another one
Hello and thanks for the answer, I'm still facing issues, I'll do my best to explain my situation, as I explained, I have two modules, each one with its own main and functions, I would like to replace in the *oldModule* a function call that is calling *foo2* (defined in *oldModule*) to instead call *foo3*, which is defined in the *refModule. *So in summary, I have: 1. The original
2018 Sep 04
2
Replacing a function from one module into another one
...t; >>>> El dom., 2 de sep. de 2018 a la(s) 17:00, Ahmad Nouralizadeh Khorrami ( >>>> ahmad.llvm at gmail.com) escribió: >>>> >>>>> Hi. >>>>> Besides the LLVM linker, you can also use this tool: >>>>> https://github.com/travitch/whole-program-llvm >>>>> It links all the modules and produces a single module containing every >>>>> function. >>>>> Regards. >>>>> >>>>> On Sun, 2 Sep 2018 at 16:57, Daniel Moya via llvm-dev < >>>>> llvm-...
2018 Sep 06
2
Replacing a function from one module into another one
...de 2018 a la(s) 17:00, Ahmad Nouralizadeh Khorrami >>>>>> (ahmad.llvm at gmail.com) escribió: >>>>>> >>>>>>> Hi. >>>>>>> Besides the LLVM linker, you can also use this tool: >>>>>>> https://github.com/travitch/whole-program-llvm >>>>>>> It links all the modules and produces a single module containing >>>>>>> every function. >>>>>>> Regards. >>>>>>> >>>>>>> On Sun, 2 Sep 2018 at 16:57, Daniel Moya via...
2018 Nov 08
4
LLVM Call Graph may not cover all calls
Hi there, I am working with opt-6.0 and try to generate a call graph of libsndfile, but it seems the call graph doesn't cover all call relationship. Actually, I am doing static analysis on *CVE-2014-8130*, which is a zero division on libtiff/tif_write.c TIFFWriteScanline. (see https://security-tracker.debian.org/tracker/CVE-2014-8130) Theoretically, the main function in
2016 Mar 11
6
big module for a project
Hi All, I am using clang to compile Mysql source code. Because I want to do some inter-procedural analysis, hopefully, I want to get a .o(bitcode) file(a module) containing all possible function declarations and definitions. Is it possible to do that ? Or you guys have some suggestions? To be clear, like Mysql, there is a mysqld routine, which is a major routine. I want to mysqld.o(which is
2018 Sep 06
2
Replacing a function from one module into another one
...h >>>>>>>> Khorrami (ahmad.llvm at gmail.com) escribió: >>>>>>>> >>>>>>>>> Hi. >>>>>>>>> Besides the LLVM linker, you can also use this tool: >>>>>>>>> https://github.com/travitch/whole-program-llvm >>>>>>>>> It links all the modules and produces a single module containing >>>>>>>>> every function. >>>>>>>>> Regards. >>>>>>>>> >>>>>>>>> On Su...