From bcff934b58725e340a789776ff4b00f9ae009afc Mon Sep 17 00:00:00 2001 From: Prakalp Srivastava <psrivas2@illinois.edu> Date: Tue, 18 Nov 2014 19:32:10 +0000 Subject: [PATCH] Added lit.local.cfg to add substitution of llvm_src in test cases --- llvm/test/VISC/MatrixMultiplication/visc_gemm.ll | 2 +- llvm/test/VISC/MatrixMultiplication/visc_gemm_ptx.ll | 4 ++-- llvm/test/VISC/lit.local.cfg | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 llvm/test/VISC/lit.local.cfg diff --git a/llvm/test/VISC/MatrixMultiplication/visc_gemm.ll b/llvm/test/VISC/MatrixMultiplication/visc_gemm.ll index 9ceb93a45f..cb16f00949 100644 --- a/llvm/test/VISC/MatrixMultiplication/visc_gemm.ll +++ b/llvm/test/VISC/MatrixMultiplication/visc_gemm.ll @@ -1,5 +1,5 @@ ; RUN: opt -load LLVMBuildDFG.so -load LLVMDFG2LLVM_X86.so -load LLVMClearDFG.so -dfg2llvm-x86 -clearDFG -o %t.ll -S %s -; RUN: llvm-link %t.ll ~/current-src/projects/visc-rt/visc-rt.ll -S -o %t.linked.ll +; RUN: llvm-link %t.ll %llvm_src/projects/visc-rt/visc-rt.ll -S -o %t.linked.ll ; RUN: clang++ -O3 %t.linked.ll -lpthread -lOpenCL -o %t.bin ; RUN: %t.bin ; ModuleID = 'gemm_opencl.c' diff --git a/llvm/test/VISC/MatrixMultiplication/visc_gemm_ptx.ll b/llvm/test/VISC/MatrixMultiplication/visc_gemm_ptx.ll index 5d616e5cd2..e0fe3822e3 100644 --- a/llvm/test/VISC/MatrixMultiplication/visc_gemm_ptx.ll +++ b/llvm/test/VISC/MatrixMultiplication/visc_gemm_ptx.ll @@ -1,9 +1,9 @@ ; RUN: opt -load LLVMBuildDFG.so -load LLVMDFG2LLVM_NVPTX.so -load LLVMDFG2LLVM_X86.so -load LLVMClearDFG.so -dfg2llvm-nvptx -dfg2llvm-x86 -clearDFG -o %t.ll -S %s ; RUN: %S/metadata.py %s.kernels.ll %t.kernels.ll ; RUN: mv %t.kernels.ll %s.kernels.ll -; RUN: llvm-link /home/psrivas2/Hetero/VISC/Code/trunk/libclc/built_libs/nvptx--nvidiacl.bc %s.kernels.ll -o %t.ll.kernels.linked.bc +; RUN: llvm-link %llvm_src/../libclc/built_libs/nvptx--nvidiacl.bc %s.kernels.ll -o %t.ll.kernels.linked.bc ; RUN: clang -O3 -target nvptx %t.ll.kernels.linked.bc -S -o %s.nvptx.s -; RUN: llvm-link %t.ll ~/current-src/projects/visc-rt/visc-rt.ll -S -o %t.linked.ll +; RUN: llvm-link %t.ll %llvm_src/projects/visc-rt/visc-rt.ll -S -o %t.linked.ll ; RUN: clang++ -O3 %t.linked.ll -lpthread -lOpenCL -o %t.bin ; RUN: %t.bin ; ModuleID = 'gemm_opencl.c' diff --git a/llvm/test/VISC/lit.local.cfg b/llvm/test/VISC/lit.local.cfg new file mode 100644 index 0000000000..4edd662ded --- /dev/null +++ b/llvm/test/VISC/lit.local.cfg @@ -0,0 +1,2 @@ +llvm_src = '/home/psrivas2/Hetero/VISC/Code/trunk/llvm' +config.substitutions.append(('%llvm_src', llvm_src)) -- GitLab