Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.h:
enum vkd3d_shader_target_type target_type, struct vkd3d_shader_code *out);
int hlsl_emit_effect_binary(struct hlsl_ctx *ctx, struct vkd3d_shader_code *out);
+void hlsl_static_constant_folding(struct hlsl_ctx *ctx, struct hlsl_block *expr);
hlsl_fold_static_constants()?
Also, a block isn't really an expr...