This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add and set AMDGPU-specific e_flags
ClosedPublic

Authored by kzhuravl on Oct 4 2017, 11:36 AM.

Diff Detail

Event Timeline

kzhuravl created this revision.Oct 4 2017, 11:36 AM
t-tye added inline comments.Oct 4 2017, 12:59 PM
include/llvm/BinaryFormat/ELF.h
651
// AMDGPU machine architectures.
652–655

Suggest moving to the lower 4 bits.

t-tye added inline comments.Oct 4 2017, 3:01 PM
include/llvm/Object/ELFObjectFile.h
1067

Suggest including:

if (!IsLittleEndian)
   return Triple::UnknownArch;
kzhuravl updated this revision to Diff 117760.Oct 4 2017, 4:20 PM
kzhuravl marked 3 inline comments as done.

Address review feedback and add r600 test.

t-tye accepted this revision.Oct 4 2017, 4:43 PM

LGTM

This revision is now accepted and ready to land.Oct 4 2017, 4:43 PM
This revision was automatically updated to reflect the committed changes.