diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-07-05 17:09:01 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-07-05 17:09:01 +0000 |
| commit | ffc8275f2be9fe40b849b83d6adedd11b621d5a3 (patch) | |
| tree | bc95382feff93315d001b1c27ce0469b1acfb569 /llvm/lib/Target/AMDGPU/AMDGPUInstructions.td | |
| parent | a8d89f3500aae1f179ed24e48d45e98b7cc4dac7 (diff) | |
| download | bcm5719-llvm-ffc8275f2be9fe40b849b83d6adedd11b621d5a3.tar.gz bcm5719-llvm-ffc8275f2be9fe40b849b83d6adedd11b621d5a3.zip | |
AMDGPU: Fix folding SGPRs into madak/madmk src0
Because of the special immediate operand, the constant
bus is already used so SGPRs are never useful.
r263212 changed the name of the immediate operand, which
broke the verifier check for the restriction.
llvm-svn: 274564
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUInstructions.td')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUInstructions.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td b/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td index 560db41eff6..d77f608fb22 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td +++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td @@ -49,6 +49,13 @@ def UnsafeFPMath : Predicate<"TM.Options.UnsafeFPMath">; def InstFlag : OperandWithDefaultOps <i32, (ops (i32 0))>; def ADDRIndirect : ComplexPattern<iPTR, 2, "SelectADDRIndirect", [], []>; +// 32-bit VALU immediate operand that uses the constant bus. +def u32kimm : Operand<i32> { + let OperandNamespace = "AMDGPU"; + let OperandType = "OPERAND_KIMM32"; + let PrintMethod = "printU32ImmOperand"; +} + let OperandType = "OPERAND_IMMEDIATE" in { def u32imm : Operand<i32> { |

