clang 20.0.0git
|
#include "clang/Sema/SemaPPC.h"
Public Member Functions | |
SemaPPC (Sema &S) | |
bool | CheckPPCBuiltinFunctionCall (const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall) |
void | checkAIXMemberAlignment (SourceLocation Loc, const Expr *Arg) |
bool | BuiltinPPCMMACall (CallExpr *TheCall, unsigned BuiltinID, const char *TypeDesc) |
BuiltinPPCMMACall - Check the call to a PPC MMA builtin for validity. | |
bool | CheckPPCMMAType (QualType Type, SourceLocation TypeLoc) |
bool | BuiltinVSX (CallExpr *TheCall) |
Public Member Functions inherited from clang::SemaBase | |
SemaBase (Sema &S) | |
ASTContext & | getASTContext () const |
DiagnosticsEngine & | getDiagnostics () const |
const LangOptions & | getLangOpts () const |
SemaDiagnosticBuilder | Diag (SourceLocation Loc, unsigned DiagID, bool DeferHint=false) |
Emit a diagnostic. | |
SemaDiagnosticBuilder | Diag (SourceLocation Loc, const PartialDiagnostic &PD, bool DeferHint=false) |
Emit a partial diagnostic. | |
PartialDiagnostic | PDiag (unsigned DiagID=0) |
Build a partial diagnostic. | |
Additional Inherited Members | |
Public Attributes inherited from clang::SemaBase | |
Sema & | SemaRef |
clang::SemaPPC::SemaPPC | ( | Sema & | S | ) |
Definition at line 28 of file SemaPPC.cpp.
bool clang::SemaPPC::BuiltinPPCMMACall | ( | CallExpr * | TheCall, |
unsigned | BuiltinID, | ||
const char * | TypeDesc | ||
) |
BuiltinPPCMMACall - Check the call to a PPC MMA builtin for validity.
Emit an error and return true on failure; return false on success. TypeStr is a string containing the type descriptor of the value returned by the builtin and the descriptors of the expected type of the arguments.
Definition at line 334 of file SemaPPC.cpp.
References clang::Sema::BuiltinConstantArgRange(), clang::Sema::checkArgCount(), clang::DecodePPCMMATypeFromStr(), clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::QualType::getCanonicalType(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), clang::QualType::getUnqualifiedType(), clang::Type::isArrayType(), clang::Type::isPointerType(), clang::QualType::isRestrictQualified(), clang::QualType::isVolatileQualified(), clang::SemaBase::SemaRef, clang::Expr::setType(), and clang::ast_matchers::type.
Definition at line 400 of file SemaPPC.cpp.
References clang::Sema::checkArgCount(), clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::CallExpr::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::CallExpr::getDirectCallee(), clang::Stmt::getEndLoc(), clang::Expr::getType(), clang::Type::isDependentType(), clang::Expr::isIntegerConstantExpr(), clang::Type::isVectorType(), clang::SemaBase::SemaRef, and clang::Expr::setType().
Referenced by CheckPPCBuiltinFunctionCall().
void clang::SemaPPC::checkAIXMemberAlignment | ( | SourceLocation | Loc, |
const Expr * | Arg | ||
) |
Definition at line 30 of file SemaPPC.cpp.
References clang::Type::castAs(), clang::SemaBase::Diag(), clang::RecordDecl::fields(), clang::SemaBase::getASTContext(), clang::RecordType::getDecl(), clang::CharUnits::getQuantity(), clang::Expr::getType(), clang::Expr::IgnoreParens(), Loc, and clang::ASTContext::toCharUnitsFromBits().
Referenced by clang::Sema::checkCall().
bool clang::SemaPPC::CheckPPCBuiltinFunctionCall | ( | const TargetInfo & | TI, |
unsigned | BuiltinID, | ||
CallExpr * | TheCall | ||
) |
Definition at line 96 of file SemaPPC.cpp.
References clang::Sema::BuiltinConstantArgPower2(), clang::Sema::BuiltinConstantArgRange(), BuiltinVSX(), clang::SemaBase::Diag(), E, clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::CallExpr::getBeginLoc(), clang::Expr::getIntegerConstantExpr(), clang::TargetInfo::getIntPtrType(), clang::TargetInfo::getLongDoubleFormat(), clang::CallExpr::getNumArgs(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::TargetInfo::getTypeWidth(), clang::isPPC_64Builtin(), clang::Result, clang::SemaBase::SemaRef, and clang::Sema::ValueIsRunOfOnes().
bool clang::SemaPPC::CheckPPCMMAType | ( | QualType | Type, |
SourceLocation | TypeLoc | ||
) |
Definition at line 259 of file SemaPPC.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::Type::isArrayType(), and clang::Type::isPointerType().
Referenced by clang::Sema::BuildCXXThrow().