|
clang 24.0.0git
|
#include "CIRGenBuilder.h"#include "CIRGenConstantEmitter.h"#include "CIRGenFunction.h"#include "CIRGenValue.h"#include "mlir/IR/Builders.h"#include "clang/CIR/Dialect/IR/CIRAttrs.h"#include "clang/AST/Expr.h"#include "clang/AST/ExprCXX.h"#include "clang/AST/RecordLayout.h"#include "clang/AST/StmtVisitor.h"#include "clang/CodeGenUtils/ExprUtils.h"#include "llvm/IR/Value.h"#include <cstdint>Go to the source code of this file.
Functions | |
| static void | checkAggExprForMemSetUse (AggValueSlot &slot, const Expr *e, CIRGenFunction &cgf) |
| CheckAggExprForMemSetUse - If the initializer is large and has a lot of zeros in it, emit a memset and avoid storing the individual zeros. | |
|
static |
CheckAggExprForMemSetUse - If the initializer is large and has a lot of zeros in it, emit a memset and avoid storing the individual zeros.
Definition at line 1320 of file CIRGenExprAggregate.cpp.
References clang::cast(), clang::CIRGen::CIRGenFunction::cgm, clang::CIRGen::CIRGenBuilderTy::createMemSet(), clang::CharUnits::fromQuantity(), clang::CIRGen::AggValueSlot::getAddress(), clang::Type::getAsCanonical(), clang::ASTContext::getBaseElementType(), clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenBuilderTy::getConstInt(), clang::CIRGen::CIRGenFunction::getContext(), clang::CIRGen::CIRGenFunction::getLangOpts(), clang::CIRGen::CIRGenFunction::getLoc(), clang::CodeGenUtils::GetNumNonZeroBytesInInit(), clang::CIRGen::AggValueSlot::getPreferredSize(), clang::CharUnits::getQuantity(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::CIRGen::Address::isValid(), clang::CIRGen::AggValueSlot::isVolatile(), clang::CIRGen::AggValueSlot::isZeroed(), clang::CIRGen::AggValueSlot::setZeroed(), clang::CIRGen::CIRGenTypeCache::uInt64Ty, clang::CIRGen::CIRGenTypeCache::uInt8Ty, clang::CIRGen::CIRGenTypeCache::voidTy, and clang::CIRGen::Address::withElementType().
Referenced by clang::CIRGen::CIRGenFunction::emitAggExpr().