Pass tune-cpu to LLVM
I think this is how it should work...
This commit is contained in:
parent
285fc7d704
commit
a35a93f09c
9 changed files with 80 additions and 8 deletions
|
@ -116,4 +116,5 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se
|
|||
opt_level: config::OptLevel,
|
||||
) -> Arc<dyn Fn() -> Result<Self::TargetMachine, String> + Send + Sync>;
|
||||
fn target_cpu<'b>(&self, sess: &'b Session) -> &'b str;
|
||||
fn tune_cpu<'b>(&self, sess: &'b Session) -> Option<&'b str>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue