project(LLVM_exp14_HI_WithDirectiveTimingResourceEvaluation)
set(Outputname "LLVM_exp14_HI_WithDirectiveTimingResourceEvaluation")
cmake_minimum_required(VERSION 3.10)
find_package(LLVM REQUIRED CONFIG)
find_package(Polly)
find_package(Clang)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
message(STATUS "Using PollyConfig.cmake in: ${Polly_CMAKE_DIR}")
# Needed to use support library
message(STATUS "C++ flags==== ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -std=c++14 -g")
include_directories(${LLVM_INCLUDE_DIRS})
include_directories(${Polly_INCLUDE_DIRS})
include_directories(${Clang_INCLUDE_DIRS})
include_directories(./
../../Implementations/
../../Implementations/HI_FindFunctions
../../Implementations/HI_print
../../Implementations/HI_LoopInFormationCollect
../../Implementations/HI_DependenceList
../../Implementations/HI_SysExec
../../Implementations/HI_Polly_Info
../../Implementations/HI_LoopDependenceAnalysis
../../Implementations/HI_SimpleTimingEvaluation
../../Implementations/HI_DuplicateInstRm
../../Implementations/HI_VarWidthReduce
../../Implementations/HI_SeparateConstOffsetFromGEP
../../Implementations/HI_NoDirectiveTimingResourceEvaluation
../../Implementations/HI_IntstructionMoveBackward
../../Implementations/HI_HLSDuplicateInstRm
../../Implementations/HI_AggressiveLSR_MUL
../../Implementations/HI_ArrayAccessPattern
../../Implementations/HI_WithDirectiveTimingResourceEvaluation
../../Implementations/HI_StringProcess
../../Implementations/HI_FunctionInstantiation
../../Implementations/HI_ReplaceSelectAccess
../../Implementations/HI_LoopUnroll
../../Implementations/HI_RemoveRedundantAccess
../../Implementations/HI_IR2SourceCode
../../Implementations/HI_LoopLabeler
../../Implementations/HI_FunctionInterfaceInfo
../../Implementations/HI_Mul2Shl
../../Implementations/HI_MulOrderOpt
../../Implementations/HI_MuxInsertionArrayPartition
)
link_directories("../LLVM_Learner_Libs")
set(MAKE_CMD "../../../BuildLibs.sh")
MESSAGE("COMMAND: ${MAKE_CMD} ")
execute_process(COMMAND ${MAKE_CMD}
RESULT_VARIABLE CMD_ERROR
OUTPUT_FILE CMD_OUTPUT)
add_definitions(${LLVM_DEFINITIONS})
add_definitions(${Polly_DEFINITIONS})
add_executable(${Outputname} LLVM_exp14_HI_WithDirectiveTimingResourceEvaluation.cc ConfigParse.cc)
llvm_map_components_to_libnames(llvm_libs support core irreader engine nativecodegen)
target_link_libraries(${Outputname} pthread dl
HI_FindFunctions
HI_print
HI_DependenceList
HI_SysExec
HI_LoopInFormationCollect
HI_Polly_Info HI_LoopDependenceAnalysis
HI_SimpleTimingEvaluation
HI_DuplicateInstRm
HI_VarWidthReduce
HI_SeparateConstOffsetFromGEP
HI_NoDirectiveTimingResourceEvaluation
HI_IntstructionMoveBackward
HI_HLSDuplicateInstRm
HI_AggressiveLSR_MUL
HI_ArrayAccessPattern
HI_WithDirectiveTimingResourceEvaluation
HI_StringProcess
HI_FunctionInstantiation
HI_ReplaceSelectAccess
HI_LoopUnroll
HI_RemoveRedundantAccess
HI_IR2SourceCode
HI_LoopLabeler
HI_FunctionInterfaceInfo
HI_Mul2Shl
HI_MulOrderOpt
HI_MuxInsertionArrayPartition
) #link llvm component
target_link_libraries(${Outputname} ${Polly_LIBRARIES})
message(STATUS "Polly Libraries are: ${Polly_LIBRARIES}")
# set(llvm_libs "")
#link llvm library
target_link_libraries(${Outputname}
LLVMLTO
LLVMPasses
LLVMObjCARCOpts
LLVMMIRParser
LLVMSymbolize
LLVMDebugInfoPDB
LLVMDebugInfoDWARF
LLVMCoverage
LLVMMCA
LLVMTableGen
LLVMDlltoolDriver
LLVMXRay
LLVMOrcJIT
LLVMXCoreDisassembler
LLVMXCoreCodeGen
LLVMXCoreDesc
LLVMXCoreInfo
LLVMXCoreAsmPrinter
LLVMObjectYAML
LLVMLibDriver
LLVMOption
LLVMOptRemarks
LLVMWindowsManifest
LLVMTextAPI
LLVMFuzzMutate
LLVMX86Disassembler
LLVMX86AsmParser
LLVMX86CodeGen
LLVMGlobalISel
LLVMSelectionDAG
LLVMAsmPrinter
LLVMX86Desc
LLVMMCDisassembler
LLVMX86Info
LLVMX86AsmPrinter
LLVMX86Utils
LLVMMCJIT
LLVMLineEditor
LLVMInterpreter
LLVMExecutionEngine
LLVMRuntimeDyld
LLVMCodeGen
LLVMTarget
LLVMCoroutines
LLVMipo
LLVMInstrumentation
LLVMVectorize
LLVMScalarOpts
LLVMLinker
LLVMIRReader
LLVMAsmParser
LLVMInstCombine
LLVMBitWriter
LLVMAggressiveInstCombine
LLVMTransformUtils
LLVMAnalysis
LLVMProfileData
LLVMObject
LLVMMCParser
LLVMMC
LLVMDebugInfoCodeView
LLVMDebugInfoMSF
LLVMBitReader
LLVMCore
LLVMBinaryFormat
LLVMSupport
LLVMDemangle
clangFrontend
clangParse
clangSema
clangAnalysis
clangAST
clangLex
clangBasic
clangDriver
clangSerialization
clangFrontendTool
clangCodeGen
clangStaticAnalyzerFrontend
clangStaticAnalyzerCheckers
clangStaticAnalyzerCore
clangRewrite
clangEdit
clangTooling
clangARCMigrate
clangRewriteFrontend
)
# message(STATUS "LLVM Libraries0 are: ${llvm_libs}")
# message(STATUS "LLVM Libraries1 are: ${ARG_LINK_COMPONENTS}")
# message(STATUS "LLVM Libraries2 are: ${LLVM_LINK_COMPONENTS}")
# message(STATUS "LLVM Definitions are: ${LLVM_PACKAGE_VERSION}")
LLVM_exp14_HI_WithDirectiveTimingResourceEvaluation.7z
版权申诉
89 浏览量
2021-12-04
09:10:57
上传
评论
收藏 8KB 7Z 举报
应用市场
- 粉丝: 460
- 资源: 3809
最新资源
- chromedriver-linux64.zip 是一个用于在 Linux 系统上运行 Chrome 浏览器的驱动程序
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- html动态爱心代码一(附源码)
- c40539bc-071a-486c-9d52-9d0c18d62dac 4.html
- 基于物理的非视域成像(NLOS)算法,利用了nerf+python源码+文档说明
- yuluer知更鸟.7z(1).001
- python课程设计-基于tensorflow实现的图文生成程序,数据集flickr30k-images+源代码+文档说明+截图
- python作业-基于Flickr30k数据集实现图像文本跨模态搜索python源码+数据集+测试界面+项目说明(高分课程设计)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈