13 #ifndef LLVM_LIB_TARGET_LANAI_LANAIALUCODE_H 14 #define LLVM_LIB_TARGET_LANAI_LANAIALUCODE_H 49 unsigned const OP_ENCODING_MASK = 0x07;
50 return AluOp & OP_ENCODING_MASK;
53 inline static unsigned getAluOp(
unsigned AluOp) {
54 unsigned const ALU_MASK = 0x3F;
55 return AluOp & ALU_MASK;
63 assert(!
isPostOp(AluOp) &&
"Operator can't be a post- and pre-op");
68 assert(!
isPreOp(AluOp) &&
"Operator can't be a post- and pre-op");
147 #endif // LLVM_LIB_TARGET_LANAI_LANAIALUCODE_H
This class represents lattice values for constants.
static bool modifiesOp(unsigned AluOp)
static const char * lanaiAluCodeToString(unsigned AluOp)
static unsigned getAluOp(unsigned AluOp)
static unsigned makePostOp(unsigned AluOp)
StringSwitch & Case(StringLiteral S, T Value)
NodeType
ISD::NodeType enum - This enum defines the target-independent operators for a SelectionDAG.
Shift and rotation operations.
LLVM_NODISCARD R Default(T Value)
Simple integer binary arithmetic operators.
static bool isPreOp(unsigned AluOp)
A switch()-like statement whose cases are string literals.
Carry-using nodes for multiple precision addition and subtraction.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static bool isPostOp(unsigned AluOp)
static unsigned makePreOp(unsigned AluOp)
static AluCode stringToLanaiAluCode(StringRef S)
Bitwise operators - logical and, logical or, logical xor.
static unsigned encodeLanaiAluCode(unsigned AluOp)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
static AluCode isdToLanaiAluCode(ISD::NodeType Node_type)