xref: /llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGTargetInfo.cpp (revision 9ae92d70561bcc95a7f818920238e764253d9758)
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 
15 using namespace llvm;
16 
17 SelectionDAGTargetInfo::~SelectionDAGTargetInfo() = default;
18 
19 bool SelectionDAGTargetInfo::mayRaiseFPException(unsigned Opcode) const {
20   // FIXME: All target memory opcodes are currently automatically considered
21   //  to possibly raise FP exceptions. See rev. 63336795.
22   return isTargetStrictFPOpcode(Opcode) || isTargetMemoryOpcode(Opcode);
23 }
24