Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMake scripts for all of LunarGLASS, update tests to run with an …
…expected "install" for CMAKE_INSTALL_PREFIX, and change names from glslang to LunarGOO or glslang to baseResults. Also, a very old solution (not the recent one that is still checked in) was also deleted.
- Loading branch information
1 parent
d14a1a3
commit 4c0d180
Showing
80 changed files
with
425 additions
and
1,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
add_subdirectory(GLSL) | ||
add_subdirectory(TGSI) | ||
add_subdirectory(Dummy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(. ../../Core ${GLSLANGINCLUDES} ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
BottomToDummy.cpp) | ||
|
||
set(HEADERS | ||
DummyTarget.h) | ||
|
||
add_library(DummyBackend STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(. ../../Core ${GLSLANGINCLUDES} ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
BottomToGLSL.cpp) | ||
|
||
set(HEADERS | ||
GlslTarget.h) | ||
|
||
add_library(GLSLBackend STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(. ../../Core ${GLSLANGINCLUDES} ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
BottomToTgsi.cpp) | ||
|
||
set(HEADERS | ||
TgsiTarget.h) | ||
|
||
add_library(TgsiBackend STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
project(LunarGLASS) | ||
|
||
set(LLVMINCLUDES ${CMAKE_SOURCE_DIR}/Core/LLVM/llvm-3.4/build/install/include) | ||
set(GLSLANGINCLUDES ${CMAKE_SOURCE_DIR}/../glslang) | ||
|
||
link_directories(${CMAKE_SOURCE_DIR}/Core/LLVM/llvm-3.4/build/install/lib) | ||
|
||
set(LLVMLIBS | ||
LLVMCore.lib | ||
LLVMAsmParser.lib | ||
LLVMipa.lib | ||
LLVMLinker.lib | ||
LLVMTransformUtils.lib | ||
LLVMTarget.lib | ||
LLVMAnalysis.lib | ||
LLVMScalarOpts.lib | ||
LLVMSupport.lib | ||
LLVMipo.lib | ||
LLVMInstCombine.lib) | ||
|
||
add_definitions(-D_SCL_SECURE_NO_WARNINGS) | ||
|
||
add_subdirectory(Frontends) | ||
add_subdirectory(Core) | ||
add_subdirectory(Backends) | ||
add_subdirectory(StandAlone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
add_subdirectory(Passes) | ||
|
||
include_directories(. ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
Backend.cpp | ||
BottomIR.cpp | ||
BottomTranslator.cpp | ||
Exceptions.cpp | ||
Options.cpp | ||
TopBuilder.cpp | ||
TopToBottom.cpp | ||
Util.cpp) | ||
|
||
set(HEADERS | ||
Backend.h | ||
BottomIR.h | ||
Exceptions.h | ||
LunarGLASSManager.h | ||
LunarGLASSTopIR.h | ||
metadata.h | ||
Options.h | ||
PrivateManager.h | ||
Revision.h | ||
TopBuilder.h | ||
Util.h) | ||
|
||
add_library(core STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(../.. ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
IdentifyStructures.cpp) | ||
|
||
set(HEADERS | ||
IdentifyStructures.h) | ||
|
||
add_library(analysis STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
add_subdirectory(Analysis) | ||
add_subdirectory(Immutable) | ||
add_subdirectory(Transforms) | ||
add_subdirectory(Util) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(../.. ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
BackEndPointer.cpp) | ||
|
||
set(HEADERS | ||
BackEndPointer.h) | ||
|
||
add_library(immutable STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(../.. ${LLVMINCLUDES}) | ||
set(SOURCES | ||
CanonicalizeCFG.cpp | ||
CanonicalizeInsts.cpp | ||
CoalesceInserts.cpp | ||
DecomposeInsts.cpp | ||
FlattenConditionalAssignments.cpp | ||
GatherInsts.cpp | ||
IntrinsicCombine.cpp | ||
Scalarize.cpp) | ||
|
||
add_library(transforms STATIC ${SOURCES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(../.. ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
BasicBlockUtil.cpp | ||
ConditionalUtil.cpp | ||
InstructionUtil.cpp) | ||
|
||
set(HEADERS | ||
ADT.h | ||
BasicBlockUtil.h | ||
ConditionalUtil.h | ||
ConstantUtil.h | ||
DominatorsUtil.h | ||
FunctionUtil.h | ||
InstructionUtil.h | ||
LoopUtil.h) | ||
|
||
add_library(util STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
add_subdirectory(glslang) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(. ../../Core ${GLSLANGINCLUDES} ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
CodeGen.cpp | ||
GlslangToTop.cpp | ||
GlslangToTopVisitor.cpp | ||
Link.cpp | ||
main.cpp) | ||
|
||
set(HEADERS | ||
GlslangToTop.h | ||
GlslangToTopVisitor.h) | ||
|
||
add_library(glslangFrontend STATIC ${SOURCES} ${HEADERS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
include_directories(.. ../Core ${LLVMINCLUDES}) | ||
|
||
set(SOURCES | ||
LunarGManager.cpp | ||
OptionParse.cpp) | ||
|
||
add_executable(LunarGOO ${SOURCES}) | ||
|
||
target_link_libraries(LunarGOO | ||
core | ||
glslangFrontend | ||
GLSLBackend | ||
DummyBackend | ||
TgsiBackend | ||
analysis | ||
immutable | ||
transforms | ||
util | ||
${CMAKE_SOURCE_DIR}/../glslang/build/install/lib/glslang.lib | ||
${CMAKE_SOURCE_DIR}/../glslang/build/install/lib/Preprocessor.lib | ||
${CMAKE_SOURCE_DIR}/../glslang/build/install/lib/OSDependent.lib | ||
${CMAKE_SOURCE_DIR}/../glslang/build/install/lib/OGLCompiler.lib | ||
${LLVMLIBS}) | ||
|
||
install(TARGETS LunarGOO | ||
RUNTIME DESTINATION bin) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.