1//===- SelectionDAGTargetInfo.cpp - SelectionDAG Info ---------------------===//
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// This implements the SelectionDAGTargetInfo class.
10//
11//===----------------------------------------------------------------------===//
12
13#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
14
15using namespace llvm;
16
17SelectionDAGTargetInfo::~SelectionDAGTargetInfo() = default;
18
19SelectionDAGGenTargetInfo::~SelectionDAGGenTargetInfo() = default;
20
21bool SelectionDAGTargetInfo::mayRaiseFPException(unsigned Opcode) const {
22 // FIXME: All target memory opcodes are currently automatically considered
23 // to possibly raise FP exceptions. See rev. 63336795.
24 return isTargetStrictFPOpcode(Opcode) || isTargetMemoryOpcode(Opcode);
25}
26