Vile's A Futuristic Version Of The Final Darkman Robot From Megaman 5?
There were a total of four Darkman robots. The third Darkman is colored purple while the fourth Darkman robot has a near similar design to Vile himself minus the head. The third Darkman Robot jumps over and fires shots. Vile does the same in Megaman X. Final Darkman might even be a close prototype to Vile.
Here's something interesting before your fight with the Final Darkman. In Megaman 5, the Final Darkman greatly injures Megaman. Protoman shows up and reveals the imposter, gives Megaman a full life boost and the battle begins. In Megaman X, a darker version happens. Vile defeats Megaman X to the point of near death, Zero sacrifices himself, Megaman X gets a complete life boost and the fight with Vile begins after that.
Design-wise, Vile is almost a version of the Final Darkman robot mounted with the third Darkman's cannon on his shoulder and he's repainted purple. My theory is that Dr. Cain found the Darkman Robot's blueprints from Zero's memory and created Vile. That's just my theory though and don't take it as an official explanation.