[PATCH 4/6] d3dcompiler: Factor out hlsl_ir_var allocation.