Well, in the first place, I'd rather pick a ranged.
Easier to beat Illaoi with.
Quinn in particular because her blind thing is so goddamn irritating.
Anyways.
In general, kill her tentacles whenever you can do it while relatively close to your own minions (so you can easily juke if needed), while she's farming somewhere farther, in an awkward position to use her Q or E, and always after she recalls or leaves lane.
When she's not near her tentacles, they will drop to 1 health.
When she is relatively close to her tentacles (think ~1.5 E ranges away or so?), they will "burst" back upwards and become alive again and have 2 health.
It's a sort of easy way to tell if she's trying to lure you to a bush for a trap, since the recent patch made tentacles always visible in bushes (for whatever reason I don't know, it was a dumb and unneeded nerf).
She is completely useless without her tentacles, and if she misses her E, her lane harass potential is practically nil until whenever it comes back up (outside of hitting you with W if you're surrounded by tentacles). A one-target ult from her is also terrible because it only makes one more tentacle.
As Malphite in particular as you suggested, since your Q is a targeted that just follows wherever it needs to go, if she does manage to pull out your Spirit, I'd just hit her with the Q (and possibly your E if you can risk it) for an easy way to drop the Spirit duration.
If your team doesn't know how to play against Illaoi in general, I'd suggest getting the jungler to literally just camp the hell out of her pre-6. I'd be extremely careful once she's been 5 for a while though, since a sudden level up can instantly turn it around. Her only chance of winning a pre-6 fight (outside of running away) is hoping she can land her E in an area with at least 2 tentacles so she can repeatedly slam you and/or the jungler with it.
If Illaoi falls behind, she's useless.
She needs her AD.
She's a bruiser/lifesteal juggernaut. Not a tank, as many people commonly mistake her to be.
Several of her items are fairly expensive with less than optimal sub-build parts for some (Cleaver is expensive and Hammer is practically shit on her and Phage is only somewhat okay, Death's Dance is expensive, other core items are Spirit Visage, Iceborn Gauntlet, so on and so forth).
Once she hits level 6 and has a fair bit of AD, her Q can oneshot waves, meaning she'll push to your tower fairly fast for an attempt at repeatedly harassing you with E. Provided that you can dodge the E, it's immediately in your favor again and you can harass the hell out of her. If she tries to ult (with presumably 1-2 tentacles near the lane near tower for up to 3), then you can immediately just back off making her absolutely useless for the next 8s or so (however long her ult and W CDR lasts).
Most people don't know this, but W resets and empowers her autoattacks making that + Sheen proc absolutely melt towers. Most people will just try and autoattack towers to death while not even getting Sheen. I'd watch for a bit to see how she responds to trying to hit your tower to tell. If she's not smart, I'd probably just roam after level 6 (for you both) towards mid and/or with your jungler to get other laners fed. Sure, Illaoi can get fed off the easy Q-lane killing minion gold, but without kills, it'll take a lot longer. If she is smart, I'd play a bit more careful.
As for attempting to gank her post-6, you should be careful of several things.
One, her ultimate (during the leap animation itself) will make her immune to all displacement CC effects. Most people don't know this and can't time it anyways.
Two, her ultimate can be comboed with Flash to immediately reposition herself for the actual groundslam after her leap. Most people don't know this and can't time it anyways.
Three, her ultimate has a fairly short CD, but against most people who are absolute idiots and know very little how to play against her (read: almost everyone except for Illaoi mains), it's fairly easy to bait it inside a teamfight. If you feel like being a daredevil, you can just bait it out and then have everyone on your team immediately run out of it (preferably scattering every direction because then she can't hit every person, but if that's too risky, just all run back). That immediately makes the vast majority of her teamfighting useless.
Four, Illaoi is incredibly weak to CC. Most people are idiots and don't know what QSS is to save their lives. Silence/suppress/stuns/knockups/knockbacks/other repositioning ults (oh god please don't pull Illaoi into your team before she ults as Blitzcrank I swear to god that will be the end of your team/alternatively pulling her into your team after she ults if you guys can pull her far away enough from her pit + instant silence + knockup + good response from your team can near instantly shred her into nothing) are the best choice against her. For her ultimate to actually do anything, she either needs to pull out a Spirit (where each tentacle will hit once and only once) or hit a target with her W (a short range autoattack buff with slight range increase) which will cause all tentacles to hit said target once. All the CC types I just listed her stop her from doing those and render her effectively worthless. Now, while less effective, snares/roots/binds/etcetera are also still usable because her W is a leap dash which is what gives her that range. If she's afflicted with one of the secondary listed CCs, she will not be able to move around, effectively turning her W range into her normal autoattack range, once again making her useless outside of said range.
I hope that could help.