| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 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 |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIB_TARGET_MIPS_MIPSSELECTIONDAGINFO_H |
| 10 | #define LLVM_LIB_TARGET_MIPS_MIPSSELECTIONDAGINFO_H |
| 11 | |
| 12 | #include "llvm/CodeGen/SelectionDAGTargetInfo.h" |
| 13 | |
| 14 | #define GET_SDNODE_ENUM |
| 15 | #include "MipsGenSDNodeInfo.inc" |
| 16 | |
| 17 | namespace llvm { |
| 18 | namespace MipsISD { |
| 19 | |
| 20 | enum NodeType : unsigned { |
| 21 | // Floating point Abs |
| 22 | FAbs = GENERATED_OPCODE_END, |
| 23 | |
| 24 | DynAlloc, |
| 25 | |
| 26 | // Double select nodes for machines without conditional-move. |
| 27 | DOUBLE_SELECT_I, |
| 28 | DOUBLE_SELECT_I64, |
| 29 | }; |
| 30 | |
| 31 | } // namespace MipsISD |
| 32 | |
| 33 | class MipsSelectionDAGInfo : public SelectionDAGGenTargetInfo { |
| 34 | public: |
| 35 | MipsSelectionDAGInfo(); |
| 36 | |
| 37 | ~MipsSelectionDAGInfo() override; |
| 38 | |
| 39 | const char *getTargetNodeName(unsigned Opcode) const override; |
| 40 | |
| 41 | void verifyTargetNode(const SelectionDAG &DAG, |
| 42 | const SDNode *N) const override; |
| 43 | }; |
| 44 | |
| 45 | } // namespace llvm |
| 46 | |
| 47 | #endif // LLVM_LIB_TARGET_MIPS_MIPSSELECTIONDAGINFO_H |
| 48 | |