Jay Foad 4561352f7b [CodeEmitter] Fix encoding wide instructions on big-endian hosts
For instructions wider than 64 bits the InstBits table is initialized in
64-bit chunks from APInt::getRawData, but it was being read with
LoadIntFromMemory which is byte-based.

Fix this by reading the table with the APInt constructor that takes an
ArrayRef to the raw data instead.

This is currently NFC for in-tree targets but fixes AMDGPU failures on
big-endian hosts that were caused by D126483 until it was reverted.

Differential Revision: https://reviews.llvm.org/D127195
2022-06-07 19:06:28 +01:00
..
2022-03-11 11:41:32 +01:00
2022-05-30 14:27:37 +08:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-05-30 14:27:37 +08:00