[PATCH] D15754: AMDGPU/SI: Simplify validation of flat instructions optional operands

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 23 11:10:07 PST 2015


tstellarAMD created this revision.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

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.

http://reviews.llvm.org/D15754

Files:
  lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
  lib/Target/AMDGPU/SIInstrInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15754.43551.patch
Type: text/x-patch
Size: 5329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151223/f47ef6ee/attachment.bin>


More information about the llvm-commits mailing list