Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 6f176b7

Browse files
author
Michael Berg
committed
[NFC] make MIFlag accessor functions consistant with usage model
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334970 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b838c5c commit 6f176b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/llvm/CodeGen/MachineInstr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class MachineInstr
189189
}
190190

191191
/// Return the MI flags bitvector.
192-
uint8_t getFlags() const {
192+
uint16_t getFlags() const {
193193
return Flags;
194194
}
195195

@@ -1354,7 +1354,7 @@ class MachineInstr
13541354
/// Return the MIFlags which represent both MachineInstrs. This
13551355
/// should be used when merging two MachineInstrs into one. This routine does
13561356
/// not modify the MIFlags of this MachineInstr.
1357-
uint8_t mergeFlagsWith(const MachineInstr& Other) const;
1357+
uint16_t mergeFlagsWith(const MachineInstr& Other) const;
13581358

13591359
/// Clear this MachineInstr's memory reference descriptor list. This resets
13601360
/// the memrefs to their most conservative state. This should be used only

lib/CodeGen/MachineInstr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ MachineInstr::mergeMemRefsWith(const MachineInstr& Other) {
382382
return std::make_pair(MemBegin, CombinedNumMemRefs);
383383
}
384384

385-
uint8_t MachineInstr::mergeFlagsWith(const MachineInstr &Other) const {
385+
uint16_t MachineInstr::mergeFlagsWith(const MachineInstr &Other) const {
386386
// For now, the just return the union of the flags. If the flags get more
387387
// complicated over time, we might need more logic here.
388388
return getFlags() | Other.getFlags();

0 commit comments

Comments
 (0)