codegen: use label mechanism of harpy