Refactor NVPTX's computeDataLayout.

No functionality change.