Text this: Joint Hardware-Workload Co-Optimization for In-Memory Computing Accelerators