10 #ifndef LLVM_CLANG_LIB_CODEGEN_ABIINFO_H
11 #define LLVM_CLANG_LIB_CODEGEN_ABIINFO_H
14 #include "llvm/IR/CallingConv.h"
15 #include "llvm/IR/Type.h"
32 class CodeGenFunction;
97 uint64_t Members)
const;
102 uint64_t &Members)
const;
108 bool Realign =
false,
109 llvm::Type *Padding =
nullptr)
const;
A (possibly-)qualified type.
const TargetInfo & getTarget() const
C Language Family Type Representation.
The base class of the type hierarchy.
virtual void computeInfo(CodeGen::CGFunctionInfo &FI) const =0
ABIInfo(CodeGen::CodeGenTypes &cgt)
llvm::CallingConv::ID getRuntimeCC() const
Return the calling convention to use for system runtime functions.
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
llvm::CallingConv::ID BuiltinCC
CodeGen::CodeGenTypes & CGT
virtual CodeGen::Address EmitMSVAArg(CodeGen::CodeGenFunction &CGF, CodeGen::Address VAListAddr, QualType Ty) const
Emit the target dependent code to load a value of.
virtual CodeGen::Address EmitVAArg(CodeGen::CodeGenFunction &CGF, CodeGen::Address VAListAddr, QualType Ty) const =0
EmitVAArg - Emit the target dependent code to load a value of.
ABIArgInfo - Helper class to encapsulate information about how a specific C type should be passed to ...
ABIInfo - Target specific hooks for defining how a type should be passed or returned from functions...
CodeGen::ABIArgInfo getNaturalAlignIndirectInReg(QualType Ty, bool Realign=false) const
ID
Defines the set of possible language-specific address spaces.
Exposes information about the current target.
llvm::LLVMContext & getVMContext() const
ASTContext & getContext() const
CallingConv
CallingConv - Specifies the calling convention that a function uses.
llvm::CallingConv::ID getBuiltinCC() const
Return the calling convention to use for compiler builtins.
virtual bool shouldSignExtUnsignedType(QualType Ty) const
bool isHomogeneousAggregate(QualType Ty, const Type *&Base, uint64_t &Members) const
isHomogeneousAggregate - Return true if a type is an ELFv2 homogeneous aggregate. ...
llvm::CallingConv::ID RuntimeCC
CGFunctionInfo - Class to encapsulate the information about a function definition.
Implements C++ ABI-specific code generation functions.
This class organizes the cross-module state that is used while lowering AST types to LLVM types...
virtual bool isHomogeneousAggregateSmallEnough(const Type *Base, uint64_t Members) const
CodeGen::CGCXXABI & getCXXABI() const
CodeGen::ABIArgInfo getNaturalAlignIndirect(QualType Ty, bool ByRef=true, bool Realign=false, llvm::Type *Padding=nullptr) const
A convenience method to return an indirect ABIArgInfo with an expected alignment equal to the ABI ali...
const llvm::DataLayout & getDataLayout() const
virtual bool isHomogeneousAggregateBaseType(QualType Ty) const