[llvm-commits] [dragonegg] r130607 - /dragonegg/trunk/src/Constants.cpp
Duncan Sands
baldrick at free.fr
Sat Apr 30 06:15:48 PDT 2011
Author: baldrick
Date: Sat Apr 30 08:15:48 2011
New Revision: 130607
URL: http://llvm.org/viewvc/llvm-project?rev=130607&view=rev
Log:
Add a comment on improving efficiency.
Modified:
dragonegg/trunk/src/Constants.cpp
Modified: dragonegg/trunk/src/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Constants.cpp?rev=130607&r1=130606&r2=130607&view=diff
==============================================================================
--- dragonegg/trunk/src/Constants.cpp (original)
+++ dragonegg/trunk/src/Constants.cpp Sat Apr 30 08:15:48 2011
@@ -64,6 +64,18 @@
// ... InterpretAsType ...
//===----------------------------------------------------------------------===//
+// TODO: Implement InterpretAsType more efficiently. Turning everything into
+// bits is simple but can involve a lot of work when dealing with large arrays.
+// For example:
+// struct task_struct {
+// char comm[16];
+// };
+// union task_union {
+// struct task_struct task;
+// unsigned long stack[2048*sizeof(long)/sizeof(long)];
+// };
+// union task_union init_task_union = { { comm: "swapper" } };
+
typedef Range<int> SignedRange;
/// BitSlice - A contiguous range of bits held in memory.
More information about the llvm-commits
mailing list