Implement name mangling in IR