[llvm-commits] [llvm] r72042 - /llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h

Argiris Kirtzidis akyrtzi at gmail.com
Mon May 18 14:08:46 PDT 2009


Author: akirtzidis
Date: Mon May 18 16:08:45 2009
New Revision: 72042

URL: http://llvm.org/viewvc/llvm-project?rev=72042&view=rev
Log:
Add missing file.

Added:
    llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h

Added: llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h?rev=72042&view=auto

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h (added)
+++ llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h Mon May 18 16:08:45 2009
@@ -0,0 +1,51 @@
+//===-- MachineCodeInfo.h - Class used to report JIT info -------*- C++ -*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines MachineCodeInfo, a class used by the JIT ExecutionEngine
+// to report information about the generated machine code.
+//
+// See JIT::runJITOnFunction for usage.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef EE_MACHINE_CODE_INFO_H
+#define EE_MACHINE_CODE_INFO_H
+
+namespace llvm {
+
+class MachineCodeInfo {
+private:
+  size_t Size;   // Number of bytes in memory used
+  void *Address; // The address of the function in memory
+
+public:
+  MachineCodeInfo() : Size(0), Address(0) {}
+
+  void setSize(size_t s) {
+    Size = s;
+  }
+
+  void setAddress(void *a) {
+    Address = a;
+  }
+
+  size_t size() const {
+    return Size;
+  }
+
+  void *address() const {
+    return Address;
+  }
+
+};
+
+}
+
+#endif
+





More information about the llvm-commits mailing list