Skip to content

Commit 035d9d4

Browse files
committed
Add pointer authentication intrinsics
1 parent 46ecc10 commit 035d9d4

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

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

0 commit comments

Comments
 (0)