Skip to main content

LlvmSymbolName

Trait LlvmSymbolName 

Source
pub trait LlvmSymbolName: Op + SymbolOpInterface {
    // Provided methods
    fn llvm_symbol_name(&self, ctx: &Context) -> Option<String> { ... }
    fn set_llvm_symbol_name(&self, ctx: &Context, name: String) { ... }
}
Expand description

Since LLVM symbols can have characters that are illegal in pliron, this interface provides a way to get the original LLVM symbol name.

Provided Methods§

Source

fn llvm_symbol_name(&self, ctx: &Context) -> Option<String>

Get the original LLVM symbol name, if it’s different from the pliron symbol name.

Source

fn set_llvm_symbol_name(&self, ctx: &Context, name: String)

Set the original LLVM symbol name.

Trait Implementations§

Source§

impl OpInterfaceMarker for dyn LlvmSymbolName

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§