|
clang 24.0.0git
|
#include "ABIInfoImpl.h"#include "TargetInfo.h"#include "clang/Basic/DiagnosticFrontend.h"#include "clang/Basic/SourceLocation.h"#include "llvm/ADT/SmallBitVector.h"Go to the source code of this file.
Functions | |
| static void | rewriteInputConstraintReferences (unsigned FirstIn, unsigned NumNewOuts, std::string &AsmString) |
| Rewrite input constraint references after adding some output constraints. | |
| static bool | is32Or64BitBasicType (QualType Ty, ASTContext &Context) |
| static bool | addFieldSizes (ASTContext &Context, const RecordDecl *RD, uint64_t &Size) |
| static bool | addBaseAndFieldSizes (ASTContext &Context, const CXXRecordDecl *RD, uint64_t &Size) |
| static bool | shouldExtendReturnType (const ABIInfo &Info, QualType RetTy) |
| static CodeGenOptions::SmallIntABICompatKind | getEffectiveSmallIntABICompat (const CodeGenOptions &Opts, const llvm::Triple &T) |
| static const Type * | getSingleFieldType (QualType T, ASTContext &Context) |
| Like isSingleElementRecord, but only looks through one level of records. | |
| static bool | isArgInAlloca (const ABIArgInfo &Info) |
| static void | addX86InterruptAttrs (const FunctionDecl *FD, llvm::GlobalValue *GV, CodeGen::CodeGenModule &CGM) |
| static void | initFeatureMaps (const ASTContext &Ctx, llvm::StringMap< bool > &CallerMap, const FunctionDecl *Caller, llvm::StringMap< bool > &CalleeMap, const FunctionDecl *Callee) |
| static bool | checkAVXParamFeature (DiagnosticsEngine &Diag, SourceLocation CallLoc, const FunctionDecl &Callee, const llvm::StringMap< bool > &CallerMap, const llvm::StringMap< bool > &CalleeMap, QualType Ty, StringRef Feature, bool IsArgument) |
| static bool | checkAVXParam (DiagnosticsEngine &Diag, ASTContext &Ctx, SourceLocation CallLoc, const FunctionDecl &Callee, const llvm::StringMap< bool > &CallerMap, const llvm::StringMap< bool > &CalleeMap, QualType Ty, bool IsArgument) |
| static X86AVXABILevel | getEffectiveX86AVXABILevel (CodeGenTypes &CGT, X86AVXABILevel GlobalAVXLevel, const FunctionDecl *FD) |
| static bool | BitsContainNoUserData (QualType Ty, unsigned StartBit, unsigned EndBit, ASTContext &Context) |
| BitsContainNoUserData - Return true if the specified [start,end) bit range is known to either be off the end of the specified type or being in alignment padding. | |
| static llvm::Type * | getFPTypeAtOffset (llvm::Type *IRType, unsigned IROffset, const llvm::DataLayout &TD) |
| getFPTypeAtOffset - Return a floating point type at the specified offset. | |
| static llvm::Type * | GetX86_64ByValArgumentPair (llvm::Type *Lo, llvm::Type *Hi, const llvm::DataLayout &TD) |
| GetX86_64ByValArgumentPair - Given a high and low type that can ideally be used as elements of a two register pair to pass or return, return a first class aggregate to represent them. | |
| static Address | EmitX86_64VAArgFromMemory (CodeGenFunction &CGF, Address VAListAddr, QualType Ty) |
|
static |
Definition at line 417 of file X86.cpp.
References addBaseAndFieldSizes(), addFieldSizes(), clang::CXXRecordDecl::bases(), and uint64_t.
Referenced by addBaseAndFieldSizes().
|
static |
Definition at line 397 of file X86.cpp.
References clang::RecordDecl::fields(), is32Or64BitBasicType(), and uint64_t.
Referenced by addBaseAndFieldSizes().
|
static |
Definition at line 1250 of file X86.cpp.
References clang::cast(), clang::Type::castAs(), clang::CodeGen::CodeGenTypes::ConvertType(), clang::FunctionDecl::getNumParams(), clang::FunctionDecl::getParamDecl(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), and clang::Decl::hasAttr().
|
static |
BitsContainNoUserData - Return true if the specified [start,end) bit range is known to either be off the end of the specified type or being in alignment padding.
The user type specified is known to be at most 128 bits in size, and have passed through X86_64ABIInfo::classify with a successful classification that put one of the two halves in the INTEGER class.
It is conservatively correct to return false.
Definition at line 2555 of file X86.cpp.
References BitsContainNoUserData(), clang::RecordDecl::field_begin(), clang::RecordDecl::field_end(), clang::Type::getAsRecordDecl(), clang::ASTRecordLayout::getBaseClassOffset(), clang::ASTRecordLayout::getFieldOffset(), and unsigned.
Referenced by BitsContainNoUserData().
|
static |
Definition at line 1692 of file X86.cpp.
References checkAVXParamFeature(), Diag(), clang::ASTContext::getTypeSize(), and uint64_t.
|
static |
Definition at line 1664 of file X86.cpp.
References Diag(), and Feature.
Referenced by checkAVXParam().
|
static |
Definition at line 3311 of file X86.cpp.
References clang::CodeGen::CodeGenFunction::Builder, clang::CodeGen::CodeGenFunction::ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateGEP(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), clang::CodeGen::emitRoundPointerUpToAlignment(), clang::CharUnits::fromQuantity(), clang::CodeGen::CodeGenFunction::getContext(), clang::ASTContext::getTypeAlignInChars(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int8Ty, and uint64_t.
|
static |
Definition at line 475 of file X86.cpp.
References clang::CodeGenOptions::Clang23, and clang::T.
|
static |
Definition at line 1956 of file X86.cpp.
References clang::CodeGen::AVX, clang::CodeGen::AVX512, clang::CodeGen::CodeGenTypes::getCGM(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenTypes::getContext(), clang::ASTContext::getFunctionFeatureMap(), clang::ASTContext::getLangOpts(), clang::CodeGen::CodeGenTypes::getTarget(), clang::TargetInfo::getTriple(), and clang::Decl::hasAttr().
|
static |
getFPTypeAtOffset - Return a floating point type at the specified offset.
Definition at line 2631 of file X86.cpp.
References getFPTypeAtOffset().
Referenced by getFPTypeAtOffset().
|
static |
Like isSingleElementRecord, but only looks through one level of records.
This mirrors how GCC gives a record the mode of its only field.
Definition at line 656 of file X86.cpp.
References clang::RecordDecl::fields(), clang::Found, clang::QualType::getTypePtr(), clang::RecordDecl::hasFlexibleArrayMember(), clang::CodeGen::isEmptyField(), clang::CodeGen::isEmptyRecord(), and clang::T.
|
static |
GetX86_64ByValArgumentPair - Given a high and low type that can ideally be used as elements of a two register pair to pass or return, return a first class aggregate to represent them.
For example, if the low part of a by-value argument should be passed as i32* and the high part as float, return {i32*, float}.
Definition at line 2797 of file X86.cpp.
References unsigned.
|
static |
Definition at line 1650 of file X86.cpp.
References clang::ASTContext::getFunctionFeatureMap().
|
static |
Definition at line 381 of file X86.cpp.
References clang::Type::getAs(), clang::Type::hasPointerRepresentation(), clang::Type::isBlockPointerType(), clang::Type::isEnumeralType(), and uint64_t.
Referenced by addFieldSizes().
|
static |
Definition at line 1134 of file X86.cpp.
References clang::CodeGen::ABIArgInfo::CoerceAndExpand, clang::CodeGen::ABIArgInfo::Direct, clang::CodeGen::ABIArgInfo::Expand, clang::CodeGen::ABIArgInfo::Extend, clang::CodeGen::ABIArgInfo::getInReg(), clang::CodeGen::ABIArgInfo::getKind(), clang::CodeGen::ABIArgInfo::Ignore, clang::CodeGen::ABIArgInfo::InAlloca, clang::CodeGen::ABIArgInfo::Indirect, clang::CodeGen::ABIArgInfo::IndirectAliased, and clang::CodeGen::ABIArgInfo::TargetSpecific.
|
static |
Rewrite input constraint references after adding some output constraints.
In the case where there is one output and one input and we add one output, we need to replace all operand references greater than or equal to 1: mov $0, $1 mov eax, $1 The result will be: mov $0, $2 mov eax, $2
Definition at line 462 of file X86.cpp.
References clang::CodeGen::ABIInfo::getTarget(), clang::TargetInfo::getTriple(), clang::Type::isBooleanType(), and clang::CodeGen::ABIInfo::isPromotableIntegerTypeForABI().