<div dir="ltr">Hi all,<div><br></div><div>I'm a LLVM newbie and am working on a LLVM 3.5 code base. The project (<a href="https://github.com/zhguanw/lin-analyzer">https://github.com/zhguanw/lin-analyzer</a>) makes use of clang and reads C code. I'm trying to make it read C++ code. When I compile a kernel written in C with clang++, I get the following difference in the IR for a function declaration:</div><div><br></div><div>When compiled with clang:</div><div><font face="monospace">declare void @convolution3d(float*, float*) #1</font><br></div><div><br></div><div>When compiled with clang++:</div><div><font face="monospace">declare void @_Z13convolution3dPfS_(float*, float*) #2<br></font></div><div><br></div><div>The project breaks if I compile with clang++ because it expects the function name to not have the <font face="monospace">@_Z13*PfS</font>. Does anyone know how I can get the function name in the IR generated by clang++ to not have the mangled characters? Once again, this is in LLVM 3.5.</div><div><br></div><div>Best,</div><div><br></div><div>Syed Ahmed</div><div>PhD Student</div><div>Implementation of Computation Group</div><div>UPenn</div></div>