[IR] Minor code cleanup in inlining context class + elsewhere

* Replaced multiple boolean vars with a private cloning mode
  enum in InlinerInfo.