clang 24.0.0git
CodeGenUtils.cpp File Reference
#include "clang/CodeGenUtils/CodeGenUtils.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Expr.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/DiagnosticFrontend.h"
#include "clang/Basic/TargetBuiltins.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringMap.h"

Go to the source code of this file.

Namespaces

namespace  clang
 Top level wrappers for InstallAPI frontend operations.
namespace  clang::CodeGenUtils

Functions

static bool clang::CodeGenUtils::hasTrivialDestructorBody (ASTContext &Context, const CXXRecordDecl *BaseClassDecl, const CXXRecordDecl *MostDerivedClassDecl)
bool clang::CodeGenUtils::fieldHasTrivialDestructorBody (ASTContext &Context, const FieldDecl *Field)
 Check whether destructing Field has no observable behaviors, and thus can be skipped when creating a destructor body.
bool clang::CodeGenUtils::canSkipVTablePointerInitialization (ASTContext &Ctx, const CXXDestructorDecl *Dtor)
 Check whether we need to initialize any vtable pointers before calling this destructor.
bool clang::CodeGenUtils::hasUnwindExceptions (const LangOptions &LangOpts)
 Determines whether the language options require us to model unwind exceptions.
bool clang::CodeGenUtils::isAAPCS (const TargetInfo &TargetInfo)
 Helper method to check if the underlying ABI is AAPCS.
bool clang::CodeGenUtils::isInitializerOfDynamicClass (const CXXCtorInitializer *BaseInit)
void clang::CodeGenUtils::checkTargetFeatures (ASTContext &Ctx, DiagnosticsEngine &Diags, const LangOptions &LangOpts, const CallExpr *E, const FunctionDecl *Caller, const FunctionDecl *TargetDecl)
 Check that a call to a target-specific builtin has the required target features enabled in the caller, emitting an error diagnostic if not.
void clang::CodeGenUtils::checkTargetFeatures (ASTContext &Ctx, DiagnosticsEngine &Diags, const LangOptions &LangOpts, SourceLocation Loc, const FunctionDecl *Caller, const FunctionDecl *TargetDecl)
 Overload taking a raw source location instead of a CallExpr.