Codegen fixes for flat
Codegen fixes for flat

- use correct BPE in bytes vs elements
- for maxAddr, recover multiply lost in merge

ROCmSoftwarePlatform/Tensile,ROCmSoftwarePlatform/Tensile,ROCmSoftwarePlatform/Tensile