You cook them. Try looking into "decoction mashing", where you boil 40% of your grains, them add them back to the rest of the mash.
Also, most flakes are 'cooked' or gelatinized by the heat of the rolling process. It's what makes Quaker Oats "quick cooking' or 'instant'- they've already been done once.