Skip to content

Commit

Permalink
Add pointer authentication intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
arttet committed Dec 11, 2023
1 parent e299752 commit 86c7cd4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compiler/rustc_codegen_llvm/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,14 @@ impl<'ll> CodegenCx<'ll, '_> {
ifn!("llvm.va_end", fn(ptr) -> void);
ifn!("llvm.va_copy", fn(ptr, ptr) -> void);

// pointer authentication intrinsics
ifn!("llvm.ptrauth.sign.i64", fn(t_i64, t_i32, t_i64) -> t_i64);
ifn!("llvm.ptrauth.auth.i64", fn(t_i64, t_i32, t_i64) -> t_i64);
ifn!("llvm.ptrauth.strip.i64", fn(t_i64, t_i32) -> t_i64);
ifn!("llvm.ptrauth.resign.i64", fn(t_i64, t_i32, t_i64, t_i32, t_i64) -> t_i64);
ifn!("llvm.ptrauth.sign_generic.i64", fn(t_i64, t_i64) -> t_i64);
ifn!("llvm.ptrauth.blend.i64", fn(t_i64, t_i64) -> t_i64);

if self.sess().instrument_coverage() {
ifn!("llvm.instrprof.increment", fn(ptr, t_i64, t_i32, t_i32) -> void);
}
Expand Down

0 comments on commit 86c7cd4

Please sign in to comment.