This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Added support of new inline assembler constraints
ClosedPublic

Authored by dp on Jun 11 2020, 7:35 AM.

Details

Diff Detail

Event Timeline

dp created this revision.Jun 11 2020, 7:35 AM
arsenm added inline comments.Jun 11 2020, 2:31 PM
clang/lib/Basic/Targets/AMDGPU.h
153

Not sure what this means? Only accepts -1 as a value? Why would you ever need this special case?

dp updated this revision to Diff 270341.Jun 12 2020, 2:40 AM

Corrected a typo in tests.

dp marked 2 inline comments as done.Jun 12 2020, 2:45 AM
dp added inline comments.
clang/lib/Basic/Targets/AMDGPU.h
153

I have no idea why GCC guys added this constraint - this is an interesting question. Anyway we adding this for the sake of compatibility with GCC.

arsenm added inline comments.Jun 16 2020, 12:24 PM
clang/test/CodeGenOpenCL/inline-asm-amdgcn.cl
40–41

Can you add tests for this with i64/i16 and the packed vectors?

dp updated this revision to Diff 271332.Jun 17 2020, 4:31 AM
dp marked an inline comment as done.

Added more tests for 'Kf' constraint.

dp marked an inline comment as done.Jun 17 2020, 4:32 AM
arsenm accepted this revision.Jun 17 2020, 5:23 PM
This revision is now accepted and ready to land.Jun 17 2020, 5:23 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2020, 8:03 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript