This is an archive of the discontinued LLVM Phabricator instance.

[X86][GlobalISel] Initial implementation , select G_ADD gpr, gpr
ClosedPublic

Authored by igorb on Feb 10 2017, 1:49 AM.

Details

Summary

Initial implementation for X86InstructionSelector. Handle selection COPY and G_ADD/G_SUB gpr, gpr .

Diff Detail

Repository
rL LLVM

Event Timeline

igorb created this revision.Feb 10 2017, 1:49 AM
rovka accepted this revision.Feb 16 2017, 8:11 AM

LGTM in general. Should you also add tests for s64?

lib/Target/X86/X86InstructionSelector.cpp
57

llvm_unreachable calls abort, you shouldn't need to return or break after it (here and everywhere else).

129

This would look better as an assert.

This revision is now accepted and ready to land.Feb 16 2017, 8:11 AM
This revision was automatically updated to reflect the committed changes.