Add conditional branch encodings for RISC-V.
Not all br_icmp opcodes are present in the ISA. The missing ones can be reached by commuting operands. Don't attempt to encode EBB offsets yet. For now just emit an EBB relocation for the branch instruction.
This commit is contained in:
@@ -188,4 +188,12 @@ pub trait TargetIsa {
|
||||
/// Note that this will call `put*` methods on the trait object via its vtable which is not the
|
||||
/// fastest way of emitting code.
|
||||
fn emit_inst(&self, func: &Function, inst: Inst, sink: &mut CodeSink);
|
||||
|
||||
/// Get a static array of names associated with relocations in this ISA.
|
||||
///
|
||||
/// This array can be indexed by the contents of `binemit::Reloc` objects passed to a
|
||||
/// `CodeSink`.
|
||||
fn reloc_names(&self) -> &'static [&'static str] {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user