LLVM  7.0.0svn
Macros | Functions
RISCVAsmParser.cpp File Reference
#include "MCTargetDesc/RISCVBaseInfo.h"
#include "MCTargetDesc/RISCVMCExpr.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "MCTargetDesc/RISCVTargetStreamer.h"
#include "llvm/ADT/STLExtras.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/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include <limits>
#include "RISCVGenCompressInstEmitter.inc"
#include "RISCVGenAsmMatcher.inc"
Include dependency graph for RISCVAsmParser.cpp:

Go to the source code of this file.

Macros

#define GEN_COMPRESS_INSTR
 
#define GET_ASSEMBLER_HEADER
 
#define GET_OPERAND_DIAGNOSTIC_TYPES
 
#define GET_REGISTER_MATCHER
 
#define GET_MATCHER_IMPLEMENTATION
 

Functions

unsigned convertFPR32ToFPR64 (unsigned Reg)
 
void LLVMInitializeRISCVAsmParser ()
 

Macro Definition Documentation

◆ GEN_COMPRESS_INSTR

#define GEN_COMPRESS_INSTR

Definition at line 35 of file RISCVAsmParser.cpp.

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 83 of file RISCVAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 585 of file RISCVAsmParser.cpp.

◆ GET_OPERAND_DIAGNOSTIC_TYPES

#define GET_OPERAND_DIAGNOSTIC_TYPES

Definition at line 114 of file RISCVAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 584 of file RISCVAsmParser.cpp.

Function Documentation

◆ convertFPR32ToFPR64()

unsigned convertFPR32ToFPR64 ( unsigned  Reg)

Definition at line 591 of file RISCVAsmParser.cpp.

References llvm::MCBinaryExpr::Add, assert(), llvm::AsmToken::Comma, llvm::RISCVMCExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::dyn_cast(), E, llvm::MCAsmParser::eatToEndOfStatement(), llvm::MCStreamer::EmitInstruction(), llvm::AsmToken::EndOfStatement, llvm::Error, llvm::findFirstSet(), llvm::MCStreamer::getContext(), llvm::AsmToken::getEndLoc(), llvm::SMLoc::getFromPointer(), llvm::AsmToken::getIdentifier(), llvm::MCOperand::getImm(), llvm::MCBinaryExpr::getLHS(), llvm::AsmToken::getLoc(), llvm::MCInst::getLoc(), llvm::MCInst::getOpcode(), llvm::MCBinaryExpr::getOpcode(), llvm::MCInst::getOperand(), llvm::SMLoc::getPointer(), llvm::MCOperand::getReg(), llvm::MCBinaryExpr::getRHS(), llvm::AsmToken::getString(), llvm::MCAsmParser::getTok(), llvm::MCConstantExpr::getValue(), llvm::RISCVMCExpr::getVariantKindForName(), llvm::MCSubtargetInfo::hasFeature(), llvm::AsmToken::Identifier, llvm::object::Identifier, llvm::AsmToken::Integer, llvm::isInt< 32 >(), llvm::AsmToken::isNot(), llvm::MCAsmParser::Lex(), llvm_unreachable, llvm::AsmToken::LParen, llvm::MatchOperand_NoMatch, llvm::MatchOperand_ParseFail, llvm::MatchOperand_Success, llvm::MatchRegisterAltName(), llvm::MatchRegisterName(), llvm::max(), llvm::AsmToken::Minus, llvm::AsmToken::Percent, llvm::AsmToken::Plus, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), Reg, llvm::AsmToken::RParen, llvm::MCInst::setLoc(), llvm::SignExtend64(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::AsmToken::String, llvm::MCBinaryExpr::Sub, llvm::MCSymbolRefExpr::VK_None, llvm::RISCVMCExpr::VK_RISCV_Invalid, llvm::RISCVMCExpr::VK_RISCV_None, and llvm::Warning.

◆ LLVMInitializeRISCVAsmParser()

void LLVMInitializeRISCVAsmParser ( )

Definition at line 1207 of file RISCVAsmParser.cpp.

References llvm::getTheRISCV32Target(), llvm::getTheRISCV64Target(), X, and Y.