(a) If a defendant is convicted of first degree murder, a Class A felony, rape, aggravated robbery, aggravated sexual battery, aggravated kidnapping, aggravated child abuse, statutory rape by an authority figure or a violation of § 39-17-417(b) or (i), the judge shall revoke bail immediately, notwithstanding sentencing hearings, motions for a new trial and related post-guilt determination hearings.
(b) If a defendant is convicted of any other felony offense, the judge may revoke bail immediately, notwithstanding sentencing hearing, motion for a new trial and related post-guilt determination hearings.
(c) If the court revokes the defendant's bail, the defendant shall be housed in a local jail pending the sentencing determination. Following sentencing, the defendant shall be transferred to the custody of the authority to whom the defendant was sentenced.
(d) If a defendant is convicted of first degree murder, the judge may house the defendant in a local jail or may transfer custody to the department of correction pending further proceedings in the trial court.