LLVM 20.0.0git
SelectionDAGTargetInfo.cpp
Go to the documentation of this file.
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
14
15using namespace llvm;
16
18
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}
virtual bool isTargetStrictFPOpcode(unsigned Opcode) const
Returns true if a node with the given target-specific opcode has strict floating-point semantics.
virtual bool mayRaiseFPException(unsigned Opcode) const
Returns true if a node with the given target-specific opcode may raise a floating-point exception.
virtual bool isTargetMemoryOpcode(unsigned Opcode) const
Returns true if a node with the given target-specific opcode has a memory operand.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18