• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/

Lines Matching defs:MIParser

1 //===- MIParser.cpp - Machine instructions parser implementation ----------===//
13 #include "llvm/CodeGen/MIRParser/MIParser.h"
397 class MIParser {
407 MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
559 MIParser::MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
564 void MIParser::lex(unsigned SkipChar) {
570 bool MIParser::error(const Twine &Msg) { return error(Token.location(), Msg); }
572 bool MIParser::error(StringRef::iterator Loc, const Twine &Msg) {
609 bool MIParser::expectAndConsume(MIToken::TokenKind TokenKind) {
616 bool MIParser::consumeIfPresent(MIToken::TokenKind TokenKind) {
624 bool MIParser::parseSectionID(Optional<MBBSectionID> &SID) {
645 bool MIParser::parseBasicBlockDefinition(
727 bool MIParser::parseBasicBlockDefinitions(
771 bool MIParser::parseBasicBlockLiveins(MachineBasicBlock &MBB) {
804 bool MIParser::parseBasicBlockSuccessors(MachineBasicBlock &MBB) {
835 bool MIParser::parseBasicBlock(MachineBasicBlock &MBB,
930 bool MIParser::parseBasicBlocks() {
960 bool MIParser::parse(MachineInstr *&MI) {
1076 bool MIParser::parseStandaloneMBB(MachineBasicBlock *&MBB) {
1089 bool MIParser::parseStandaloneNamedRegister(Register &Reg) {
1101 bool MIParser::parseStandaloneVirtualRegister(VRegInfo *&Info) {
1113 bool MIParser::parseStandaloneRegister(Register &Reg) {
1129 bool MIParser::parseStandaloneStackObject(int &FI) {
1140 bool MIParser::parseStandaloneMDNode(MDNode *&Node) {
1179 bool MIParser::verifyImplicitOperands(ArrayRef<ParsedMachineOperand> Operands,
1210 bool MIParser::parseInstruction(unsigned &OpCode, unsigned &Flags) {
1264 bool MIParser::parseNamedRegister(Register &Reg) {
1272 bool MIParser::parseNamedVirtualRegister(VRegInfo *&Info) {
1281 bool MIParser::parseVirtualRegister(VRegInfo *&Info) {
1292 bool MIParser::parseRegister(Register &Reg, VRegInfo *&Info) {
1311 bool MIParser::parseRegisterClassOrBank(VRegInfo &RegInfo) {
1369 bool MIParser::parseRegisterFlag(unsigned &Flags) {
1413 bool MIParser::parseSubRegisterIndex(unsigned &SubReg) {
1426 bool MIParser::parseRegisterTiedDefIndex(unsigned &TiedDefIdx) {
1439 bool MIParser::assignRegisterTies(MachineInstr &MI,
1476 bool MIParser::parseRegisterOperand(MachineOperand &Dest,
1561 bool MIParser::parseImmediateOperand(MachineOperand &Dest) {
1571 bool MIParser::parseTargetImmMnemonic(const unsigned OpCode,
1617 bool MIParser::parseIRConstant(StringRef::iterator Loc, StringRef StringValue,
1626 bool MIParser::parseIRConstant(StringRef::iterator Loc, const Constant *&C) {
1646 bool MIParser::parseLowLevelType(StringRef::iterator Loc, LLT &Ty) {
1720 bool MIParser::parseTypedImmediateOperand(MachineOperand &Dest) {
1745 bool MIParser::parseFPImmediateOperand(MachineOperand &Dest) {
1797 bool MIParser::getUnsigned(unsigned &Result) {
1804 bool MIParser::parseMBBReference(MachineBasicBlock *&MBB) {
1823 bool MIParser::parseMBBOperand(MachineOperand &Dest) {
1832 bool MIParser::parseStackFrameIndex(int &FI) {
1853 bool MIParser::parseStackObjectOperand(MachineOperand &Dest) {
1861 bool MIParser::parseFixedStackFrameIndex(int &FI) {
1875 bool MIParser::parseFixedStackObjectOperand(MachineOperand &Dest) {
1911 bool MIParser::parseGlobalValue(GlobalValue *&GV) {
1919 bool MIParser::parseGlobalAddressOperand(MachineOperand &Dest) {
1930 bool MIParser::parseConstantPoolIndexOperand(MachineOperand &Dest) {
1945 bool MIParser::parseJumpTableIndexOperand(MachineOperand &Dest) {
1958 bool MIParser::parseExternalSymbolOperand(MachineOperand &Dest) {
1968 bool MIParser::parseMCSymbolOperand(MachineOperand &Dest) {
1978 bool MIParser::parseSubRegisterIndexOperand(MachineOperand &Dest) {
1989 bool MIParser::parseMDNode(MDNode *&Node) {
2007 bool MIParser::parseDIExpression(MDNode *&Expr) {
2053 bool MIParser::parseDILocation(MDNode *&Loc) {
2156 bool MIParser::parseMetadataOperand(MachineOperand &Dest) {
2169 bool MIParser::parseCFIOffset(int &Offset) {
2179 bool MIParser::parseCFIRegister(Register &Reg) {
2195 bool MIParser::parseCFIEscapeValues(std::string &Values) {
2210 bool MIParser::parseCFIOperand(MachineOperand &Dest) {
2308 bool MIParser::parseIRBlock(BasicBlock *&BB, const Function &F) {
2333 bool MIParser::parseBlockAddressOperand(MachineOperand &Dest) {
2364 bool MIParser::parseIntrinsicOperand(MachineOperand &Dest) {
2393 bool MIParser::parsePredicateOperand(MachineOperand &Dest) {
2451 bool MIParser::parseShuffleMaskOperand(MachineOperand &Dest) {
2479 bool MIParser::parseTargetIndexOperand(MachineOperand &Dest) {
2498 bool MIParser::parseCustomRegisterMaskOperand(MachineOperand &Dest) {
2525 bool MIParser::parseLiveoutRegisterMaskOperand(MachineOperand &Dest) {
2550 bool MIParser::parseMachineOperand(const unsigned OpCode, const unsigned OpIdx,
2654 bool MIParser::parseMachineOperandAndTargetFlags(
2698 bool MIParser::parseOffset(int64_t &Offset) {
2715 bool MIParser::parseAlignment(unsigned &Alignment) {
2730 bool MIParser::parseAddrspace(unsigned &Addrspace) {
2741 bool MIParser::parseOperandsOffset(MachineOperand &Op) {
2786 bool MIParser::parseIRValue(const Value *&V) {
2793 bool MIParser::getUint64(uint64_t &Result) {
2812 bool MIParser::getHexUint(APInt &Result) {
2816 bool MIParser::parseMemoryOperandFlag(MachineMemOperand::Flags &Flags) {
2850 bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
2921 bool MIParser::parseMachinePointerInfo(MachinePointerInfo &Dest) {
2953 bool MIParser::parseOptionalScope(LLVMContext &Context,
2973 bool MIParser::parseOptionalAtomicOrdering(AtomicOrdering &Order) {
2995 bool MIParser::parseMachineMemoryOperand(MachineMemOperand *&Dest) {
3104 bool MIParser::parsePreOrPostInstrSymbol(MCSymbol *&Symbol) {
3122 bool MIParser::parseHeapAllocMarker(MDNode *&Node) {
3162 const BasicBlock *MIParser::getIRBlock(unsigned Slot) {
3168 const BasicBlock *MIParser::getIRBlock(unsigned Slot, const Function &F) {
3176 MCSymbol *MIParser::getOrCreateMCSymbol(StringRef Name) {
3185 bool MIParser::parseStringConstant(std::string &Result) {
3196 return MIParser(PFS, Error, Src).parseBasicBlockDefinitions(PFS.MBBSlots);
3201 return MIParser(PFS, Error, Src).parseBasicBlocks();
3207 return MIParser(PFS, Error, Src).parseStandaloneMBB(MBB);
3213 return MIParser(PFS, Error, Src).parseStandaloneRegister(Reg);
3219 return MIParser(PFS, Error, Src).parseStandaloneNamedRegister(Reg);
3225 return MIParser(PFS, Error, Src).parseStandaloneVirtualRegister(Info);
3231 return MIParser(PFS, Error, Src).parseStandaloneStackObject(FI);
3236 return MIParser(PFS, Error, Src).parseStandaloneMDNode(Node);