Refactored codegen functions under enclosed scope.
Refactored codegen functions under enclosed scope.

Encapsulated the recursive codegen functions in a local scope which is implicitly closed over the context/module/buffer pointers, removing the need to pass around and unpack context objects all over the place.
kenkuang1213/Halide,damienfir/Halide,kenkuang1213/Halide,smxlong/Halide,kenkuang1213/Halide,myrtleTree33/Halide,tdenniston/Halide,mikeseven/Halide,ayanazmat/Halide,kgnk/Halide,ronen/Halide,rodrigob/Halide,tdenniston/Halide,lglucin/Halide,myrtleTree33/Halide,mcanthony/Halide,damienfir/Halide,delcypher/Halide,mcanthony/Halide,jiawen/Halide,dougkwan/Halide,gchauras/Halide,dan-tull/Halide,adasworks/Halide,myrtleTree33/Halide,lglucin/Halide,adasworks/Halide,mcanthony/Halide,tdenniston/Halide,aam/Halide,psuriana/Halide,fengzhyuan/Halide,psuriana/Halide,smxlong/Halide,tdenniston/Halide,adasworks/Halide,damienfir/Halide,kenkuang1213/Halide,mikeseven/Halide,smxlong/Halide,mikeseven/Halide,ronen/Halide,fengzhyuan/Halide,dan-tull/Halide,aam/Halide,dan-tull/Halide,kenkuang1213/Halide,gchauras/Halide,kgnk/Halide,mcanthony/Halide,kgnk/Halide,lglucin/Halide,mcanthony/Halide,kgnk/Halide,ronen/Halide,gchauras/Halide,adasworks/Halide,damienfir/Halide,gchauras/Halide,rodrigob/Halide,myrtleTree33/Halide,dougkwan/Halide,ronen/Halide,smxlong/Halide,ronen/Halide,aam/Halide,psuriana/Halide,ronen/Halide,jiawen/Halide,damienfir/Halide,fengzhyuan/Halide,dougkwan/Halide,dan-tull/Halide,damienfir/Halide,rodrigob/Halide,mikeseven/Halide,mcanthony/Halide,fengzhyuan/Halide,psuriana/Halide,smxlong/Halide,fengzhyuan/Halide,delcypher/Halide,lglucin/Halide,kgnk/Halide,smxlong/Halide,dan-tull/Halide,lglucin/Halide,dougkwan/Halide,ayanazmat/Halide,tdenniston/Halide,tdenniston/Halide,jiawen/Halide,mikeseven/Halide,dougkwan/Halide,adasworks/Halide,damienfir/Halide,myrtleTree33/Halide,fengzhyuan/Halide,smxlong/Halide,jiawen/Halide,kgnk/Halide,kgnk/Halide,jiawen/Halide,aam/Halide,tdenniston/Halide,kenkuang1213/Halide,aam/Halide,smxlong/Halide,dougkwan/Halide,rodrigob/Halide,ayanazmat/Halide,dan-tull/Halide,gchauras/Halide,kgnk/Halide,ayanazmat/Halide,dan-tull/Halide,mcanthony/Halide,fengzhyuan/Halide,gchauras/Halide,delcypher/Halide,adasworks/Halide,ayanazmat/Halide,delcypher/Halide,mcanthony/Halide,rodrigob/Halide,ronen/Halide,rodrigob/Halide,jiawen/Halide,ayanazmat/Halide,myrtleTree33/Halide,delcypher/Halide,tdenniston/Halide,lglucin/Halide,ayanazmat/Halide,delcypher/Halide,kenkuang1213/Halide,ronen/Halide,dougkwan/Halide,aam/Halide,dan-tull/Halide,aam/Halide,psuriana/Halide,psuriana/Halide,jiawen/Halide,myrtleTree33/Halide,kenkuang1213/Halide,dougkwan/Halide,fengzhyuan/Halide,adasworks/Halide,lglucin/Halide,rodrigob/Halide,ayanazmat/Halide,damienfir/Halide,adasworks/Halide,myrtleTree33/Halide,rodrigob/Halide,psuriana/Halide,delcypher/Halide,delcypher/Halide