Skip to content

Commit 922889a

Browse files
committed
Add pointer authentication intrinsics
1 parent 17a520a commit 922889a

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
@@ -931,6 +931,14 @@ impl<'ll> CodegenCx<'ll, '_> {
931931
ifn!("llvm.va_end", fn(ptr) -> void);
932932
ifn!("llvm.va_copy", fn(ptr, ptr) -> void);
933933

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

0 commit comments

Comments
 (0)