animating transformation of one object into another
You can use shape keys.



Model your sword first. Create a base shape key. Then add a new shape key and start deforming it to to the shape of the bar, creating new shape keys along the way. Animate then the shape keys values so that you are left with the base shape key at the end.



Then just let the swordsmith do her job!



The example Blend file is HERE