clang
24.0.0git
include
clang
CodeGenUtils
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
18
#include "
clang/AST/ASTContext.h
"
19
#include "llvm/ADT/FloatingPointMode.h"
20
21
namespace
clang::CodeGenUtils
{
22
23
/// Returns the canonical formal type of the given C++ method.
24
CanQual<FunctionProtoType>
getFormalType
(
const
CXXMethodDecl
*MD);
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.
28
llvm::FPClassTest
getNoFPClassTestMask
(
const
LangOptions
&LangOpts);
29
30
}
// namespace clang::CodeGenUtils
31
32
#endif
// LLVM_CLANG_CODEGENUTILS_CALLUTILS_H
ASTContext.h
Defines the clang::ASTContext interface.
clang::CXXMethodDecl
Represents a static or instance method of a struct/union/class.
Definition
DeclCXX.h:2149
clang::CanQual
Represents a canonical, potentially-qualified type.
Definition
CanonicalType.h:66
clang::LangOptions
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition
LangOptions.h:473
clang::CodeGenUtils
Definition
CallUtils.h:21
clang::CodeGenUtils::getFormalType
CanQual< FunctionProtoType > getFormalType(const CXXMethodDecl *MD)
Returns the canonical formal type of the given C++ method.
Definition
CallUtils.cpp:13
clang::CodeGenUtils::getNoFPClassTestMask
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
Generated on
for clang by
1.14.0