<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin-top:14pt;margin-bottom:14pt;">Hi,</div>
<div style="margin-top:14pt;margin-bottom:14pt;">I want to do an inter-module analysis of a C project which contains multiple C files.
<br>
</div>
<div style="margin-top:14pt;margin-bottom:14pt;">I've written the pass as an extension of the ModulePass but I cannot get the information about other modules. I was looking into it and there seems to be a way to do it via Link Time Optimization (LTO). But I
 was not able to find an example on how to write an analysis pass for such optimization. All the examples just mention how to compile the code using LTO i.e, passing "-flto" and "-fuse-ld=gold" to clang. Can anybody point me to some example on how to write
 pass for LTO?<br>
</div>
<div style="margin-top:14pt;margin-bottom:14pt;">The requirement can be seen as generating the CallGraph along with the CFG for the whole project. The project uses Makefile to generate executable.</div>
<div style="margin-top:14pt;margin-bottom:14pt;">Thanks,</div>
<div style="margin-top:14pt;margin-bottom:14pt;">Subhendu.</div>
<br>
</div>
</body>
</html>