This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Add getShaderType() function to Utils/
ClosedPublic

Authored by tstellarAMD on Dec 10 2015, 10:41 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Add getShaderType() function to Utils/.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Dec 10 2015, 10:49 AM
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
103 ↗(On Diff #42445)

I usually prefer to define short strings like this as an array rather than the pointer

112 ↗(On Diff #42445)

I think this should either be an emitError or default to compute.

Use array for constant string, call emitError on failure.

tstellarAMD marked 2 inline comments as done.Dec 11 2015, 7:42 PM
arsenm accepted this revision.Dec 14 2015, 9:46 AM
arsenm edited edge metadata.

LGTM

lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
114 ↗(On Diff #42620)

Error shouldn't have punctuation

This revision is now accepted and ready to land.Dec 14 2015, 9:46 AM
This revision was automatically updated to reflect the committed changes.