Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
a1e889b3
Commit
a1e889b3
authored
May 04, 2016
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix llvm 3.9 build
Signed-off-by:
Brenden Blanco
<
bblanco@plumgrid.com
>
parent
6bfb3b05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/cc/CMakeLists.txt
src/cc/CMakeLists.txt
+6
-3
src/cc/frontends/b/codegen_llvm.cc
src/cc/frontends/b/codegen_llvm.cc
+2
-1
No files found.
src/cc/CMakeLists.txt
View file @
a1e889b3
...
...
@@ -41,10 +41,13 @@ add_library(bcc-loader-static libbpf.c perf_reader.c bcc_elf.c bcc_proc.c)
add_library
(
bcc-static STATIC bpf_common.cc bpf_module.cc shared_table.cc exported_files.cc bcc_syms.cc usdt_args.cc usdt.cc
)
set_target_properties
(
bcc-static PROPERTIES OUTPUT_NAME bcc
)
# BPF is still experimental otherwise it should be available
#llvm_map_components_to_libnames(llvm_libs bpf mcjit irreader passes)
llvm_map_components_to_libnames
(
llvm_libs bitwriter bpfcodegen irreader linker
set
(
llvm_raw_libs bitwriter bpfcodegen irreader linker
mcjit objcarcopts option passes nativecodegen
)
list
(
FIND LLVM_AVAILABLE_LIBS
"LLVMCoverage"
_llvm_coverage
)
if
(
${
_llvm_coverage
}
GREATER -1
)
list
(
APPEND llvm_raw_libs coverage
)
endif
()
llvm_map_components_to_libnames
(
llvm_libs
${
llvm_raw_libs
}
)
llvm_expand_dependencies
(
expanded_libs
${
llvm_libs
}
)
# order is important
...
...
src/cc/frontends/b/codegen_llvm.cc
View file @
a1e889b3
...
...
@@ -698,7 +698,8 @@ StatusTuple CodegenLLVM::emit_atomic_add(MethodCallExprNode *n) {
Value
*
lhs
=
B
.
CreateBitCast
(
pop_expr
(),
Type
::
getInt64PtrTy
(
ctx
()));
TRY2
(
n
->
args_
[
1
]
->
accept
(
this
));
Value
*
rhs
=
B
.
CreateSExt
(
pop_expr
(),
B
.
getInt64Ty
());
AtomicRMWInst
*
atomic_inst
=
B
.
CreateAtomicRMW
(
AtomicRMWInst
::
Add
,
lhs
,
rhs
,
SequentiallyConsistent
);
AtomicRMWInst
*
atomic_inst
=
B
.
CreateAtomicRMW
(
AtomicRMWInst
::
Add
,
lhs
,
rhs
,
AtomicOrdering
::
SequentiallyConsistent
);
atomic_inst
->
setVolatile
(
false
);
return
mkstatus
(
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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