If AllowHeaderOnly is true and ir_body is calculating then it will return just the ir_header. Otherwise if ir_body is not_calculated, gen_ir_type will calculate it
See Implementation
If AllowHeaderOnly is true and ir_body is calculating then it will return just the ir_header. Otherwise if ir_body is not_calculated, gen_ir_type will calculate it