LLVM  6.0.0svn
Enumerations | Functions | Variables
llvm::LPAC Namespace Reference

Enumerations

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

Functions

static unsigned encodeLanaiAluCode (unsigned AluOp)
 
static unsigned getAluOp (unsigned AluOp)
 
static bool isPreOp (unsigned AluOp)
 
static bool isPostOp (unsigned AluOp)
 
static unsigned makePreOp (unsigned AluOp)
 
static unsigned makePostOp (unsigned AluOp)
 
static bool modifiesOp (unsigned AluOp)
 
static const charlanaiAluCodeToString (unsigned AluOp)
 
static AluCode stringToLanaiAluCode (StringRef S)
 
static AluCode isdToLanaiAluCode (ISD::NodeType Node_type)
 

Variables

const int Lanai_PRE_OP = 0x40
 
const int Lanai_POST_OP = 0x80
 

Enumeration Type Documentation

◆ AluCode

Enumerator
ADD 
ADDC 
SUB 
SUBB 
AND 
OR 
XOR 
SPECIAL 
SHL 
SRL 
SRA 
UNKNOWN 

Definition at line 23 of file LanaiAluCode.h.

Function Documentation

◆ encodeLanaiAluCode()

static unsigned llvm::LPAC::encodeLanaiAluCode ( unsigned  AluOp)
inlinestatic

Definition at line 49 of file LanaiAluCode.h.

Referenced by llvm::adjustPqBits(), and usesGivenOffset().

◆ getAluOp()

static unsigned llvm::LPAC::getAluOp ( unsigned  AluOp)
inlinestatic

Definition at line 54 of file LanaiAluCode.h.

Referenced by llvm::adjustPqBits(), and lanaiAluCodeToString().

◆ isdToLanaiAluCode()

static AluCode llvm::LPAC::isdToLanaiAluCode ( ISD::NodeType  Node_type)
inlinestatic

◆ isPostOp()

static bool llvm::LPAC::isPostOp ( unsigned  AluOp)
inlinestatic

◆ isPreOp()

static bool llvm::LPAC::isPreOp ( unsigned  AluOp)
inlinestatic

◆ lanaiAluCodeToString()

static const char* llvm::LPAC::lanaiAluCodeToString ( unsigned  AluOp)
inlinestatic

Definition at line 77 of file LanaiAluCode.h.

References ADD, ADDC, AND, getAluOp(), llvm_unreachable, OR, SHL, SRA, SRL, SUB, SUBB, and XOR.

Referenced by llvm::LanaiInstPrinter::printMemRrOperand().

◆ makePostOp()

static unsigned llvm::LPAC::makePostOp ( unsigned  AluOp)
inlinestatic

Definition at line 68 of file LanaiAluCode.h.

References assert(), isPreOp(), and Lanai_POST_OP.

Referenced by AluWithPrePost(), INITIALIZE_PASS(), and PostOperandDecodeAdjust().

◆ makePreOp()

static unsigned llvm::LPAC::makePreOp ( unsigned  AluOp)
inlinestatic

◆ modifiesOp()

static bool llvm::LPAC::modifiesOp ( unsigned  AluOp)
inlinestatic

Definition at line 73 of file LanaiAluCode.h.

References isPostOp(), and isPreOp().

Referenced by llvm::adjustPqBits(), INITIALIZE_PASS(), and IsMemoryAssignmentError().

◆ stringToLanaiAluCode()

static AluCode llvm::LPAC::stringToLanaiAluCode ( StringRef  S)
inlinestatic

Variable Documentation

◆ Lanai_POST_OP

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

Definition at line 47 of file LanaiAluCode.h.

Referenced by isPostOp(), and makePostOp().

◆ Lanai_PRE_OP

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

Definition at line 46 of file LanaiAluCode.h.

Referenced by isPreOp(), and makePreOp().