Introduce an interface around basic HLO costing functionality that can be used by MSA's cost analysis.
Introduce an interface around basic HLO costing functionality that can be used by MSA's cost analysis.

We also implement the interface using HloCostAnalysis, which makes this is refactor.
