LLVM 22.0.0git
MipsSelectionDAGInfo.cpp
Go to the documentation of this file.
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
10
11#define GET_SDNODE_DESC
12#include "MipsGenSDNodeInfo.inc"
13
14using namespace llvm;
15
18
20
21const char *MipsSelectionDAGInfo::getTargetNodeName(unsigned Opcode) const {
22 // These nodes don't have corresponding entries in *.td files yet.
23 switch (static_cast<MipsISD::NodeType>(Opcode)) {
24 // clang-format off
25 case MipsISD::FAbs: return "MipsISD::FAbs";
26 case MipsISD::DynAlloc: return "MipsISD::DynAlloc";
27 case MipsISD::DOUBLE_SELECT_I: return "MipsISD::DOUBLE_SELECT_I";
28 case MipsISD::DOUBLE_SELECT_I64: return "MipsISD::DOUBLE_SELECT_I64";
29 // clang-format on
30 }
31
33}
34
36 const SDNode *N) const {
37 switch (N->getOpcode()) {
38 default:
39 break;
40 case MipsISD::ERet:
41 // invalid number of operands; expected at most 2, got 3
42 return;
43 }
44
46}
const char * getTargetNodeName(unsigned Opcode) const override
Returns the name of the given target-specific opcode, suitable for debug printing.
void verifyTargetNode(const SelectionDAG &DAG, const SDNode *N) const override
Checks that the given target-specific node is valid. Aborts if it is not.
Represents one node in the SelectionDAG.
const char * getTargetNodeName(unsigned Opcode) const override
Returns the name of the given target-specific opcode, suitable for debug printing.
SelectionDAGGenTargetInfo(const SDNodeInfo &GenNodeInfo)
void verifyTargetNode(const SelectionDAG &DAG, const SDNode *N) const override
Checks that the given target-specific node is valid. Aborts if it is not.
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
This is an optimization pass for GlobalISel generic memory operations.
#define N