summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIDefines.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-07-05 17:09:01 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-07-05 17:09:01 +0000
commitffc8275f2be9fe40b849b83d6adedd11b621d5a3 (patch)
treebc95382feff93315d001b1c27ce0469b1acfb569 /llvm/lib/Target/AMDGPU/SIDefines.h
parenta8d89f3500aae1f179ed24e48d45e98b7cc4dac7 (diff)
downloadbcm5719-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/SIDefines.h')
-rw-r--r--llvm/lib/Target/AMDGPU/SIDefines.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIDefines.h b/llvm/lib/Target/AMDGPU/SIDefines.h
index 23cde1c4bc1..7a5ec05c26c 100644
--- a/llvm/lib/Target/AMDGPU/SIDefines.h
+++ b/llvm/lib/Target/AMDGPU/SIDefines.h
@@ -50,7 +50,12 @@ namespace AMDGPU {
/// Operand with register or 32-bit immediate
OPERAND_REG_IMM32 = MCOI::OPERAND_FIRST_TARGET,
/// Operand with register or inline constant
- OPERAND_REG_INLINE_C
+ OPERAND_REG_INLINE_C,
+
+ /// Operand with 32-bit immediate that uses the constant bus. The standard
+ /// OPERAND_IMMEDIATE should be used for special immediates such as source
+ /// modifiers.
+ OPERAND_KIMM32
};
}
}
OpenPOWER on IntegriCloud