1. A method in a data processing system for applying loop optimization transformations, the method comprising: detecting at least one directive in a computer program; responsive to detecting the at least one directive, generating at least one loop transformation based the at least one directive; and applying at least one loop transformation in the computer program.