mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-20 07:30:00 +00:00
added AdmFragmentTemplate interface
This commit is contained in:
parent
b8aba3d0b0
commit
8a22531a1f
@ -0,0 +1,26 @@
|
||||
package dk.camelot64.kickc.fragment;
|
||||
|
||||
import dk.camelot64.kickc.fragment.signature.AsmFragmentSignature;
|
||||
import dk.camelot64.kickc.model.TargetCpu;
|
||||
|
||||
/**
|
||||
* Abstract factory for creating ASM fragment templates from signatures.
|
||||
*/
|
||||
public interface AsmFragmentTemplateFactory {
|
||||
|
||||
/**
|
||||
* Get the CPU that the factory produces templates for
|
||||
*
|
||||
* @return The target CPU
|
||||
*/
|
||||
TargetCpu getCpu();
|
||||
|
||||
/**
|
||||
* Get an ASM template from a signature.
|
||||
*
|
||||
* @param signature The signature describing the ASM fragment
|
||||
* @return The ASM fragment template that can be used for generating ASM
|
||||
*/
|
||||
AsmFragmentTemplate getTemplate(AsmFragmentSignature signature);
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user