Implement some visit function in CodeGenVisitor.