about summary refs log tree commit diff
path: root/compiler/stable_mir/src/compiler_interface.rs
diff options
context:
space:
mode:
authorAdrian Palacios <accorell@amazon.com>2024-03-08 19:11:59 +0000
committerAdrian Palacios <accorell@amazon.com>2024-03-12 22:03:23 +0000
commit68fc92242f1e6165f917cce8304c8cf35518f63a (patch)
tree0a46b12bccb5e1b55d73eab619bd961accca5b8b /compiler/stable_mir/src/compiler_interface.rs
parent74acabe9b042ea8c42862ee29aca2a8b7d333644 (diff)
downloadrust-68fc92242f1e6165f917cce8304c8cf35518f63a.tar.gz
rust-68fc92242f1e6165f917cce8304c8cf35518f63a.zip
Add `intrinsic_name` to get plain intrinsic name
Diffstat (limited to 'compiler/stable_mir/src/compiler_interface.rs')
-rw-r--r--compiler/stable_mir/src/compiler_interface.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/stable_mir/src/compiler_interface.rs b/compiler/stable_mir/src/compiler_interface.rs
index 0f7d8d7e083..1c51c175d81 100644
--- a/compiler/stable_mir/src/compiler_interface.rs
+++ b/compiler/stable_mir/src/compiler_interface.rs
@@ -183,6 +183,7 @@ pub trait Context {
     fn vtable_allocation(&self, global_alloc: &GlobalAlloc) -> Option<AllocId>;
     fn krate(&self, def_id: DefId) -> Crate;
     fn instance_name(&self, def: InstanceDef, trimmed: bool) -> Symbol;
+    fn intrinsic_name(&self, def: InstanceDef) -> Symbol;
 
     /// Return information about the target machine.
     fn target_info(&self) -> MachineInfo;