LLVM  17.0.0git
Namespaces | Enumerations | Functions | Variables
LanaiAluCode.h File Reference
#include "llvm/ADT/StringSwitch.h"
#include "llvm/CodeGen/ISDOpcodes.h"
#include "llvm/Support/ErrorHandling.h"
Include dependency graph for LanaiAluCode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 This is an optimization pass for GlobalISel generic memory operations.


enum  llvm::LPAC::AluCode {
  llvm::LPAC::ADD = 0x00, llvm::LPAC::ADDC = 0x01, llvm::LPAC::SUB = 0x02, llvm::LPAC::SUBB = 0x03,
  llvm::LPAC::AND = 0x04, llvm::LPAC::OR = 0x05, llvm::LPAC::XOR = 0x06, llvm::LPAC::SPECIAL = 0x07,
  llvm::LPAC::SHL = 0x17, llvm::LPAC::SRL = 0x27, llvm::LPAC::SRA = 0x37, llvm::LPAC::UNKNOWN = 0xFF


static unsigned llvm::LPAC::encodeLanaiAluCode (unsigned AluOp)
static unsigned llvm::LPAC::getAluOp (unsigned AluOp)
static bool llvm::LPAC::isPreOp (unsigned AluOp)
static bool llvm::LPAC::isPostOp (unsigned AluOp)
static unsigned llvm::LPAC::makePreOp (unsigned AluOp)
static unsigned llvm::LPAC::makePostOp (unsigned AluOp)
static bool llvm::LPAC::modifiesOp (unsigned AluOp)
static const char * llvm::LPAC::lanaiAluCodeToString (unsigned AluOp)
static AluCode llvm::LPAC::stringToLanaiAluCode (StringRef S)
static AluCode llvm::LPAC::isdToLanaiAluCode (ISD::NodeType Node_type)


const int llvm::LPAC::Lanai_PRE_OP = 0x40
const int llvm::LPAC::Lanai_POST_OP = 0x80