From 49487ad634c0e8d8cbc1a2253640d10e0026bc4f Mon Sep 17 00:00:00 2001 From: Akash Kothari <akashk4@tyler.cs.illinois.edu> Date: Mon, 21 Dec 2020 13:02:25 -0600 Subject: [PATCH] Modify Cmakefiles, etc. for GenVISC pass --- hpvm/lib/Transforms/GenVISC/CMakeLists.txt | 7 +++++-- hpvm/lib/Transforms/GenVISC/{GenVISC.cpp => GenHPVM.cpp} | 0 .../GenVISC/{GenVISC.exports => GenHPVM.exports} | 0 hpvm/lib/Transforms/GenVISC/LLVMBuild.txt | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) rename hpvm/lib/Transforms/GenVISC/{GenVISC.cpp => GenHPVM.cpp} (100%) rename hpvm/lib/Transforms/GenVISC/{GenVISC.exports => GenHPVM.exports} (100%) diff --git a/hpvm/lib/Transforms/GenVISC/CMakeLists.txt b/hpvm/lib/Transforms/GenVISC/CMakeLists.txt index 710e8f2729..fc4c9fc5a9 100644 --- a/hpvm/lib/Transforms/GenVISC/CMakeLists.txt +++ b/hpvm/lib/Transforms/GenVISC/CMakeLists.txt @@ -2,8 +2,11 @@ if(WIN32 OR CYGWIN) set(LLVM_LINK_COMPONENTS Core Support) endif() -add_llvm_loadable_module( LLVMGenVISC - GenVISC.cpp +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLLVM_BUILD_DIR=${PROJECT_BINARY_DIR}") + +add_llvm_library( LLVMGenHPVM + MODULE + GenHPVM.cpp DEPENDS intrinsics_gen diff --git a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp b/hpvm/lib/Transforms/GenVISC/GenHPVM.cpp similarity index 100% rename from hpvm/lib/Transforms/GenVISC/GenVISC.cpp rename to hpvm/lib/Transforms/GenVISC/GenHPVM.cpp diff --git a/hpvm/lib/Transforms/GenVISC/GenVISC.exports b/hpvm/lib/Transforms/GenVISC/GenHPVM.exports similarity index 100% rename from hpvm/lib/Transforms/GenVISC/GenVISC.exports rename to hpvm/lib/Transforms/GenVISC/GenHPVM.exports diff --git a/hpvm/lib/Transforms/GenVISC/LLVMBuild.txt b/hpvm/lib/Transforms/GenVISC/LLVMBuild.txt index 9266b2c597..94ef73ac07 100644 --- a/hpvm/lib/Transforms/GenVISC/LLVMBuild.txt +++ b/hpvm/lib/Transforms/GenVISC/LLVMBuild.txt @@ -1,4 +1,4 @@ -;===- ./lib/Transforms/GenVISC/LLVMBuild.txt -------------------*- Conf -*--===; +;===- ./lib/Transforms/GenHPVM/LLVMBuild.txt -------------------*- Conf -*--===; ; ; The LLVM Compiler Infrastructure ; @@ -17,5 +17,5 @@ [component_0] type = Library -name = GenVISC +name = GenHPVM parent = Transforms -- GitLab