Skip to content

Commit 86c7cd4

Browse files
committed
Add pointer authentication intrinsics
1 parent e299752 commit 86c7cd4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

compiler/rustc_codegen_llvm/src/context.rs

+8
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,14 @@ impl<'ll> CodegenCx<'ll, '_> {
932932
ifn!("llvm.va_end", fn(ptr) -> void);
933933
ifn!("llvm.va_copy", fn(ptr, ptr) -> void);
934934

935+
// pointer authentication intrinsics
936+
ifn!("llvm.ptrauth.sign.i64", fn(t_i64, t_i32, t_i64) -> t_i64);
937+
ifn!("llvm.ptrauth.auth.i64", fn(t_i64, t_i32, t_i64) -> t_i64);
938+
ifn!("llvm.ptrauth.strip.i64", fn(t_i64, t_i32) -> t_i64);
939+
ifn!("llvm.ptrauth.resign.i64", fn(t_i64, t_i32, t_i64, t_i32, t_i64) -> t_i64);
940+
ifn!("llvm.ptrauth.sign_generic.i64", fn(t_i64, t_i64) -> t_i64);
941+
ifn!("llvm.ptrauth.blend.i64", fn(t_i64, t_i64) -> t_i64);
942+
935943
if self.sess().instrument_coverage() {
936944
ifn!("llvm.instrprof.increment", fn(ptr, t_i64, t_i32, t_i32) -> void);
937945
}

0 commit comments

Comments
 (0)