LLVM  5.0.0
Namespaces | Macros | Functions | Variables
MipsAsmParser.cpp File Reference
#include "MCTargetDesc/MipsABIFlagsSection.h"
#include "MCTargetDesc/MipsABIInfo.h"
#include "MCTargetDesc/MipsBaseInfo.h"
#include "MCTargetDesc/MipsMCExpr.h"
#include "MCTargetDesc/MipsMCTargetDesc.h"
#include "MipsTargetStreamer.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCAsmParserExtension.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/MC/MCSymbolELF.h"
#include "llvm/MC/MCValue.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#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 MCInstrDesc & getInstDesc (unsigned Opcode)
 
static bool hasShortDelaySlot (unsigned Opcode)
 
static const MCSymbol * getSingleMCSymbol (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 59 of file MipsAsmParser.cpp.

#define GET_ASSEMBLER_HEADER

Definition at line 153 of file MipsAsmParser.cpp.

#define GET_MATCHER_IMPLEMENTATION

Definition at line 7704 of file MipsAsmParser.cpp.

#define GET_OPERAND_DIAGNOSTIC_TYPES

Definition at line 466 of file MipsAsmParser.cpp.

#define GET_REGISTER_MATCHER

Definition at line 7703 of file MipsAsmParser.cpp.

Function Documentation

static unsigned countMCSymbolRefExpr ( const MCExpr *  Expr)
static

Definition at line 1756 of file MipsAsmParser.cpp.

static const MCInstrDesc& getInstDesc ( unsigned  Opcode)
static

Definition at line 1715 of file MipsAsmParser.cpp.

References llvm::MipsInsts.

static const MCSymbol* getSingleMCSymbol ( const MCExpr *  Expr)
static

Definition at line 1732 of file MipsAsmParser.cpp.

static bool hasShortDelaySlot ( unsigned  Opcode)
static

Definition at line 1719 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 2564 of file MipsAsmParser.cpp.

References llvm::findFirstSet().

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

Definition at line 3101 of file MipsAsmParser.cpp.

References contains(), llvm_unreachable(), T1, and llvm::X86II::T8.

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