LLVM  4.0.0
Namespaces | Macros | Functions | Variables
MipsAsmParser.cpp File Reference
#include "MCTargetDesc/MipsABIInfo.h"
#include "MCTargetDesc/MipsMCExpr.h"
#include "MCTargetDesc/MipsMCTargetDesc.h"
#include "MipsRegisterInfo.h"
#include "MipsTargetObjectFile.h"
#include "MipsTargetStreamer.h"
#include "MCTargetDesc/MipsBaseInfo.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstBuilder.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <memory>
#include "MipsGenAsmMatcher.inc"
Include dependency graph for MipsAsmParser.cpp:

Go to the source code of this file.

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

#define DEBUG_TYPE   "mips-asm-parser"
 
#define GET_ASSEMBLER_HEADER
 
#define GET_OPERAND_DIAGNOSTIC_TYPES
 
#define GET_REGISTER_MATCHER
 
#define GET_MATCHER_IMPLEMENTATION
 

Functions

static const MCInstrDescgetInstDesc (unsigned Opcode)
 
static bool hasShortDelaySlot (unsigned Opcode)
 
static const MCSymbolgetSingleMCSymbol (const MCExpr *Expr)
 
static unsigned countMCSymbolRefExpr (const MCExpr *Expr)
 
template<unsigned N>
static bool isShiftedUIntAtAnyPosition (uint64_t x)
 Can the value be represented by a unsigned N-bit value and a shift left? More...
 
static unsigned nextReg (unsigned Reg)
 
static SMLoc RefineErrorLoc (const SMLoc Loc, const OperandVector &Operands, uint64_t ErrorInfo)
 
void LLVMInitializeMipsAsmParser ()
 

Variables

const MCInstrDesc llvm::MipsInsts []
 

Macro Definition Documentation

#define DEBUG_TYPE   "mips-asm-parser"

Definition at line 40 of file MipsAsmParser.cpp.

#define GET_ASSEMBLER_HEADER

Definition at line 130 of file MipsAsmParser.cpp.

#define GET_MATCHER_IMPLEMENTATION

Definition at line 6774 of file MipsAsmParser.cpp.

#define GET_OPERAND_DIAGNOSTIC_TYPES

Definition at line 418 of file MipsAsmParser.cpp.

#define GET_REGISTER_MATCHER

Definition at line 6773 of file MipsAsmParser.cpp.

Function Documentation

static unsigned countMCSymbolRefExpr ( const MCExpr Expr)
static

Definition at line 1602 of file MipsAsmParser.cpp.

static const MCInstrDesc& getInstDesc ( unsigned  Opcode)
static

Definition at line 1561 of file MipsAsmParser.cpp.

References llvm::MipsInsts.

static const MCSymbol* getSingleMCSymbol ( const MCExpr Expr)
static

Definition at line 1578 of file MipsAsmParser.cpp.

static bool hasShortDelaySlot ( unsigned  Opcode)
static

Definition at line 1565 of file MipsAsmParser.cpp.

template<unsigned N>
static bool isShiftedUIntAtAnyPosition ( uint64_t  x)
static

Can the value be represented by a unsigned N-bit value and a shift left?

Definition at line 2303 of file MipsAsmParser.cpp.

References llvm::findFirstSet().

void LLVMInitializeMipsAsmParser ( )
static unsigned nextReg ( unsigned  Reg)
static

Definition at line 3874 of file MipsAsmParser.cpp.

References T1, and llvm::X86II::T8.

static SMLoc RefineErrorLoc ( const SMLoc  Loc,
const OperandVector Operands,
uint64_t  ErrorInfo 
)
static