aboutsummaryrefslogtreecommitdiffstats
path: root/examples/TracingBrainF/BrainFVM.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-30 21:34:26 +0000
committerOwen Anderson <resistor@mac.com>2010-08-30 21:34:26 +0000
commit1256bd18cf1fc092447af0a1a6dd4cce80b28183 (patch)
treef4142fffd6702d7e4072bc67c759e78a22477246 /examples/TracingBrainF/BrainFVM.h
parent8a8d0b72a719fab003259a013f2a55683c1c9cc8 (diff)
downloadexternal_llvm-1256bd18cf1fc092447af0a1a6dd4cce80b28183.zip
external_llvm-1256bd18cf1fc092447af0a1a6dd4cce80b28183.tar.gz
external_llvm-1256bd18cf1fc092447af0a1a6dd4cce80b28183.tar.bz2
Remove this from the main tree. I'll host it out of tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/TracingBrainF/BrainFVM.h')
-rw-r--r--examples/TracingBrainF/BrainFVM.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/examples/TracingBrainF/BrainFVM.h b/examples/TracingBrainF/BrainFVM.h
deleted file mode 100644
index 454df51..0000000
--- a/examples/TracingBrainF/BrainFVM.h
+++ /dev/null
@@ -1,63 +0,0 @@
-//===-- BrainFVM.h - BrainF interpreter header ----------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===--------------------------------------------------------------------===//
-
-#ifndef BRAINF_VM_H
-#define BRAINF_VM_H
-
-#include "BrainF.h"
-#include "stdint.h"
-#include <cstring>
-
-/// opcode_func_t - A function pointer signature for all opcode functions.
-typedef void(*opcode_func_t)(size_t pc, uint8_t* data);
-
-/// BytecodeArray - An array of function pointers representing the
-/// source program. Indexed by PC address.
-extern opcode_func_t *BytecodeArray;
-
-/// JumpMap - An array of on-the-side data used by the interpreter.
-/// Indexed by PC address.
-extern size_t *JumpMap;
-
-/// executed - A flag indicating whether the preceding opcode was evaluated
-/// within a compiled trace execution. Used by the trace recorder.
-extern uint8_t executed;
-
-/// Recorder - The trace recording engine.
-extern BrainFTraceRecorder *Recorder;
-
-/// op_plus - Implements the '+' instruction.
-void op_plus(size_t, uint8_t*);
-
-/// op_minus - Implements the '-' instruction.
-void op_minus(size_t, uint8_t*);
-
-// op_left - Implements the '<' instruction.
-void op_left(size_t, uint8_t*);
-
-// op_right - Implements the '>' instruction.
-void op_right(size_t, uint8_t*);
-
-// op_put - Implements the '.' instruction.
-void op_put(size_t, uint8_t*);
-
-// op_get - Implements the ',' instruction.
-void op_get(size_t, uint8_t*);
-
-// op_if - Implements the '[' instruction.
-void op_if(size_t, uint8_t*);
-
-// op_back - Implements the ']' instruction.
-void op_back(size_t, uint8_t*);
-
-// op_end - Terminates an execution.
-void op_end(size_t, uint8_t*);
-
-
-#endif \ No newline at end of file