There's a few schools of thought here...
Conventional: a "whole" feed made of maize and soy with added vitamins, usually medicated as well, is given based on package instruction. Usually not a lot is given, maybe 6-8 lbs per pig per day in 2 increments. This produces very bland, lean, and (some say) nutritionally deficient meat.
Traditional: Pigs are fed a variety of foods including hay, soaked grains, beets, kitchen scraps, fermented silage etc... and finished (usually last 2 months before slaughter) on acorns, hazelnuts, and/ or pulp from pressing cider. This produces dark meat with a lot of fat and good qualities for curing hams and bacon. The amount of feed is however much they will eat.
Regenerative Pasturing System: Pigs are pasture raised in forests or fields, and treats such as fruit or soaked grain are tossed into areas that are hard to get at to encourage the pigs to clear the land for the farmer. Depending on how long the pigs are present and the size of the pasture, they can either knock down weeds or eradicate them and significantly disturb the ground, which is nice if you're wanting to plant pasture grass or a fodder crop there.