Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multi-file input to clang2graph #168

Open
ChrisCummins opened this issue Jun 10, 2021 · 0 comments
Open

Add support for multi-file input to clang2graph #168

ChrisCummins opened this issue Jun 10, 2021 · 0 comments
Labels
Datasets Graph and text datasets Enhancement New feature or request

Comments

@ChrisCummins
Copy link
Owner

馃殌 Feature

At the moment only a single compilation job is allowed for clang2graph. This means that generating a graph from a multifile source code requires jumping through some hoops:

# Generate .bc files
clang -c -emit-llvm *.c
# Link into a single .bc file
llvm-link *.bc -o linked.bc
# Create graph from the single .bc file
llvm2graph linked.bc

This is inconvenient and means the user loses the original module information. Instead, we should allow clang2graph to accept multiple inputs:

clang2graph *.c
@ChrisCummins ChrisCummins added Enhancement New feature or request Datasets Graph and text datasets labels Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datasets Graph and text datasets Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant