Automatic identification of application-specific functional units with architecturally visible storage