#ifndef LLVM_LIB_TARGET_LANAI_LANAIALUCODE_H
#define LLVM_LIB_TARGET_LANAI_LANAIALUCODE_H
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
namespace llvm {
namespace LPAC {
enum AluCode { … };
const int Lanai_PRE_OP = …;
const int Lanai_POST_OP = …;
inline static unsigned encodeLanaiAluCode(unsigned AluOp) { … }
inline static unsigned getAluOp(unsigned AluOp) { … }
inline static bool isPreOp(unsigned AluOp) { … }
inline static bool isPostOp(unsigned AluOp) { … }
inline static unsigned makePreOp(unsigned AluOp) { … }
inline static unsigned makePostOp(unsigned AluOp) { … }
inline static bool modifiesOp(unsigned AluOp) { … }
inline static const char *lanaiAluCodeToString(unsigned AluOp) { … }
inline static AluCode stringToLanaiAluCode(StringRef S) { … }
}
}
#endif