This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Simplify AMDGPUInstPrinter::printRegOperand()
ClosedPublic

Authored by rampitec on Jul 17 2019, 3:33 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Jul 17 2019, 3:33 PM
arsenm added inline comments.Jul 17 2019, 3:39 PM
lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
323 ↗(On Diff #210441)

Is the lower() still necessary?

rampitec marked an inline comment as done.Jul 17 2019, 3:41 PM
rampitec added inline comments.
lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
323 ↗(On Diff #210441)

I can lowercase all registers in td, then it will be not necessary.

arsenm added inline comments.Jul 17 2019, 3:44 PM
lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
323 ↗(On Diff #210441)

I thought the new generated names were lowercase already

rampitec updated this revision to Diff 210445.Jul 17 2019, 3:46 PM
rampitec marked an inline comment as done.

Lowercased register names.

rampitec marked 2 inline comments as done.Jul 17 2019, 3:47 PM
rampitec added inline comments.
lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
323 ↗(On Diff #210441)

Not really, but I have updated the patch.

arsenm accepted this revision.Jul 17 2019, 3:53 PM
This revision is now accepted and ready to land.Jul 17 2019, 3:53 PM
rampitec marked an inline comment as done.Jul 17 2019, 3:54 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2019, 4:00 PM