This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Legalize constant for pointer types
ClosedPublic

Authored by arsenm on Jan 26 2019, 9:41 AM.

Details

Reviewers
tstellar
rampitec

Diff Detail

Event Timeline

arsenm created this revision.Jan 26 2019, 9:41 AM
tstellar added inline comments.Feb 1 2019, 4:07 PM
test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir
102

Does this need to be i64 here? Same for the other 64-bit address spaces.

arsenm marked an inline comment as done.Feb 1 2019, 4:12 PM
arsenm added inline comments.
test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir
102

I'm not sure what the policy is for the integer size on G_CONSTANT. The verifier doesn't complain. buildConstant does a sextOrTrunc to convert to the element type. I'll fix this before committing

tstellar accepted this revision.Feb 1 2019, 4:22 PM

OK, LGTM.

This revision is now accepted and ready to land.Feb 1 2019, 4:22 PM
arsenm closed this revision.Feb 2 2019, 3:33 PM

r352975