improve code generation for partitioned functions: add instruction metadata to specify target operand, rework code generation of function calls