brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · a402c77 Raw
35 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "M68kSelectionDAGInfo.h"10 11#define GET_SDNODE_DESC12#include "M68kGenSDNodeInfo.inc"13 14using namespace llvm;15 16M68kSelectionDAGInfo::M68kSelectionDAGInfo()17    : SelectionDAGGenTargetInfo(M68kGenSDNodeInfo) {}18 19void M68kSelectionDAGInfo::verifyTargetNode(const SelectionDAG &DAG,20                                            const SDNode *N) const {21  switch (N->getOpcode()) {22  case M68kISD::ADD:23  case M68kISD::SUBX:24    // result #1 must have type i8, but has type i3225    return;26  case M68kISD::SETCC:27    // operand #1 must have type i8, but has type i3228    return;29  }30 31  SelectionDAGGenTargetInfo::verifyTargetNode(DAG, N);32}33 34M68kSelectionDAGInfo::~M68kSelectionDAGInfo() = default;35