This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Allow AGPR in inline asm
ClosedPublic

Authored by yaxunl on Apr 2 2020, 12:07 PM.

Diff Detail

Event Timeline

yaxunl created this revision.Apr 2 2020, 12:07 PM
arsenm added inline comments.Apr 2 2020, 12:11 PM
clang/test/CodeGenOpenCL/inline-asm-amdgcn.cl
13–16

These mostly aren't the right types?

rampitec accepted this revision.Apr 2 2020, 12:12 PM

Thanks.

Could you also update AMDGPUTargetInfo::GCCRegNames[] (in a separate change)? It is used in clobber constraints.
JBTW, it does not support register tuples even for V and S now.

This revision is now accepted and ready to land.Apr 2 2020, 12:12 PM
yaxunl updated this revision to Diff 254619.Apr 2 2020, 2:21 PM

added agprs to GCCRegNames and fixed types in test

rampitec added inline comments.Apr 2 2020, 2:41 PM
clang/test/CodeGenOpenCL/inline-asm-amdgcn.cl
16

reg_c is also float32.

36

New line.

yaxunl updated this revision to Diff 254668.Apr 2 2020, 6:23 PM

fix test

yaxunl marked 3 inline comments as done.Apr 2 2020, 6:25 PM
rampitec accepted this revision.Apr 2 2020, 8:08 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2020, 6:25 AM