public class AMD64 extends Architecture
Modifier and Type | Class and Description |
---|---|
static class |
AMD64.CPUFeature
Basic set of CPU features mirroring what is returned from the cpuid instruction.
|
static class |
AMD64.Flag
Set of flags to control code emission.
|
Constructor and Description |
---|
AMD64(EnumSet<AMD64.CPUFeature> features,
EnumSet<AMD64.Flag> flags) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStoreValue(Register.RegisterCategory category,
PlatformKind platformKind)
Determine whether a kind can be stored in a register of a given category.
|
EnumSet<AMD64.CPUFeature> |
getFeatures() |
EnumSet<AMD64.Flag> |
getFlags() |
PlatformKind |
getLargestStorableKind(Register.RegisterCategory category)
Return the largest kind that can be stored in a register of a given category.
|
equals, getByteOrder, getMachineCodeCallDisplacementOffset, getName, getRegisterReferenceMapSize, getRegisters, getReturnAddressSize, getSizeInBytes, getWordSize, hashCode, requiredBarriers, supportsUnalignedMemoryAccess, toString
public static final Register.RegisterCategory CPU
public static final Register[] cpuRegisters
private static final int XMM_REFERENCE_MAP_SHIFT
public static final Register.RegisterCategory XMM
public static final Register[] xmmRegisters
public static final Register[] cpuxmmRegisters
public static final Register[] allRegisters
private final EnumSet<AMD64.CPUFeature> features
private final EnumSet<AMD64.Flag> flags
public AMD64(EnumSet<AMD64.CPUFeature> features, EnumSet<AMD64.Flag> flags)
public EnumSet<AMD64.CPUFeature> getFeatures()
public EnumSet<AMD64.Flag> getFlags()
public boolean canStoreValue(Register.RegisterCategory category, PlatformKind platformKind)
Architecture
canStoreValue
in class Architecture
category
- the category of the registerplatformKind
- the kind that should be stored in the registerpublic PlatformKind getLargestStorableKind(Register.RegisterCategory category)
Architecture
getLargestStorableKind
in class Architecture
category
- the category of the registercategory