clang 22.0.0git
CGPointerAuth.cpp File Reference
#include "CodeGenFunction.h"
#include "CodeGenModule.h"
#include "clang/CodeGen/CodeGenABITypes.h"
#include "clang/CodeGen/ConstantInitBuilder.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Support/SipHash.h"

Go to the source code of this file.

Functions

static CGPointerAuthInfo getPointerAuthInfoForPointeeType (CodeGenModule &CGM, QualType PointeeType)
 Return the natural pointer authentication for values of the given pointee type.
static CGPointerAuthInfo getPointerAuthInfoForType (CodeGenModule &CGM, QualType PointerType)
 Return the natural pointer authentication for values of the given pointer type.
static std::pair< llvm::Value *, CGPointerAuthInfoemitLoadOfOrigPointerRValue (CodeGenFunction &CGF, const LValue &LV, SourceLocation Loc)
static bool isZeroConstant (const llvm::Value *Value)
static bool equalAuthPolicies (const CGPointerAuthInfo &Left, const CGPointerAuthInfo &Right)
static llvm::ValuegetDiscriminatorOrZero (const CGPointerAuthInfo &Info, CGBuilderTy &Builder)

Function Documentation

◆ emitLoadOfOrigPointerRValue()

◆ equalAuthPolicies()

bool equalAuthPolicies ( const CGPointerAuthInfo & Left,
const CGPointerAuthInfo & Right )
static

◆ getDiscriminatorOrZero()

llvm::Value * getDiscriminatorOrZero ( const CGPointerAuthInfo & Info,
CGBuilderTy & Builder )
static

◆ getPointerAuthInfoForPointeeType()

CGPointerAuthInfo getPointerAuthInfoForPointeeType ( CodeGenModule & CGM,
QualType PointeeType )
static

Return the natural pointer authentication for values of the given pointee type.

Definition at line 158 of file CGPointerAuth.cpp.

References clang::CodeGen::CodeGenModule::getFunctionPointerAuthInfo(), clang::Type::isFunctionType(), and clang::QualType::isNull().

◆ getPointerAuthInfoForType()

◆ isZeroConstant()