#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
+#include "llvm/Target/TargetSelect.h"
#include <fstream>
#include <iostream>
using namespace llvm;
#include <fstream>
#include <iostream>
using namespace llvm;
//Write it out
if (JIT) {
//Write it out
if (JIT) {
+ InitializeNativeTarget();
+
std::cout << "------- Running JIT -------\n";
ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
ExecutionEngine *ee = ExecutionEngine::create(mp, false);
std::cout << "------- Running JIT -------\n";
ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
ExecutionEngine *ee = ExecutionEngine::create(mp, false);
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
+#include "llvm/Target/TargetSelect.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
int main() {
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
int main() {
+
+ InitializeNativeTarget();
+
// Create some module to put our function into it.
Module *M = new Module("test");
// Create some module to put our function into it.
Module *M = new Module("test");
#include "llvm/PassManager.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Target/TargetData.h"
#include "llvm/PassManager.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Target/TargetData.h"
+#include "llvm/Target/TargetSelect.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Support/IRBuilder.h"
#include <cstdio>
#include "llvm/Transforms/Scalar.h"
#include "llvm/Support/IRBuilder.h"
#include <cstdio>
//===----------------------------------------------------------------------===//
int main() {
//===----------------------------------------------------------------------===//
int main() {
+ InitializeNativeTarget();
+
// Install standard binary operators.
// 1 is lowest precedence.
BinopPrecedence['='] = 2;
// Install standard binary operators.
// 1 is lowest precedence.
BinopPrecedence['='] = 2;
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
+#include "llvm/Target/TargetSelect.h"
#include <iostream>
using namespace llvm;
#include <iostream>
using namespace llvm;
return (void*)(intptr_t)gv.IntVal.getZExtValue();
}
return (void*)(intptr_t)gv.IntVal.getZExtValue();
}
+int main() {
+ InitializeNativeTarget();
+
// Create some module to put our function into it.
Module *M = new Module("test");
// Create some module to put our function into it.
Module *M = new Module("test");