[llvm-commits] CVS: llvm/lib/Reoptimizer/ScratchMemory/ScratchMemory.cpp DummyFile.cpp DummyFile2.cpp

Brian Gaeke gaeke at niobe.cs.uiuc.edu
Wed Aug 6 16:48:12 PDT 2003


Changes in directory llvm/lib/Reoptimizer/ScratchMemory:

ScratchMemory.cpp added (r1.1)
DummyFile.cpp (r1.1) removed
DummyFile2.cpp (r1.1) removed

---
Log message:

Brand new scratch memory file; no need for lots of bogus "for" loops, because
we use asm ".skip" instead.


---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/ScratchMemory/ScratchMemory.cpp
diff -c /dev/null llvm/lib/Reoptimizer/ScratchMemory/ScratchMemory.cpp:1.1
*** /dev/null	Wed Aug  6 16:47:29 2003
--- llvm/lib/Reoptimizer/ScratchMemory/ScratchMemory.cpp	Wed Aug  6 16:47:19 2003
***************
*** 0 ****
--- 1,15 ----
+ //===-- Reoptimizer/ScratchMemory/ScratchMemory.cpp ------------*- C++ -*--=////
+ //
+ // This file consists of functions that contain only skip directives. The
+ // effect is to clear out a bunch of empty space in the .text segment, in which
+ // the reoptimizer shall lay out traces. 
+ //
+ //===----------------------------------------------------------------------===//
+ 
+ extern "C" void FirstTraceFunction () {
+ 	asm (".skip 17*8192"); // 17 empty 8KB pages
+ }
+ 
+ extern "C" void dummyFunction2 () {
+ 	asm (".skip 17*8192"); // 17 more empty 8KB pages
+ }





More information about the llvm-commits mailing list