Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
llvm-pass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
llvm-pass
Commits
22cd1711
Commit
22cd1711
authored
9 years ago
by
Adrian Sampson
Browse files
Options
Downloads
Patches
Plain Diff
More build nonsense
parent
9b67db86
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
README.md
+1
-1
1 addition, 1 deletion
README.md
skeleton/CMakeLists.txt
+4
-1
4 additions, 1 deletion
skeleton/CMakeLists.txt
skeleton/Skeleton.cpp
+1
-1
1 addition, 1 deletion
skeleton/Skeleton.cpp
with
7 additions
and
4 deletions
CMakeLists.txt
+
1
−
1
View file @
22cd1711
...
@@ -7,7 +7,7 @@ list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
...
@@ -7,7 +7,7 @@ list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
set
(
LLVM_ENABLE_PLUGINS ON
)
set
(
LLVM_ENABLE_PLUGINS ON
)
set
(
LLVM_RUNTIME_OUTPUT_INTDIR
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_CFG_INTDIR
}
/bin
)
set
(
LLVM_RUNTIME_OUTPUT_INTDIR
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_CFG_INTDIR
}
/bin
)
set
(
LLVM_LIBRARY_OUTPUT_INTDIR
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_CFG_INTDIR
}
/lib
)
set
(
LLVM_LIBRARY_OUTPUT_INTDIR
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_CFG_INTDIR
}
/lib
)
set
(
LLVM_PLUGIN_EXT
"so"
)
set
(
LLVM_PLUGIN_EXT
"
.
so"
)
include
(
AddLLVM
)
include
(
AddLLVM
)
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
22cd1711
...
@@ -14,4 +14,4 @@ Build:
...
@@ -14,4 +14,4 @@ Build:
Run:
Run:
$ clang -emit-llvm -c -o something.bc something.c
$ clang -emit-llvm -c -o something.bc something.c
$ opt -load build/
skeleton
/SkeletonPass.* -skeleton something.bc
$ opt -load build/
lib
/SkeletonPass.* -skeleton something.bc
This diff is collapsed.
Click to expand it.
skeleton/CMakeLists.txt
+
4
−
1
View file @
22cd1711
...
@@ -3,4 +3,7 @@ add_llvm_loadable_module(SkeletonPass
...
@@ -3,4 +3,7 @@ add_llvm_loadable_module(SkeletonPass
Skeleton.cpp
Skeleton.cpp
)
)
set_target_properties
(
SkeletonPass PROPERTIES COMPILE_FLAGS
"-std=c++11"
)
set_target_properties
(
SkeletonPass PROPERTIES
COMPILE_FLAGS
"-std=c++11 -fno-rtti"
LINK_FLAGS
"-undefined dynamic_lookup"
)
This diff is collapsed.
Click to expand it.
skeleton/Skeleton.cpp
+
1
−
1
View file @
22cd1711
#include
"llvm/Pass.h"
#include
"llvm/Pass.h"
#include
"llvm/Function.h"
#include
"llvm/
IR/
Function.h"
#include
"llvm/Support/raw_ostream.h"
#include
"llvm/Support/raw_ostream.h"
using
namespace
llvm
;
using
namespace
llvm
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment