Lines Matching defs:MIParser

1 //===- MIParser.cpp - Machine instructions parser implementation ----------===//
13 #include "llvm/CodeGen/MIRParser/MIParser.h"
391 class MIParser {
402 MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
404 MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
571 MIParser::MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
576 MIParser::MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
581 void MIParser::lex(unsigned SkipChar) {
587 bool MIParser::error(const Twine &Msg) { return error(Token.location(), Msg); }
589 bool MIParser::error(StringRef::iterator Loc, const Twine &Msg) {
606 SMLoc MIParser::mapSMLoc(StringRef::iterator Loc) {
633 bool MIParser::expectAndConsume(MIToken::TokenKind TokenKind) {
640 bool MIParser::consumeIfPresent(MIToken::TokenKind TokenKind) {
648 bool MIParser::parseSectionID(std::optional<MBBSectionID> &SID) {
670 bool MIParser::parseBBID(std::optional<UniqueBBID> &BBID) {
688 bool MIParser::parseCallFrameSize(unsigned &CallFrameSize) {
699 bool MIParser::parseBasicBlockDefinition(
813 bool MIParser::parseBasicBlockDefinitions(
857 bool MIParser::parseBasicBlockLiveins(MachineBasicBlock &MBB) {
890 bool MIParser::parseBasicBlockSuccessors(MachineBasicBlock &MBB) {
921 bool MIParser::parseBasicBlock(MachineBasicBlock &MBB,
1016 bool MIParser::parseBasicBlocks() {
1046 bool MIParser::parse(MachineInstr *&MI) {
1203 bool MIParser::parseStandaloneMBB(MachineBasicBlock *&MBB) {
1216 bool MIParser::parseStandaloneNamedRegister(Register &Reg) {
1228 bool MIParser::parseStandaloneVirtualRegister(VRegInfo *&Info) {
1240 bool MIParser::parseStandaloneRegister(Register &Reg) {
1256 bool MIParser::parseStandaloneStackObject(int &FI) {
1267 bool MIParser::parseStandaloneMDNode(MDNode *&Node) {
1285 bool MIParser::parseMachineMetadata() {
1325 bool MIParser::parseMDTuple(MDNode *&MD, bool IsDistinct) {
1334 bool MIParser::parseMDNodeVector(SmallVectorImpl<Metadata *> &Elts) {
1365 bool MIParser::parseMetadata(Metadata *&MD) {
1430 bool MIParser::verifyImplicitOperands(ArrayRef<ParsedMachineOperand> Operands,
1457 bool MIParser::parseInstruction(unsigned &OpCode, unsigned &Flags) {
1525 bool MIParser::parseNamedRegister(Register &Reg) {
1533 bool MIParser::parseNamedVirtualRegister(VRegInfo *&Info) {
1542 bool MIParser::parseVirtualRegister(VRegInfo *&Info) {
1553 bool MIParser::parseRegister(Register &Reg, VRegInfo *&Info) {
1572 bool MIParser::parseRegisterClassOrBank(VRegInfo &RegInfo) {
1630 bool MIParser::parseRegisterFlag(unsigned &Flags) {
1674 bool MIParser::parseSubRegisterIndex(unsigned &SubReg) {
1687 bool MIParser::parseRegisterTiedDefIndex(unsigned &TiedDefIdx) {
1700 bool MIParser::assignRegisterTies(MachineInstr &MI,
1737 bool MIParser::parseRegisterOperand(MachineOperand &Dest,
1831 bool MIParser::parseImmediateOperand(MachineOperand &Dest) {
1844 bool MIParser::parseTargetImmMnemonic(const unsigned OpCode,
1890 bool MIParser::parseIRConstant(StringRef::iterator Loc, StringRef StringValue,
1899 bool MIParser::parseIRConstant(StringRef::iterator Loc, const Constant *&C) {
1919 bool MIParser::parseLowLevelType(StringRef::iterator Loc, LLT &Ty) {
2014 bool MIParser::parseTypedImmediateOperand(MachineOperand &Dest) {
2039 bool MIParser::parseFPImmediateOperand(MachineOperand &Dest) {
2091 bool MIParser::getUnsigned(unsigned &Result) {
2098 bool MIParser::parseMBBReference(MachineBasicBlock *&MBB) {
2117 bool MIParser::parseMBBOperand(MachineOperand &Dest) {
2126 bool MIParser::parseStackFrameIndex(int &FI) {
2147 bool MIParser::parseStackObjectOperand(MachineOperand &Dest) {
2155 bool MIParser::parseFixedStackFrameIndex(int &FI) {
2169 bool MIParser::parseFixedStackObjectOperand(MachineOperand &Dest) {
2205 bool MIParser::parseGlobalValue(GlobalValue *&GV) {
2213 bool MIParser::parseGlobalAddressOperand(MachineOperand &Dest) {
2224 bool MIParser::parseConstantPoolIndexOperand(MachineOperand &Dest) {
2239 bool MIParser::parseJumpTableIndexOperand(MachineOperand &Dest) {
2252 bool MIParser::parseExternalSymbolOperand(MachineOperand &Dest) {
2262 bool MIParser::parseMCSymbolOperand(MachineOperand &Dest) {
2272 bool MIParser::parseSubRegisterIndexOperand(MachineOperand &Dest) {
2283 bool MIParser::parseMDNode(MDNode *&Node) {
2304 bool MIParser::parseDIExpression(MDNode *&Expr) {
2316 bool MIParser::parseDILocation(MDNode *&Loc) {
2419 bool MIParser::parseMetadataOperand(MachineOperand &Dest) {
2432 bool MIParser::parseCFIOffset(int &Offset) {
2442 bool MIParser::parseCFIRegister(Register &Reg) {
2458 bool MIParser::parseCFIAddressSpace(unsigned &AddressSpace) {
2468 bool MIParser::parseCFIEscapeValues(std::string &Values) {
2483 bool MIParser::parseCFIOperand(MachineOperand &Dest) {
2590 bool MIParser::parseIRBlock(BasicBlock *&BB, const Function &F) {
2615 bool MIParser::parseBlockAddressOperand(MachineOperand &Dest) {
2646 bool MIParser::parseIntrinsicOperand(MachineOperand &Dest) {
2675 bool MIParser::parsePredicateOperand(MachineOperand &Dest) {
2733 bool MIParser::parseShuffleMaskOperand(MachineOperand &Dest) {
2761 bool MIParser::parseDbgInstrRefOperand(MachineOperand &Dest) {
2792 bool MIParser::parseTargetIndexOperand(MachineOperand &Dest) {
2811 bool MIParser::parseCustomRegisterMaskOperand(MachineOperand &Dest) {
2838 bool MIParser::parseLiveoutRegisterMaskOperand(MachineOperand &Dest) {
2863 bool MIParser::parseMachineOperand(const unsigned OpCode, const unsigned OpIdx,
2971 bool MIParser::parseMachineOperandAndTargetFlags(
3015 bool MIParser::parseOffset(int64_t &Offset) {
3032 bool MIParser::parseIRBlockAddressTaken(BasicBlock *&BB) {
3045 bool MIParser::parseAlignment(uint64_t &Alignment) {
3060 bool MIParser::parseAddrspace(unsigned &Addrspace) {
3071 bool MIParser::parseOperandsOffset(MachineOperand &Op) {
3119 bool MIParser::parseIRValue(const Value *&V) {
3126 bool MIParser::getUint64(uint64_t &Result) {
3145 bool MIParser::getHexUint(APInt &Result) {
3149 bool MIParser::parseMemoryOperandFlag(MachineMemOperand::Flags &Flags) {
3183 bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
3254 bool MIParser::parseMachinePointerInfo(MachinePointerInfo &Dest) {
3287 bool MIParser::parseOptionalScope(LLVMContext &Context,
3307 bool MIParser::parseOptionalAtomicOrdering(AtomicOrdering &Order) {
3329 bool MIParser::parseMachineMemoryOperand(MachineMemOperand *&Dest) {
3471 bool MIParser::parsePreOrPostInstrSymbol(MCSymbol *&Symbol) {
3489 bool MIParser::parseHeapAllocMarker(MDNode *&Node) {
3506 bool MIParser::parsePCSections(MDNode *&Node) {
3544 const BasicBlock *MIParser::getIRBlock(unsigned Slot) {
3550 const BasicBlock *MIParser::getIRBlock(unsigned Slot, const Function &F) {
3558 MCSymbol *MIParser::getOrCreateMCSymbol(StringRef Name) {
3567 bool MIParser::parseStringConstant(std::string &Result) {
3578 return MIParser(PFS, Error, Src).parseBasicBlockDefinitions(PFS.MBBSlots);
3583 return MIParser(PFS, Error, Src).parseBasicBlocks();
3589 return MIParser(PFS, Error, Src).parseStandaloneMBB(MBB);
3595 return MIParser(PFS, Error, Src).parseStandaloneRegister(Reg);
3601 return MIParser(PFS, Error, Src).parseStandaloneNamedRegister(Reg);
3607 return MIParser(PFS, Error, Src).parseStandaloneVirtualRegister(Info);
3613 return MIParser(PFS, Error, Src).parseStandaloneStackObject(FI);
3618 return MIParser(PFS, Error, Src).parseStandaloneMDNode(Node);
3623 return MIParser(PFS, Error, Src, SrcRange).parseMachineMetadata();