| Tom Stellard | 2c1c9de | 2014-03-24 16:07:25 +0000 | [diff] [blame] | 1 | //===-- R700Instructions.td - R700 Instruction defs -------*- tablegen -*-===// |
| 2 | // |
| Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| Tom Stellard | 2c1c9de | 2014-03-24 16:07:25 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // TableGen definitions for instructions which are: |
| 10 | // - Available to R700 and newer VLIW4/VLIW5 GPUs |
| 11 | // - Available only on R700 family GPUs. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| Tom Stellard | 5bfbae5 | 2018-07-11 20:59:01 +0000 | [diff] [blame] | 15 | def isR700 : Predicate<"Subtarget->getGeneration() == AMDGPUSubtarget::R700">; |
| Tom Stellard | 2c1c9de | 2014-03-24 16:07:25 +0000 | [diff] [blame] | 16 | |
| 17 | let Predicates = [isR700] in { |
| 18 | def SIN_r700 : SIN_Common<0x6E>; |
| 19 | def COS_r700 : COS_Common<0x6F>; |
| 20 | } |