Generally speaking, you should choose more often clean, homemade foods and limit the consumption of processed foods.
http://ibsliving.today/treating-ibs/7-safe-foods-for-ibs-sufferers/
http://www.webmd.com/ibs/ibs-gas