HLS Support for Polymorphic Parallel Memories