radeon/llvm: Move lowering of SETCC node to R600ISelLowering
[mesa.git] / src / gallium / drivers / radeon / AMDILNodes.td
1 //===- AMDILNodes.td - AMD IL nodes ------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //==-----------------------------------------------------------------------===//
9
10 //===----------------------------------------------------------------------===//
11 // Flow Control DAG Nodes
12 //===----------------------------------------------------------------------===//
13 def IL_brcond : SDNode<"AMDILISD::BRANCH_COND", SDTIL_BRCond, [SDNPHasChain]>;
14
15 //===----------------------------------------------------------------------===//
16 // Comparison DAG Nodes
17 //===----------------------------------------------------------------------===//
18 def IL_cmp : SDNode<"AMDILISD::CMP", SDTIL_Cmp>;
19
20 //===----------------------------------------------------------------------===//
21 // Call/Return DAG Nodes
22 //===----------------------------------------------------------------------===//
23 def IL_call : SDNode<"AMDILISD::CALL", SDTIL_Call,
24 [SDNPHasChain, SDNPOptInGlue, SDNPOutGlue]>;
25
26 def IL_retflag : SDNode<"AMDILISD::RET_FLAG", SDTNone,
27 [SDNPHasChain, SDNPOptInGlue]>;
28
29 //===--------------------------------------------------------------------===//
30 // Instructions
31 //===--------------------------------------------------------------------===//
32 // Floating point math functions
33 def IL_cmov_logical : SDNode<"AMDILISD::CMOVLOG", SDTIL_GenTernaryOp>;
34 def IL_div_inf : SDNode<"AMDILISD::DIV_INF", SDTIL_GenBinaryOp>;
35 def IL_mad : SDNode<"AMDILISD::MAD", SDTIL_GenTernaryOp>;
36
37 //===----------------------------------------------------------------------===//
38 // Integer functions
39 //===----------------------------------------------------------------------===//
40 def IL_umul : SDNode<"AMDILISD::UMUL" , SDTIntBinOp,
41 [SDNPCommutative, SDNPAssociative]>;
42
43 //===----------------------------------------------------------------------===//
44 // Vector functions
45 //===----------------------------------------------------------------------===//
46 def IL_vbuild : SDNode<"AMDILISD::VBUILD", SDTIL_GenVecBuild,
47 []>;