Interface ICallingConventionManager
A calling convention manager provides calling convention definitions for a given processor.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a calling convention.Get all calling conventions present in this manager.Get the optional compiler type supported by this manager.getConvention(String conventionName) Retrieve a convention by name.Get calling conventions provided by this manager that are compatible with the set-up processor, subsystem, and compiler.Get the default convention provided by this manager.Get the processor type supported by this manager.Get the optional subsystem type supported by this manager.booleanRemove a calling convention.voidsetDefaultConvention(ICallingConvention defaultConvention) Set the default convention.
-
Method Details
-
getProcessorType
ProcessorType getProcessorType()Get the processor type supported by this manager.- Returns:
- never null
-
getSubsystemType
SubsystemType getSubsystemType()Get the optional subsystem type supported by this manager.- Returns:
- may be null
-
getCompilerType
CompilerType getCompilerType()Get the optional compiler type supported by this manager.- Returns:
- may be null
-
getDefaultConvention
ICallingConvention getDefaultConvention()Get the default convention provided by this manager.- Returns:
- default calling convention
-
setDefaultConvention
Set the default convention.- Parameters:
defaultConvention- non-null
-
getConvention
Retrieve a convention by name.- Parameters:
conventionName- convention name- Returns:
- convention, or null
-
getConventions
List<ICallingConvention> getConventions()Get calling conventions provided by this manager that are compatible with the set-up processor, subsystem, and compiler.- Returns:
- compatible calling conventions
-
getAllConventions
List<ICallingConvention> getAllConventions()Get all calling conventions present in this manager. Not all may be compatible with the set-up processor, subsystem, and compiler.Usage of this method is discouraged. Prefer
getConventions()instead.- Returns:
- all calling conventions
-
addConvention
Add a calling convention.- Parameters:
cc- calling convention- Returns:
- true if the convention was added
-
removeConvention
Remove a calling convention.- Parameters:
cc- calling convention- Returns:
- true if the convention was removed
-