Polymorphous Architectures: A Unified Approach For Extracting Concurrency of Different Granularities