mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
MIR Parser: wrap 'MBBSlots' from the MI parsing functions in a struct. NFC.
This commit modifies the interface for the machine instruction parsing functions by wrapping the parameter 'MBBSlots' in a new structure called 'PerFunctionMIParsingState'. This change is useful as in the future I will be able to pass new parameters to the machine instruction parser just by modifying the 'PerFunctionMIParsingState' structure instead of adding a new parameter to each function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241607 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,14 +26,17 @@ struct SlotMapping;
|
||||
class SMDiagnostic;
|
||||
class SourceMgr;
|
||||
|
||||
struct PerFunctionMIParsingState {
|
||||
DenseMap<unsigned, MachineBasicBlock *> MBBSlots;
|
||||
};
|
||||
|
||||
bool parseMachineInstr(MachineInstr *&MI, SourceMgr &SM, MachineFunction &MF,
|
||||
StringRef Src,
|
||||
const DenseMap<unsigned, MachineBasicBlock *> &MBBSlots,
|
||||
StringRef Src, const PerFunctionMIParsingState &PFS,
|
||||
const SlotMapping &IRSlots, SMDiagnostic &Error);
|
||||
|
||||
bool parseMBBReference(MachineBasicBlock *&MBB, SourceMgr &SM,
|
||||
MachineFunction &MF, StringRef Src,
|
||||
const DenseMap<unsigned, MachineBasicBlock *> &MBBSlots,
|
||||
const PerFunctionMIParsingState &PFS,
|
||||
const SlotMapping &IRSlots, SMDiagnostic &Error);
|
||||
|
||||
} // end namespace llvm
|
||||
|
Reference in New Issue
Block a user