[PATCH] D84634: [NFC] [MIR] Document the reg state flags
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 23:28:57 PDT 2020
djtodoro updated this revision to Diff 281118.
djtodoro added a comment.
- refactor the comments
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84634/new/
https://reviews.llvm.org/D84634
Files:
llvm/include/llvm/CodeGen/MachineInstrBuilder.h
Index: llvm/include/llvm/CodeGen/MachineInstrBuilder.h
===================================================================
--- llvm/include/llvm/CodeGen/MachineInstrBuilder.h
+++ llvm/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -40,20 +40,31 @@
namespace RegState {
- enum {
- Define = 0x2,
- Implicit = 0x4,
- Kill = 0x8,
- Dead = 0x10,
- Undef = 0x20,
- EarlyClobber = 0x40,
- Debug = 0x80,
- InternalRead = 0x100,
- Renamable = 0x200,
- DefineNoRead = Define | Undef,
- ImplicitDefine = Implicit | Define,
- ImplicitKill = Implicit | Kill
- };
+enum {
+ /// Register definition.
+ Define = 0x2,
+ /// Not emitted register (e.g. carry, or
+ /// temporary result).
+ Implicit = 0x4,
+ /// The last use of a register.
+ Kill = 0x8,
+ /// Unused definition.
+ Dead = 0x10,
+ /// Value of the register doesn't matter.
+ Undef = 0x20,
+ /// Register definition happens before uses.
+ EarlyClobber = 0x40,
+ /// Register 'use' is for debugging purpose.
+ Debug = 0x80,
+ /// Register reads a value that is defined
+ /// inside the same instruction or bundle.
+ InternalRead = 0x100,
+ /// Register that may be renamed.
+ Renamable = 0x200,
+ DefineNoRead = Define | Undef,
+ ImplicitDefine = Implicit | Define,
+ ImplicitKill = Implicit | Kill
+};
} // end namespace RegState
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84634.281118.patch
Type: text/x-patch
Size: 1410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/0036991d/attachment.bin>
More information about the llvm-commits
mailing list