Refactor kernel pass
Use compiler pass to generate config params