I'm looking at pp_statement trying to make some changes when a Decl is happening, but I only want to make this change whenever I am declaring parameters. Is there information within pp_statement that I can use to tell that I am in the parameters block? If I can then I think I can do a small trick like #865 to make one copy of the parameters on the AD stack. So if someone did someting like
matrix[N, M] transform_x = multiply(data_matrix,, param_vector)
The only memory creation that happens here is for the new matrix transform_x