summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/loader.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-01-04 15:38:37 +0000
committerTom Stellard <[email protected]>2013-01-04 21:05:09 +0000
commitaed37cbee8efb59b2f1a6bc69adcbaecd9e4fa13 (patch)
tree5748d373dc01011b860049208135c3d942882e29 /src/gallium/drivers/radeon/loader.cpp
parent05c143cc049a87c515ecdc5695e5912da60cf5cb (diff)
radeon/llvm: Remove backend code from Mesa
This code now lives in an external tree. For the next Mesa release fetch the code from the master branch of this LLVM repo: http://cgit.freedesktop.org/~tstellar/llvm/ For all subsequent Mesa releases, fetch the code from the official LLVM project: www.llvm.org
Diffstat (limited to 'src/gallium/drivers/radeon/loader.cpp')
-rw-r--r--src/gallium/drivers/radeon/loader.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/gallium/drivers/radeon/loader.cpp b/src/gallium/drivers/radeon/loader.cpp
deleted file mode 100644
index 3ea8cd8900e..00000000000
--- a/src/gallium/drivers/radeon/loader.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-
-#include "radeon_llvm_emit.h"
-
-#include <llvm/Support/CommandLine.h>
-#include <llvm/Support/IRReader.h>
-#include <llvm/Support/SourceMgr.h>
-#include <llvm/LLVMContext.h>
-#include <llvm/Module.h>
-#include <stdio.h>
-
-#include <llvm-c/Core.h>
-
-using namespace llvm;
-
-static cl::opt<std::string>
-InputFilename(cl::Positional, cl::desc("<input bitcode>"), cl::init("-"));
-
-static cl::opt<std::string>
-TargetGPUName("gpu", cl::desc("target gpu name"), cl::value_desc("gpu_name"));
-
-int main(int argc, char ** argv)
-{
- unsigned char * bytes;
- unsigned byte_count;
-
- std::auto_ptr<Module> M;
- LLVMContext &Context = getGlobalContext();
- SMDiagnostic Err;
- cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n");
- M.reset(ParseIRFile(InputFilename, Err, Context));
-
- Module * mod = M.get();
-
- radeon_llvm_compile(wrap(mod), &bytes, &byte_count, TargetGPUName.c_str(), 1);
-}