Add code generation for p4