[IRBuilder] Make IRBuilder inserter non-virtual (#229700)

Currently IRBuilderBase stores a reference to a virtual Inserter.
Replace this with a single function_ref callback, which is populated by
a method on `IRBuilder<>`, which always has a known Inserter.

This is a small compile-time improvement.

Based on discussion in https://github.com/llvm/llvm-project/pull/229437.

GitOrigin-RevId: 53f3709522af918f414028137cde141981bf511f
1 file changed