https://github.com/vhscampos updated
https://github.com/llvm/llvm-project/pull/133716
>From bb649666995a2642c5eea944e55c0a38503ed7bf Mon Sep 17 00:00:00 2001
From: Victor Campos
Date: Fri, 28 Mar 2025 15:55:07 +
Subject: [PATCH 1/4] Mark CXX module initializer with PACBTI attributes
The CX
@@ -793,6 +793,7 @@ void CodeGenModule::EmitCXXModuleInitFunc(Module *Primary) {
}
CodeGenFunction(*this).GenerateCXXGlobalInitFunc(Fn, ModuleInits,
GuardAddr);
+getTargetCodeGenInfo().setTargetAttributes(nullptr,
https://github.com/vhscampos updated
https://github.com/llvm/llvm-project/pull/133716
>From bb649666995a2642c5eea944e55c0a38503ed7bf Mon Sep 17 00:00:00 2001
From: Victor Campos
Date: Fri, 28 Mar 2025 15:55:07 +
Subject: [PATCH 1/3] Mark CXX module initializer with PACBTI attributes
The CX
https://github.com/vhscampos updated
https://github.com/llvm/llvm-project/pull/133716
>From bb649666995a2642c5eea944e55c0a38503ed7bf Mon Sep 17 00:00:00 2001
From: Victor Campos
Date: Fri, 28 Mar 2025 15:55:07 +
Subject: [PATCH 1/2] Mark CXX module initializer with PACBTI attributes
The CX
@@ -818,6 +818,12 @@ void CodeGenModule::EmitCXXModuleInitFunc(Module *Primary)
{
Fn->addFnAttr("device-init");
}
+ if (getTarget().isBranchProtectionSupportedArch(
+ getTarget().getTargetOpts().CPU)) {
+TargetInfo::BranchProtectionInfo BPI(getLangOpts());
https://github.com/ChuanqiXu9 commented:
LGTM. I'll leave the formal approval to @efriedma-quic
https://github.com/llvm/llvm-project/pull/133716
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cf
@@ -818,6 +818,12 @@ void CodeGenModule::EmitCXXModuleInitFunc(Module *Primary)
{
Fn->addFnAttr("device-init");
}
+ if (getTarget().isBranchProtectionSupportedArch(
+ getTarget().getTargetOpts().CPU)) {
+TargetInfo::BranchProtectionInfo BPI(getLangOpts());
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Victor Campos (vhscampos)
Changes
The CXX module initializer function, which is called at program startup, needs
to be tagged with Pointer Authentication and Branch Target Identification marks
whenever relevant.
Before this patch, in CPU
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Author: Victor Campos (vhscampos)
Changes
The CXX module initializer function, which is called at program startup, needs
to be tagged with Pointer Authentication and Branch Target Identification marks
whenever relevant.
Before this patch
https://github.com/vhscampos created
https://github.com/llvm/llvm-project/pull/133716
The CXX module initializer function, which is called at program startup, needs
to be tagged with Pointer Authentication and Branch Target Identification marks
whenever relevant.
Before this patch, in CPUs se
10 matches
Mail list logo