Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dr. Michael Petter
LLVM-abstractinterpretation
Commits
57993520
Commit
57993520
authored
Nov 19, 2021
by
Administrator
Browse files
do not drop variable names in production compiler
parent
d2135f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
57993520
...
...
@@ -319,7 +319,7 @@ if (APPLE)
foreach
(
src
${
SAMPLES
}
)
add_custom_command
(
OUTPUT
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
COMMAND
${
PATH_TO_LLVM
}
/bin/clang --sysroot
${
CMAKE_OSX_SYSROOT
}
-O0 -emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.c -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/clang --sysroot
${
CMAKE_OSX_SYSROOT
}
-O0
-fno-discard-value-names
-emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.c -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/opt -S -mem2reg
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
DEPENDS clang opt
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.c
COMMENT
"Generating LLVM IR for example
${
src
}
.c"
...
...
@@ -329,7 +329,7 @@ endforeach(src)
foreach
(
src
${
CPPSAMPLES
}
)
add_custom_command
(
OUTPUT
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
COMMAND
${
PATH_TO_LLVM
}
/bin/clang++ --sysroot
${
CMAKE_OSX_SYSROOT
}
-O0 -emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.cpp -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/clang++ --sysroot
${
CMAKE_OSX_SYSROOT
}
-O0
-fno-discard-value-names
-emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.cpp -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/opt -S -mem2reg
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
DEPENDS clang opt
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.cpp
COMMENT
"Generating LLVM IR for example
${
src
}
.cpp"
...
...
@@ -341,7 +341,7 @@ else()
foreach
(
src
${
SAMPLES
}
)
add_custom_command
(
OUTPUT
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
COMMAND
${
PATH_TO_LLVM
}
/bin/clang -O0 -emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.c -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/clang -O0
-fno-discard-value-names
-emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.c -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/opt -S -mem2reg
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
DEPENDS clang opt
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.c
COMMENT
"Generating LLVM IR for example
${
src
}
.c"
...
...
@@ -351,7 +351,7 @@ endforeach(src)
foreach
(
src
${
CPPSAMPLES
}
)
add_custom_command
(
OUTPUT
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
COMMAND
${
PATH_TO_LLVM
}
/bin/clang++ -O0 -emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.cpp -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/clang++ -O0
-fno-discard-value-names
-emit-llvm
${
CMAKE_SOURCE_DIR
}
/samples/
${
src
}
.cpp -Xclang -disable-O0-optnone -c -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc
COMMAND
${
PATH_TO_LLVM
}
/bin/opt -S -mem2reg
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.bc -o
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
COMMAND optdir=
${
PATH_TO_LLVM
}
/bin
${
CMAKE_SOURCE_DIR
}
/helpers/lsFunctions.sh
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
COMMAND optdir=
${
PATH_TO_LLVM
}
/bin
${
CMAKE_SOURCE_DIR
}
/helpers/callgraph.sh
${
CMAKE_SOURCE_DIR
}
/output/
${
src
}
.ll
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment