Home
last modified time | relevance | path

Searched refs:StateValue (Results 1 – 2 of 2) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.h29 enum class StateValue { enum
93 static StateValue decodeZT0State(unsigned Bitmask) { in decodeZT0State()
94 return static_cast<StateValue>((Bitmask & ZT0_Mask) >> ZT0_Shift); in decodeZT0State()
96 static unsigned encodeZT0State(StateValue S) { in encodeZT0State()
100 bool isNewZT0() const { return decodeZT0State(Bitmask) == StateValue::New; } in isNewZT0()
101 bool isInZT0() const { return decodeZT0State(Bitmask) == StateValue::In; } in isInZT0()
104 return decodeZT0State(Bitmask) == StateValue::InOut; in isInOutZT0()
107 return decodeZT0State(Bitmask) == StateValue::Preserved; in isPreservesZT0()
110 StateValue State = decodeZT0State(Bitmask); in sharesZT0()
111 return State == StateValue::In || State == StateValue::Out || in sharesZT0()
[all …]
H A DAArch64SMEAttributes.cpp71 Bitmask |= encodeZT0State(StateValue::In); in SMEAttrs()
73 Bitmask |= encodeZT0State(StateValue::Out); in SMEAttrs()
75 Bitmask |= encodeZT0State(StateValue::InOut); in SMEAttrs()
77 Bitmask |= encodeZT0State(StateValue::Preserved); in SMEAttrs()
79 Bitmask |= encodeZT0State(StateValue::New); in SMEAttrs()