[llvm-dev] Is there a way to correlate operation to machine instruction?

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 12 11:24:21 PDT 2017


On 04/12/2017 11:07 AM, Ryan Taylor wrote:
> Matt,
>
>   so in AMDGPU, the operands are sort of 'generic'? Can you point me 
> to the right places?
>
> Thanks.
Not exactly generic, but they have custom defined constraints. Look at 
the definitions for the VSrc_* operand types in SIRegisterIno.td. These 
set the OperandType on the Operand to a custom enum, and the target 
verifyInstruction checks the custom constraints.

-Matt


More information about the llvm-dev mailing list