[llvm-branch-commits] [clang] [clang] Define ptrauth_sign_constant builtin. (PR #93904)
Ahmed Bougacha via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 18 18:34:29 PDT 2024
================
@@ -1856,6 +1856,12 @@ class ConstantLValueEmitter : public ConstStmtVisitor<ConstantLValueEmitter,
ConstantLValue VisitMaterializeTemporaryExpr(
const MaterializeTemporaryExpr *E);
+ ConstantLValue emitPointerAuthSignConstant(const CallExpr *E);
+ llvm::Constant *emitPointerAuthPointer(const Expr *E);
+ unsigned emitPointerAuthKey(const Expr *E);
+ std::pair<llvm::Constant*, llvm::Constant*>
----------------
ahmedbougacha wrote:
The more interesting question is the usage of Constant; I think we can safely assume the integer component is always going to be a ConstantInt (because it's going to have to fit in a ConstantInt-shaped hole in CPA anyway.) That hopefully makes this obvious here, and I'll propagate that in the various users separately
https://github.com/llvm/llvm-project/pull/93904
More information about the llvm-branch-commits
mailing list