Static and Dynamic Instruction Mappingfor Spatial Architectures