|
20 | 20 | namespace llvm { |
21 | 21 | class VESubtarget; |
22 | 22 |
|
23 | | -namespace VEISD { |
24 | | -enum NodeType : unsigned { |
25 | | - FIRST_NUMBER = ISD::BUILTIN_OP_END, |
26 | | - |
27 | | - CMPI, // Compare between two signed integer values. |
28 | | - CMPU, // Compare between two unsigned integer values. |
29 | | - CMPF, // Compare between two floating-point values. |
30 | | - CMPQ, // Compare between two quad floating-point values. |
31 | | - CMOV, // Select between two values using the result of comparison. |
32 | | - |
33 | | - CALL, // A call instruction. |
34 | | - EH_SJLJ_LONGJMP, // SjLj exception handling longjmp. |
35 | | - EH_SJLJ_SETJMP, // SjLj exception handling setjmp. |
36 | | - EH_SJLJ_SETUP_DISPATCH, // SjLj exception handling setup_dispatch. |
37 | | - GETFUNPLT, // Load function address through %plt insturction. |
38 | | - GETTLSADDR, // Load address for TLS access. |
39 | | - GETSTACKTOP, // Retrieve address of stack top (first address of |
40 | | - // locals and temporaries). |
41 | | - GLOBAL_BASE_REG, // Global base reg for PIC. |
42 | | - Hi, // Hi/Lo operations, typically on a global address. |
43 | | - Lo, // Hi/Lo operations, typically on a global address. |
44 | | - RET_GLUE, // Return with a flag operand. |
45 | | - TS1AM, // A TS1AM instruction used for 1/2 bytes swap. |
46 | | - VEC_UNPACK_LO, // unpack the lo v256 slice of a packed v512 vector. |
47 | | - VEC_UNPACK_HI, // unpack the hi v256 slice of a packed v512 vector. |
48 | | - // 0: v512 vector, 1: AVL |
49 | | - VEC_PACK, // pack a lo and a hi vector into one v512 vector |
50 | | - // 0: v256 lo vector, 1: v256 hi vector, 2: AVL |
51 | | - |
52 | | - VEC_BROADCAST, // A vector broadcast instruction. |
53 | | - // 0: scalar value, 1: VL |
54 | | - REPL_I32, |
55 | | - REPL_F32, // Replicate subregister to other half. |
56 | | - |
57 | | - // Annotation as a wrapper. LEGALAVL(VL) means that VL refers to 64bit of |
58 | | - // data, whereas the raw EVL coming in from VP nodes always refers to number |
59 | | - // of elements, regardless of their size. |
60 | | - LEGALAVL, |
61 | | - |
62 | | -// VVP_* nodes. |
63 | | -#define ADD_VVP_OP(VVP_NAME, ...) VVP_NAME, |
64 | | -#include "VVPNodes.def" |
65 | | -}; |
66 | | -} |
67 | | - |
68 | 23 | /// Convert a DAG integer condition code to a VE ICC condition. |
69 | 24 | inline static VECC::CondCode intCondCode2Icc(ISD::CondCode CC) { |
70 | 25 | switch (CC) { |
@@ -167,7 +122,6 @@ class VETargetLowering : public TargetLowering { |
167 | 122 | public: |
168 | 123 | VETargetLowering(const TargetMachine &TM, const VESubtarget &STI); |
169 | 124 |
|
170 | | - const char *getTargetNodeName(unsigned Opcode) const override; |
171 | 125 | MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { |
172 | 126 | return MVT::i32; |
173 | 127 | } |
|
0 commit comments