Add a cost model analysis that allows us to estimate the cost of IR-level instructions.