mirror of
https://github.com/clang-retro/llvm.git
synced 2026-11-28 21:29:24 -08:00
[llvm-ir2vec] Creating one directory per library for IRUtils, and MIRUtils (#198170)
Follow up to https://github.com/llvm/llvm-project/pull/194414#issuecomment-4467455664 . Made a patch to move IRUtils, and MIRUtils to their own subdirectories
This commit is contained in:
1 parent
c9213db3ea
commit
b9c7a8e43a
10 files changed
+31
-31
No files matched your search
@@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lib/IRUtils.h"
|
||||
#include "IRUtils/IRUtils.h"
|
||||
#include "llvm/IR/LLVMContext.h"
|
||||
#include "llvm/IR/Module.h"
|
||||
#include "llvm/IRReader/IRReader.h"
|
||||
|
||||
@@ -21,6 +21,7 @@ set(LLVM_LINK_COMPONENTS
|
||||
)
|
||||
|
||||
# Build the utility libraries first
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
|
||||
add_subdirectory(lib)
|
||||
|
||||
# Main executable
|
||||
|
||||
@@ -1,28 +1,2 @@
|
||||
add_llvm_library(LLVMIREmbUtils STATIC
|
||||
IRUtils.cpp
|
||||
|
||||
PARTIAL_SOURCES_INTENDED
|
||||
BUILDTREE_ONLY
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
Analysis
|
||||
Core
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_library(LLVMMIREmbUtils STATIC
|
||||
MIRUtils.cpp
|
||||
|
||||
PARTIAL_SOURCES_INTENDED
|
||||
BUILDTREE_ONLY
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
CodeGen
|
||||
Target
|
||||
)
|
||||
add_subdirectory(IRUtils)
|
||||
add_subdirectory(MIRUtils)
|
||||
@@ -0,0 +1,13 @@
|
||||
add_llvm_library(LLVMIREmbUtils STATIC
|
||||
IRUtils.cpp
|
||||
|
||||
BUILDTREE_ONLY
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
Analysis
|
||||
Core
|
||||
Support
|
||||
)
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,12 @@
|
||||
add_llvm_library(LLVMMIREmbUtils STATIC
|
||||
MIRUtils.cpp
|
||||
|
||||
BUILDTREE_ONLY
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
CodeGen
|
||||
Target
|
||||
)
|
||||
File renamed without changes.
File renamed without changes.
@@ -54,8 +54,8 @@
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lib/IRUtils.h"
|
||||
#include "lib/MIRUtils.h"
|
||||
#include "IRUtils/IRUtils.h"
|
||||
#include "MIRUtils/MIRUtils.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/Analysis/IR2Vec.h"
|
||||
#include "llvm/CodeGen/CommandFlags.h"
|
||||
|
||||
Reference in new issue
Block a user