A generic language interface is provided to apply a number of loop
optimization transformations. The language interface includes two new
directives. The present invention detects the directives in a computer
program, and generates code that has been applied at least one loop
transformation based on the directives.