This is a simplified version of !748 that doesn't handle conditional jumps. I'll submit a cleaned up version of that after this.
-- v3: vkd3d-shader/hlsl: Implement loop unrolling. vkd3d-shader/hlsl: Parse loop and unroll loop attributes. vkd3d-shader/hlsl: Pull evaluate_static_expression_as_uint upwards.