clang 22.0.0git
CGExprConstant.cpp File Reference
#include "ABIInfoImpl.h"
#include "CGCXXABI.h"
#include "CGObjCRuntime.h"
#include "CGRecordLayout.h"
#include "CodeGenFunction.h"
#include "CodeGenModule.h"
#include "ConstantEmitter.h"
#include "TargetInfo.h"
#include "clang/AST/APValue.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attr.h"
#include "clang/AST/RecordLayout.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Basic/Builtins.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Sequence.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include <optional>

Go to the source code of this file.

Functions

static QualType getNonMemoryType (CodeGenModule &CGM, QualType type)
static ConstantLValue emitConstantObjCStringLiteral (const StringLiteral *S, QualType T, CodeGenModule &CGM)
static llvm::Constant * EmitNullConstantForBase (CodeGenModule &CGM, llvm::Type *baseType, const CXXRecordDecl *base)
 Emit the null constant for a base subobject.
static llvm::Constant * EmitNullConstant (CodeGenModule &CGM, const RecordDecl *record, bool asCompleteObject)

Function Documentation

◆ emitConstantObjCStringLiteral()

◆ EmitNullConstant()

◆ EmitNullConstantForBase()

llvm::Constant * EmitNullConstantForBase ( CodeGenModule & CGM,
llvm::Type * baseType,
const CXXRecordDecl * base )
static

◆ getNonMemoryType()