//==-- CGFunctionInfo.h - Representation of function argument/return types -==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Defines CGFunctionInfo and associated types used in representing the // LLVM source types and ABI-coerced types for function arguments and // return values. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_CGFUNCTIONINFO_H #define LLVM_CLANG_CODEGEN_CGFUNCTIONINFO_H #include "clang/AST/CanonicalType.h" #include "clang/AST/CharUnits.h" #include "clang/AST/Decl.h" #include "clang/AST/Type.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/Support/TrailingObjects.h" #include <cassert> namespace clang { namespace CodeGen { /// ABIArgInfo - Helper class to encapsulate information about how a /// specific C type should be passed to or returned from a function. class ABIArgInfo { … }; /// A class for recording the number of arguments that a function /// signature requires. class RequiredArgs { … }; // Implementation detail of CGFunctionInfo, factored out so it can be named // in the TrailingObjects base class of CGFunctionInfo. struct CGFunctionInfoArgInfo { … }; /// CGFunctionInfo - Class to encapsulate the information about a /// function definition. class CGFunctionInfo final : public llvm::FoldingSetNode, private llvm::TrailingObjects<CGFunctionInfo, CGFunctionInfoArgInfo, FunctionProtoType::ExtParameterInfo> { … }; } // end namespace CodeGen } // end namespace clang #endif