Hi,
If you carefully read the definition of CALL instruction, you will find
function can be regarded as an Cil.exp. So it's not difficult to solve your
problem. Take it as a clue.
Call of lvaloption * exp * explist * location
Ting
Ting SU,software institute,East China Normal University
tsule...@gmail.com (Email,MSN)
From: Mehrdad Abdi
Date: 2013-10-16 17:58
To: cil-users
Subject: [CIL users] How to change Binops to function calls?
Hi.
I want to change all my binary operations to functions. for example transform
expression `b + c * d` to `my_add(b,my_multp(c,d))`.
The problem is function call is a instruction and binop is a expression. How
can I do this transform by a visitor?
thanks.
---
and a suggestion: create a `C-IL` Tag in stackoverflow.com and move your
support there.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users