[llvm] r309114 - [NFC] test commit.
Stefan Pintilie via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 06:45:00 PDT 2017
Author: stefanp
Date: Wed Jul 26 06:44:59 2017
New Revision: 309114
URL: http://llvm.org/viewvc/llvm-project?rev=309114&view=rev
Log:
[NFC] test commit.
Added a comment to explain how to add a PPCISD node.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h?rev=309114&r1=309113&r2=309114&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h Wed Jul 26 06:44:59 2017
@@ -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,
More information about the llvm-commits
mailing list