clang
17.0.0git
|
Target specific hooks for defining how a type should be passed or returned from functions with one of the Swift calling conventions. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/ABIInfo.h"
Public Member Functions | |
SwiftABIInfo (CodeGen::CodeGenTypes &CGT, bool SwiftErrorInRegister) | |
virtual | ~SwiftABIInfo () |
virtual bool | shouldPassIndirectly (ArrayRef< llvm::Type * > ComponentTys, bool AsReturnValue) const |
Returns true if an aggregate which expands to the given type sequence should be passed / returned indirectly. More... | |
virtual bool | isLegalVectorType (CharUnits VectorSize, llvm::Type *EltTy, unsigned NumElts) const |
Returns true if the given vector type is legal from Swift's calling convention perspective. More... | |
bool | isSwiftErrorInRegister () const |
Returns true if swifterror is lowered to a register by the target ABI. More... | |
Protected Attributes | |
CodeGenTypes & | CGT |
bool | SwiftErrorInRegister |
Target specific hooks for defining how a type should be passed or returned from functions with one of the Swift calling conventions.
|
inline |
|
virtualdefault |
|
virtual |
Returns true if the given vector type is legal from Swift's calling convention perspective.
Definition at line 160 of file TargetInfo.cpp.
References clang::CharUnits::getQuantity().
Referenced by clang::CodeGen::swiftcall::isLegalVectorType().
|
inline |
Returns true if swifterror is lowered to a register by the target ABI.
Definition at line 139 of file ABIInfo.h.
References SwiftErrorInRegister.
Referenced by clang::CodeGen::swiftcall::isSwiftErrorLoweredInRegister().
|
virtual |
Returns true if an aggregate which expands to the given type sequence should be passed / returned indirectly.
Definition at line 155 of file TargetInfo.cpp.
References CGT, and occupiesMoreThan().
Referenced by clang::CodeGen::swiftcall::SwiftAggLowering::shouldPassIndirectly(), and clang::CodeGen::swiftcall::shouldPassIndirectly().
|
protected |
Definition at line 119 of file ABIInfo.h.
Referenced by shouldPassIndirectly().
|
protected |
Definition at line 120 of file ABIInfo.h.
Referenced by isSwiftErrorInRegister().