clang 24.0.0git
CIRGenPointerAuth.cpp
Go to the documentation of this file.
1//===--- CIRGenPointerAuth.cpp - CIR generation for ptr auth --------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains common routines relating to the emission of
10// pointer authentication operations.
11//
12//===----------------------------------------------------------------------===//
13
14#include "CIRGenFunction.h"
15
16using namespace clang;
17using namespace clang::CIRGen;
18
25 // This should eventually get the function pointer with authentication
26 // information added. Since this is not yet implemented, this just gets the
27 // 'base' pointer right now.
29
30 return getRawFunctionPointer(gd);
31}
Address getAsNaturalAddressOf(Address addr, QualType pointeeTy)
cir::FuncOp getRawFunctionPointer(GlobalDecl GD)
Return a function pointer for a reference to the given function.
cir::FuncOp getFunctionPointer(GlobalDecl GD)
Return the ABI-correct function pointer value for a reference to the given function.
GlobalDecl - represents a global declaration.
Definition GlobalDecl.h:60
A (possibly-)qualified type.
Definition TypeBase.h:938
Top level wrappers for InstallAPI frontend operations.
static bool pointerAuthentication()