This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Simplify validation of flat instructions optional operands
Needs ReviewPublic

Authored by tstellarAMD on Dec 23 2015, 11:10 AM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
arsenm
Summary

Use the target hook validateTargetOprandClass() for doing validation
on optional operands. This will help prevent us from getting "invalid
operand" errors in cases where we should see a different error mesaage.

Diff Detail

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Simplify validation of flat instructions optional operands.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm edited edge metadata.Dec 23 2015, 1:21 PM

Typo in message: validateTargetOprandClass

lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
1332

ArrayRef should be passed by value

tstellarAMD edited edge metadata.

Pass ArrayRef by value.

tstellarAMD marked an inline comment as done.Feb 5 2016, 12:37 PM
arsenm accepted this revision.Dec 3 2016, 10:54 AM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 3 2016, 10:54 AM
arsenm resigned from this revision.Apr 5 2020, 7:44 AM
This revision now requires review to proceed.Apr 5 2020, 7:44 AM