diff options
| author | Stefan Pintilie <stefanp@ca.ibm.com> | 2017-07-26 13:44:59 +0000 |
|---|---|---|
| committer | Stefan Pintilie <stefanp@ca.ibm.com> | 2017-07-26 13:44:59 +0000 |
| commit | df0ee9e1b9457d2cea4b4b20efc3d1cc4e51ffef (patch) | |
| tree | f0fe8a6d148ac1a3d42defc1ecf0e64aad271063 /llvm/lib/Target/PowerPC | |
| parent | 66256906c393b3fe9dad39bc7908cdd7c023e79b (diff) | |
| download | bcm5719-llvm-df0ee9e1b9457d2cea4b4b20efc3d1cc4e51ffef.tar.gz bcm5719-llvm-df0ee9e1b9457d2cea4b4b20efc3d1cc4e51ffef.zip | |
[NFC] test commit.
Added a comment to explain how to add a PPCISD node.
llvm-svn: 309114
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.h b/llvm/lib/Target/PowerPC/PPCISelLowering.h index e52e85ea765..8f97fb4f6ec 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.h +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.h @@ -37,6 +37,14 @@ namespace llvm { namespace PPCISD { + // When adding a NEW PPCISD node please add it to the correct position in + // the enum. The order of elements in this enum matters! + // Values that are added after this entry: + // STBRX = ISD::FIRST_TARGET_MEMORY_OPCODE + // are considerd memory opcodes and are treated differently than entries + // that come before it. For example, ADD or MUL should be placed before + // the ISD::FIRST_TARGET_MEMORY_OPCODE while a LOAD or STORE should come + // after it. enum NodeType : unsigned { // Start the numbering where the builtin ops and target ops leave off. FIRST_NUMBER = ISD::BUILTIN_OP_END, |

