Lines Matching defs:MIParser

1 //===- MIParser.cpp - Machine instructions parser implementation ----------===//
13 #include "llvm/CodeGen/MIRParser/MIParser.h"
400 class MIParser {
411 MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
413 MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
580 MIParser::MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
585 MIParser::MIParser(PerFunctionMIParsingState &PFS, SMDiagnostic &Error,
590 void MIParser::lex(unsigned SkipChar) {
596 bool MIParser::error(const Twine &Msg) { return error(Token.location(), Msg); }
598 bool MIParser::error(StringRef::iterator Loc, const Twine &Msg) {
615 SMLoc MIParser::mapSMLoc(StringRef::iterator Loc) {
642 bool MIParser::expectAndConsume(MIToken::TokenKind TokenKind) {
649 bool MIParser::consumeIfPresent(MIToken::TokenKind TokenKind) {
657 bool MIParser::parseSectionID(std::optional<MBBSectionID> &SID) {
679 bool MIParser::parseBBID(std::optional<UniqueBBID> &BBID) {
697 bool MIParser::parseCallFrameSize(unsigned &CallFrameSize) {
708 bool MIParser::parseBasicBlockDefinition(
815 bool MIParser::parseBasicBlockDefinitions(
859 bool MIParser::parseBasicBlockLiveins(MachineBasicBlock &MBB) {
892 bool MIParser::parseBasicBlockSuccessors(MachineBasicBlock &MBB) {
923 bool MIParser::parseBasicBlock(MachineBasicBlock &MBB,
1018 bool MIParser::parseBasicBlocks() {
1048 bool MIParser::parse(MachineInstr *&MI) {
1205 bool MIParser::parseStandaloneMBB(MachineBasicBlock *&MBB) {
1218 bool MIParser::parseStandaloneNamedRegister(Register &Reg) {
1230 bool MIParser::parseStandaloneVirtualRegister(VRegInfo *&Info) {
1242 bool MIParser::parseStandaloneRegister(Register &Reg) {
1258 bool MIParser::parseStandaloneStackObject(int &FI) {
1269 bool MIParser::parseStandaloneMDNode(MDNode *&Node) {
1287 bool MIParser::parseMachineMetadata() {
1328 bool MIParser::parseMDTuple(MDNode *&MD, bool IsDistinct) {
1337 bool MIParser::parseMDNodeVector(SmallVectorImpl<Metadata *> &Elts) {
1368 bool MIParser::parseMetadata(Metadata *&MD) {
1433 bool MIParser::verifyImplicitOperands(ArrayRef<ParsedMachineOperand> Operands,
1460 bool MIParser::parseInstruction(unsigned &OpCode, unsigned &Flags) {
1531 bool MIParser::parseNamedRegister(Register &Reg) {
1539 bool MIParser::parseNamedVirtualRegister(VRegInfo *&Info) {
1548 bool MIParser::parseVirtualRegister(VRegInfo *&Info) {
1559 bool MIParser::parseRegister(Register &Reg, VRegInfo *&Info) {
1578 bool MIParser::parseRegisterClassOrBank(VRegInfo &RegInfo) {
1636 bool MIParser::parseRegisterFlag(unsigned &Flags) {
1680 bool MIParser::parseSubRegisterIndex(unsigned &SubReg) {
1693 bool MIParser::parseRegisterTiedDefIndex(unsigned &TiedDefIdx) {
1706 bool MIParser::assignRegisterTies(MachineInstr &MI,
1743 bool MIParser::parseRegisterOperand(MachineOperand &Dest,
1838 bool MIParser::parseImmediateOperand(MachineOperand &Dest) {
1851 bool MIParser::parseTargetImmMnemonic(const unsigned OpCode,
1897 bool MIParser::parseIRConstant(StringRef::iterator Loc, StringRef StringValue,
1906 bool MIParser::parseIRConstant(StringRef::iterator Loc, const Constant *&C) {
1926 bool MIParser::parseLowLevelType(StringRef::iterator Loc, LLT &Ty) {
2021 bool MIParser::parseTypedImmediateOperand(MachineOperand &Dest) {
2046 bool MIParser::parseFPImmediateOperand(MachineOperand &Dest) {
2098 bool MIParser::getUnsigned(unsigned &Result) {
2105 bool MIParser::parseMBBReference(MachineBasicBlock *&MBB) {
2124 bool MIParser::parseMBBOperand(MachineOperand &Dest) {
2133 bool MIParser::parseStackFrameIndex(int &FI) {
2154 bool MIParser::parseStackObjectOperand(MachineOperand &Dest) {
2162 bool MIParser::parseFixedStackFrameIndex(int &FI) {
2176 bool MIParser::parseFixedStackObjectOperand(MachineOperand &Dest) {
2212 bool MIParser::parseGlobalValue(GlobalValue *&GV) {
2220 bool MIParser::parseGlobalAddressOperand(MachineOperand &Dest) {
2231 bool MIParser::parseConstantPoolIndexOperand(MachineOperand &Dest) {
2246 bool MIParser::parseJumpTableIndexOperand(MachineOperand &Dest) {
2259 bool MIParser::parseExternalSymbolOperand(MachineOperand &Dest) {
2269 bool MIParser::parseMCSymbolOperand(MachineOperand &Dest) {
2279 bool MIParser::parseSubRegisterIndexOperand(MachineOperand &Dest) {
2290 bool MIParser::parseMDNode(MDNode *&Node) {
2311 bool MIParser::parseDIExpression(MDNode *&Expr) {
2323 bool MIParser::parseDILocation(MDNode *&Loc) {
2426 bool MIParser::parseMetadataOperand(MachineOperand &Dest) {
2439 bool MIParser::parseCFIOffset(int &Offset) {
2449 bool MIParser::parseCFIRegister(Register &Reg) {
2465 bool MIParser::parseCFIAddressSpace(unsigned &AddressSpace) {
2475 bool MIParser::parseCFIEscapeValues(std::string &Values) {
2490 bool MIParser::parseCFIOperand(MachineOperand &Dest) {
2601 bool MIParser::parseIRBlock(BasicBlock *&BB, const Function &F) {
2626 bool MIParser::parseBlockAddressOperand(MachineOperand &Dest) {
2657 bool MIParser::parseIntrinsicOperand(MachineOperand &Dest) {
2686 bool MIParser::parsePredicateOperand(MachineOperand &Dest) {
2744 bool MIParser::parseShuffleMaskOperand(MachineOperand &Dest) {
2772 bool MIParser::parseDbgInstrRefOperand(MachineOperand &Dest) {
2803 bool MIParser::parseTargetIndexOperand(MachineOperand &Dest) {
2822 bool MIParser::parseCustomRegisterMaskOperand(MachineOperand &Dest) {
2849 bool MIParser::parseLiveoutRegisterMaskOperand(MachineOperand &Dest) {
2874 bool MIParser::parseMachineOperand(const unsigned OpCode, const unsigned OpIdx,
2983 bool MIParser::parseMachineOperandAndTargetFlags(
3027 bool MIParser::parseOffset(int64_t &Offset) {
3044 bool MIParser::parseIRBlockAddressTaken(BasicBlock *&BB) {
3057 bool MIParser::parseAlignment(uint64_t &Alignment) {
3072 bool MIParser::parseAddrspace(unsigned &Addrspace) {
3083 bool MIParser::parseOperandsOffset(MachineOperand &Op) {
3131 bool MIParser::parseIRValue(const Value *&V) {
3138 bool MIParser::getUint64(uint64_t &Result) {
3157 bool MIParser::getHexUint(APInt &Result) {
3161 bool MIParser::parseMemoryOperandFlag(MachineMemOperand::Flags &Flags) {
3195 bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
3266 bool MIParser::parseMachinePointerInfo(MachinePointerInfo &Dest) {
3299 bool MIParser::parseOptionalScope(LLVMContext &Context,
3319 bool MIParser::parseOptionalAtomicOrdering(AtomicOrdering &Order) {
3341 bool MIParser::parseMachineMemoryOperand(MachineMemOperand *&Dest) {
3482 bool MIParser::parsePreOrPostInstrSymbol(MCSymbol *&Symbol) {
3500 bool MIParser::parseHeapAllocMarker(MDNode *&Node) {
3517 bool MIParser::parsePCSections(MDNode *&Node) {
3555 const BasicBlock *MIParser::getIRBlock(unsigned Slot) {
3561 const BasicBlock *MIParser::getIRBlock(unsigned Slot, const Function &F) {
3569 MCSymbol *MIParser::getOrCreateMCSymbol(StringRef Name) {
3578 bool MIParser::parseStringConstant(std::string &Result) {
3589 return MIParser(PFS, Error, Src).parseBasicBlockDefinitions(PFS.MBBSlots);
3594 return MIParser(PFS, Error, Src).parseBasicBlocks();
3600 return MIParser(PFS, Error, Src).parseStandaloneMBB(MBB);
3606 return MIParser(PFS, Error, Src).parseStandaloneRegister(Reg);
3612 return MIParser(PFS, Error, Src).parseStandaloneNamedRegister(Reg);
3618 return MIParser(PFS, Error, Src).parseStandaloneVirtualRegister(Info);
3624 return MIParser(PFS, Error, Src).parseStandaloneStackObject(FI);
3629 return MIParser(PFS, Error, Src).parseStandaloneMDNode(Node);
3634 return MIParser(PFS, Error, Src, SrcRange).parseMachineMetadata();