[NFC] make MIFlag accessor functions consistant with usage model

llvm-svn: 334970
This commit is contained in:
Michael Berg 2018-06-18 18:37:48 +00:00
parent 749dd0855f
commit a174a3ecfa
2 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ public:
}
/// Return the MI flags bitvector.
uint8_t getFlags() const {
uint16_t getFlags() const {
return Flags;
}
@ -1354,7 +1354,7 @@ public:
/// Return the MIFlags which represent both MachineInstrs. This
/// should be used when merging two MachineInstrs into one. This routine does
/// not modify the MIFlags of this MachineInstr.
uint8_t mergeFlagsWith(const MachineInstr& Other) const;
uint16_t mergeFlagsWith(const MachineInstr& Other) const;
/// Clear this MachineInstr's memory reference descriptor list. This resets
/// the memrefs to their most conservative state. This should be used only

View File

@ -382,7 +382,7 @@ MachineInstr::mergeMemRefsWith(const MachineInstr& Other) {
return std::make_pair(MemBegin, CombinedNumMemRefs);
}
uint8_t MachineInstr::mergeFlagsWith(const MachineInstr &Other) const {
uint16_t MachineInstr::mergeFlagsWith(const MachineInstr &Other) const {
// For now, the just return the union of the flags. If the flags get more
// complicated over time, we might need more logic here.
return getFlags() | Other.getFlags();