search for: khorrami

Displaying 9 results from an estimated 9 matches for "khorrami".

2018 Nov 12
2
Convert Register Names to String
...I should reuse the code to extract and output the register names in a file. Next, I should postprocess the file in my own pass? Regards. On Mon, 12 Nov 2018 at 13:09, Tim Northover <t.p.northover at gmail.com> wrote: > Hi Ahmad, > > On Sun, 11 Nov 2018 at 13:39, Ahmad Nouralizadeh Khorrami via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > I want to do a cutomized points-to analysis on IR. Suppose that we have: > > %91 = bitcast i8* %90 to %struct.demux_packet*, !dbg !2688 > > > > I want to store sth similar to %91 -> target of %90, which recor...
2018 Aug 16
2
Convert Function Pointer Call to Function Call at the IR Level
Hi, I want to convert a function pointer call in the IR of MPlayer to a function call. For example, I have the following line: ... %10 = tail call i32 %7(%struct.demuxer* nonnull %0, i32 %1, i8* %2) #7, !dbg !863222 ... I want to set the target which is stored in %7 to a real function called "demux_lavf_control()" with the following definition: ... define internal i32
2018 Nov 11
2
Convert Register Names to String
Hi. I want to do a cutomized points-to analysis on IR. Suppose that we have: *%91 = bitcast i8* %90 to %struct.demux_packet*, !dbg !2688* I want to store sth similar to %91 -> target of %90, which records the target of pointer named %91. How can I access the names (Here, %90 and %91)? I know that I can put the whole line for an instruction into a string, using the following code: *string str;*
2018 Sep 03
2
Replacing a function from one module into another one
...I don't know how to go instruction by instruction in all the moved blocks and correct the reference to point to the arguments in the oldModule's new function, this also sounds very messy and complicated. Regards, Daniel Moya El dom., 2 de sep. de 2018 a la(s) 23:18, Ahmad Nouralizadeh Khorrami ( ahmad.llvm at gmail.com) escribió: > Hi Daniel, > The answer was for your first thread. The benefits are outlined in the > repository, but your problem is still there. I'm not sure. But this looks > similar to my recent problem. I think that a bitcast will solve the > problem....
2018 Sep 04
2
Replacing a function from one module into another one
...>> reference to point to the arguments in the oldModule's new function, this >> also sounds very messy and complicated. >> >> >> Regards, >> Daniel Moya >> >> >> >> >> El dom., 2 de sep. de 2018 a la(s) 23:18, Ahmad Nouralizadeh Khorrami ( >> ahmad.llvm at gmail.com) escribió: >> >>> Hi Daniel, >>> The answer was for your first thread. The benefits are outlined in the >>> repository, but your problem is still there. I'm not sure. But this looks >>> similar to my recent problem. I...
2018 Sep 02
2
Replacing a function from one module into another one
...es the job for me, the issue is when changing the called function to call another function (in the example previously provided, to change 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...
2018 Sep 06
2
Replacing a function from one module into another one
...n, this >>>> also sounds very messy and complicated. >>>> >>>> >>>> Regards, >>>> Daniel Moya >>>> >>>> >>>> >>>> >>>> El dom., 2 de sep. de 2018 a la(s) 23:18, Ahmad Nouralizadeh Khorrami ( >>>> ahmad.llvm at gmail.com) escribió: >>>> >>>>> Hi Daniel, >>>>> The answer was for your first thread. The benefits are outlined in the >>>>> repository, but your problem is still there. I'm not sure. But this looks >&...
2018 Sep 06
2
Replacing a function from one module into another one
...;>>>> >>>>>> >>>>>> Regards, >>>>>> Daniel Moya >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> El dom., 2 de sep. de 2018 a la(s) 23:18, Ahmad Nouralizadeh Khorrami >>>>>> (ahmad.llvm at gmail.com) escribió: >>>>>> >>>>>>> Hi Daniel, >>>>>>> The answer was for your first thread. The benefits are outlined in >>>>>>> the repository, but your problem is still there....
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