Minor improvements to multithreaded compilation in Standalone #341
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
#340 Fix thread safety with LLVM library
M-Labs/nac3
Reference: M-Labs/nac3#341
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/threading-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
-T
to specify threading-T0
as using all available threadsrun_demo.sh
script to clean all previous build output and link all bitcode modules from different threadsv2: Use
llvm-link
even if there is only one input filev3: Use
nullglob
to collect allmodule*.bc
file (even if they do not exist)v4: Squashed redundant commits
@ -52,2 +49,4 @@
clang -c -std=gnu11 -Wall -Wextra -O3 -emit-llvm -o demo.bc demo.c
shopt -s nullglob
llvm-link -o module.bc module*.bc main.bc
Isn't module*.bc also matching module.bc? I know you are deleting it above but it looks confusing and a potential source of bugs. Better rename it to something else and clear e.g nac3output.bc ?
Addressed in v5.
v5: Renamed output bitcode to
nac3out.bc
.