mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
[NFC] make MIFlag accessor functions consistant with usage model
llvm-svn: 334970
This commit is contained in:
parent
749dd0855f
commit
a174a3ecfa
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user