[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp

Misha Brukman brukman at cs.uiuc.edu
Fri Oct 10 12:46:00 PDT 2003


Changes in directory llvm/lib/ExecutionEngine:

ExecutionEngine.cpp updated: 1.30 -> 1.31

---
Log message:

* Tabs to spaces
* Doxygenified function comments
* Added FIXMEs to solicit documentation for other functions


---
Diffs of the changes:  (+16 -8)

Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.30 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.31
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.30	Fri Oct 10 12:02:41 2003
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp	Fri Oct 10 12:45:12 2003
@@ -1,4 +1,4 @@
-//===-- ExecutionEngine.cpp - Common Implementation shared by EE's --------===//
+//===-- ExecutionEngine.cpp - Common Implementation shared by EEs ---------===//
 // 
 // This file defines the common interface used by the various execution engine
 // subclasses.
@@ -25,8 +25,10 @@
   delete &CurMod;
 }
 
-ExecutionEngine *ExecutionEngine::create (Module *M, bool ForceInterpreter,
-					  bool TraceMode) {
+/// FIXME: document
+///
+ExecutionEngine *ExecutionEngine::create(Module *M, bool ForceInterpreter,
+                                         bool TraceMode) {
   ExecutionEngine *EE = 0;
 
   // If there is nothing that is forcing us to use the interpreter, make a JIT.
@@ -39,9 +41,9 @@
   return EE;
 }
 
-// getPointerToGlobal - This returns the address of the specified global
-// value.  This may involve code generation if it's a function.
-//
+/// getPointerToGlobal - This returns the address of the specified global
+/// value.  This may involve code generation if it's a function.
+///
 void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
   if (Function *F = const_cast<Function*>(dyn_cast<Function>(GV)))
     return getPointerToFunction(F);
@@ -50,6 +52,8 @@
   return GlobalAddress[GV];
 }
 
+/// FIXME: document
+/// 
 GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
   GenericValue Result;
 
@@ -133,8 +137,10 @@
   return Result;
 }
 
+/// FIXME: document
+///
 void ExecutionEngine::StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
-				     const Type *Ty) {
+                                         const Type *Ty) {
   if (getTargetData().isLittleEndian()) {
     switch (Ty->getPrimitiveID()) {
     case Type::BoolTyID:
@@ -204,6 +210,8 @@
   }
 }
 
+/// FIXME: document
+///
 GenericValue ExecutionEngine::LoadValueFromMemory(GenericValue *Ptr,
                                                   const Type *Ty) {
   GenericValue Result;
@@ -338,7 +346,7 @@
       NumInitBytes += Size;
 
       DEBUG(std::cerr << "Global '" << I->getName() << "' -> "
-	              << (void*)GlobalAddress[I] << "\n");
+                      << (void*)GlobalAddress[I] << "\n");
     } else {
       // External variable reference. Try to use the dynamic loader to
       // get a pointer to it.





More information about the llvm-commits mailing list