From: Stefan Pintilie Date: Wed, 26 Jul 2017 13:44:59 +0000 (+0000) Subject: [NFC] test commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8801df505cc32661dfa47e7faad080cec27d57ac;p=llvm [NFC] test commit. Added a comment to explain how to add a PPCISD node. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309114 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.h b/lib/Target/PowerPC/PPCISelLowering.h index e52e85ea765..8f97fb4f6ec 100644 --- a/lib/Target/PowerPC/PPCISelLowering.h +++ b/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,