[llvm-commits] [llvm] r128204 - /llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h

Evan Cheng evan.cheng at apple.com
Wed Mar 23 23:28:45 PDT 2011


Author: evancheng
Date: Thu Mar 24 01:28:45 2011
New Revision: 128204

URL: http://llvm.org/viewvc/llvm-project?rev=128204&view=rev
Log:
Add comment to clarify what MachineConstantPoolEntry::isMachineConstantPoolEntry() means.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h?rev=128204&r1=128203&r2=128204&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h Thu Mar 24 01:28:45 2011
@@ -80,7 +80,7 @@
   } Val;
 
   /// The required alignment for this entry. The top bit is set when Val is
-  /// a MachineConstantPoolValue.
+  /// a target specific MachineConstantPoolValue.
   unsigned Alignment;
 
   MachineConstantPoolEntry(const Constant *V, unsigned A)
@@ -93,6 +93,9 @@
     Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1);
   }
 
+  /// isMachineConstantPoolEntry - Return true if the MachineConstantPoolEntry
+  /// is indeed a target specific constantpool entry, not a wrapper over a
+  /// Constant.
   bool isMachineConstantPoolEntry() const {
     return (int)Alignment < 0;
   }





More information about the llvm-commits mailing list