From 85b25027d233e3a128c3e24b217fc60bc89a06e3 Mon Sep 17 00:00:00 2001
From: Akash Kothari <akashk4@tyler.cs.illinois.edu>
Date: Mon, 21 Dec 2020 11:54:26 -0600
Subject: [PATCH] LLVM-9-port InlineTensorCalls pass

---
 hpvm/lib/Transforms/InlineTensorCalls/CMakeLists.txt           | 3 ++-
 .../lib/Transforms/InlineTensorCalls/InlineTensorCalls.exports | 2 ++
 hpvm/lib/Transforms/InlineTensorCalls/LLVMBuild.txt            | 3 +--
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/hpvm/lib/Transforms/InlineTensorCalls/CMakeLists.txt b/hpvm/lib/Transforms/InlineTensorCalls/CMakeLists.txt
index 51f321884f..29dd2c8431 100644
--- a/hpvm/lib/Transforms/InlineTensorCalls/CMakeLists.txt
+++ b/hpvm/lib/Transforms/InlineTensorCalls/CMakeLists.txt
@@ -2,7 +2,8 @@ if(WIN32 OR CYGWIN)
   set(LLVM_LINK_COMPONENTS Core Support)
 endif()
 
-add_llvm_loadable_module( InlineTensorCalls
+add_llvm_library( InlineTensorCalls
+  MODULE
   InlineTensorCalls.cpp
 
   DEPENDS
diff --git a/hpvm/lib/Transforms/InlineTensorCalls/InlineTensorCalls.exports b/hpvm/lib/Transforms/InlineTensorCalls/InlineTensorCalls.exports
index e69de29bb2..139597f9cb 100644
--- a/hpvm/lib/Transforms/InlineTensorCalls/InlineTensorCalls.exports
+++ b/hpvm/lib/Transforms/InlineTensorCalls/InlineTensorCalls.exports
@@ -0,0 +1,2 @@
+
+
diff --git a/hpvm/lib/Transforms/InlineTensorCalls/LLVMBuild.txt b/hpvm/lib/Transforms/InlineTensorCalls/LLVMBuild.txt
index 8fff7891af..c160516a64 100644
--- a/hpvm/lib/Transforms/InlineTensorCalls/LLVMBuild.txt
+++ b/hpvm/lib/Transforms/InlineTensorCalls/LLVMBuild.txt
@@ -1,4 +1,4 @@
-;===- ./lib/Transforms/DFG2LLVM_NVPTX/LLVMBuild.txt ------------*- Conf -*--===;
+;===- ./lib/Transforms/DFG2LLVM_WrapperAPI/LLVMBuild.txt -------*- Conf -*--===;
 ;
 ;                     The LLVM Compiler Infrastructure
 ;
@@ -19,4 +19,3 @@
 type = Library
 name = InlineTensorCalls
 parent = Transforms
-
-- 
GitLab