clang 20.0.0git
Functions
CGDeclCXX.cpp File Reference
#include "CGCXXABI.h"
#include "CGHLSLRuntime.h"
#include "CGObjCRuntime.h"
#include "CGOpenMPRuntime.h"
#include "CodeGenFunction.h"
#include "TargetInfo.h"
#include "clang/AST/Attr.h"
#include "clang/Basic/LangOptions.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/Support/Path.h"

Go to the source code of this file.

Functions

static void EmitDeclInit (CodeGenFunction &CGF, const VarDecl &D, ConstantAddress DeclPtr)
 
static void EmitDeclDestroy (CodeGenFunction &CGF, const VarDecl &D, ConstantAddress Addr)
 Emit code to cause the destruction of the given variable with static storage duration.
 
static void EmitDeclInvariant (CodeGenFunction &CGF, const VarDecl &D, llvm::Constant *Addr)
 Emit code to cause the variable at the given address to be considered as constant from this point onwards.
 
static SmallString< 128 > getTransformedFileName (llvm::Module &M)
 
static std::string getPrioritySuffix (unsigned int Priority)
 

Function Documentation

◆ EmitDeclDestroy()

static void EmitDeclDestroy ( CodeGenFunction CGF,
const VarDecl D,
ConstantAddress  Addr 
)
static

◆ EmitDeclInit()

static void EmitDeclInit ( CodeGenFunction CGF,
const VarDecl D,
ConstantAddress  DeclPtr 
)
static

◆ EmitDeclInvariant()

static void EmitDeclInvariant ( CodeGenFunction CGF,
const VarDecl D,
llvm::Constant *  Addr 
)
static

Emit code to cause the variable at the given address to be considered as constant from this point onwards.

Definition at line 151 of file CGDeclCXX.cpp.

References D, clang::CodeGen::CodeGenFunction::EmitInvariantStart(), clang::CodeGen::CodeGenFunction::getContext(), and clang::ASTContext::getTypeSizeInChars().

◆ getPrioritySuffix()

static std::string getPrioritySuffix ( unsigned int  Priority)
static

Definition at line 826 of file CGDeclCXX.cpp.

References Priority.

◆ getTransformedFileName()

static SmallString< 128 > getTransformedFileName ( llvm::Module &  M)
static

Definition at line 810 of file CGDeclCXX.cpp.

References clang::FileName, and clang::isPreprocessingNumberBody().