clang 24.0.0git
CallUtils.cpp
Go to the documentation of this file.
1//===--- CallUtils.cpp - Shared call emission queries ---------------------===//
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
11namespace clang::CodeGenUtils {
12
18
19llvm::FPClassTest getNoFPClassTestMask(const LangOptions &LangOpts) {
20 llvm::FPClassTest Mask = llvm::fcNone;
21 if (LangOpts.NoHonorInfs)
22 Mask |= llvm::fcInf;
23 if (LangOpts.NoHonorNaNs)
24 Mask |= llvm::fcNan;
25 return Mask;
26}
27
28} // namespace clang::CodeGenUtils
Represents a static or instance method of a struct/union/class.
Definition DeclCXX.h:2149
Represents a canonical, potentially-qualified type.
CanProxy< U > getAs() const
Retrieve a canonical type pointer with a different static type, upcasting or downcasting as needed.
Represents a prototype with parameter type info, e.g.
Definition TypeBase.h:5398
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
CanQualType getCanonicalTypeUnqualified() const
QualType getType() const
Definition Decl.h:724
CanQual< FunctionProtoType > getFormalType(const CXXMethodDecl *MD)
Returns the canonical formal type of the given C++ method.
Definition CallUtils.cpp:13
llvm::FPClassTest getNoFPClassTestMask(const LangOptions &LangOpts)
Returns the set of floating-point value kinds that the language options promise never reach a functio...
Definition CallUtils.cpp:19