Skip to content
Snippets Groups Projects
Commit 692c2124 authored by Maria Kotsifakou's avatar Maria Kotsifakou
Browse files

Bug fix in GenVISC.cpp + Makefile

parent 6f2a900f
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,20 @@ bool GenVISC::runOnModule(Module &M) {
// Load Runtime API Module
SMDiagnostic Err;
Module* runtimeModule = ParseIRFile("/home/psrivas2/current-src/projects/visc-rt/visc-rt.ll", Err, M.getContext());
char* LLVM_SRC_ROOT = getenv("LLVM_SRC_ROOT");
assert(LLVM_SRC_ROOT != NULL &&
"Define LLVM_SRC_ROOT environment variable!");
Twine runtimeAPI = LLVM_SRC_ROOT;
runtimeAPI = runtimeAPI + "/projects/visc-rt/visc-rt.ll";
Module* runtimeModule = ParseIRFile(runtimeAPI.str(), Err, M.getContext());
// Module* runtimeModule =
// ParseIRFile("/home/psrivas2/current-src/projects/visc-rt/visc-rt.ll",
// Err, M.getContext());
if(runtimeModule == NULL)
DEBUG(errs() << Err.getMessage());
else
......
......@@ -9,7 +9,7 @@
LEVEL = ../..
PARALLEL_DIRS = Utils Instrumentation Scalar InstCombine IPO Vectorize Hello \
ObjCARC BuildDFG DFG2LLVM_NVPTX DFG2LLVM_X86 ClearDFG
ObjCARC BuildDFG DFG2LLVM_NVPTX DFG2LLVM_X86 ClearDFG GenVISC
include $(LEVEL)/Makefile.config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment