clang 24.0.0git
CallUtils.h
Go to the documentation of this file.
1//===--- CallUtils.h - Shared call emission queries -------------*- C++ -*-===//
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 file holds the AST and language option queries that both classic
10// CodeGen and CIR CodeGen need while building a call and its argument and
11// return value attributes.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_CLANG_CODEGENUTILS_CALLUTILS_H
16#define LLVM_CLANG_CODEGENUTILS_CALLUTILS_H
17
19#include "llvm/ADT/FloatingPointMode.h"
20
22
23/// Returns the canonical formal type of the given C++ method.
25
26/// Returns the set of floating-point value kinds that the language options
27/// promise never reach a function's arguments or return value.
28llvm::FPClassTest getNoFPClassTestMask(const LangOptions &LangOpts);
29
30} // namespace clang::CodeGenUtils
31
32#endif // LLVM_CLANG_CODEGENUTILS_CALLUTILS_H
Defines the clang::ASTContext interface.
Represents a static or instance method of a struct/union/class.
Definition DeclCXX.h:2149
Represents a canonical, potentially-qualified type.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
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