Wednesday, May 31, 2006

Graphic help

Hi, today I've used LLVM tool to visualize the dataflow graph. It is very cool, and very easy to use. Add Fn.viewCFG() to your application, where Fn is a MachineFunction object. It will open the gv window, and it is all. The guy who coded this functionality is great :) The graph that is produces is this one here. If you are using a remote machine, to open the gv window you have to set your environment. Do like this:

local.machine: open an xterm application
local.machine: ssh -X remote.machine
local.machine: xhost + remote.machine
remote.machine: export DISPLAY=local.machine:0.0
remote.machine: // any graphical program, e.g. gv cfg.ps &
local.machine: xhost - remote.machine // after having used the window

Hum... I am still having problem with those physical registers though. Where are they being defined? They are not in the in set of the function. EAX is in the out set, but this is clear in the control flow graph.

0 Comments:

Post a Comment

<< Home