summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDGPUInstructions.td
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-25 12:18:14 -0400
committerTom Stellard <[email protected]>2012-05-25 15:40:59 -0400
commit4863477e22e02af046915ca2a33dbecfd0ed34b4 (patch)
treeae3c334f03ae8d5103622888ddb54fa73ad8ce63 /src/gallium/drivers/radeon/AMDGPUInstructions.td
parent667cdba2118cf82e0027bf44314c9d1334d00840 (diff)
radeon/llvm: Use tablegen pattern to lower bitconvert
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUInstructions.td')
-rw-r--r--src/gallium/drivers/radeon/AMDGPUInstructions.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUInstructions.td b/src/gallium/drivers/radeon/AMDGPUInstructions.td
index a004b9c5aba..f4abbae6397 100644
--- a/src/gallium/drivers/radeon/AMDGPUInstructions.td
+++ b/src/gallium/drivers/radeon/AMDGPUInstructions.td
@@ -115,6 +115,12 @@ class Insert_Element <ValueType elem_type, ValueType vec_type,
(INSERT_SUBREG vec_class:$vec, elem_class:$elem, sub_reg)
>;
+// bitconvert pattern
+class BitConvert <ValueType dt, ValueType st, RegisterClass rc> : Pat <
+ (dt (bitconvert (st rc:$src0))),
+ (dt rc:$src0)
+>;
+
include "R600Instructions.td"
include "SIInstrInfo.td"