Coder Social home page Coder Social logo

llvm-dataflow-graphs's Introduction

###LLVM Pass to write data and control flow graph for each statement Build MIT

This is similar to graph-llvm-ir by pfalcon. but there seems to be some problems for it.

This flow is constructed in the context of hdl design. so flow between function calls makes sense with design flattening(hdl). Some options to show individual flows may be added later.

Current Status:

  1. Control flow is good per function. should add?? between function blocks and calling statements??.
  2. Data flow just getting started.

Errors:

  1. Global Data dependency not showing.
  2. Edges from ret val of function to call node.
  3. Handling core library functions.

TODO:

  1. The errors.
  2. struct type single node for arguments of a function.
  3. edges between functions and calls too cluttered find resonable comprimise.
  4. Hilights for certain nodes and edges based on the results of some optimization passes. Example: the nodes which will be removed during some optimization processes. try to use inbuilt passes and analyze the diff the resulting ir's to find the missing nodes.Or can a copy of the original llvm-ir can be kept in memory to analyze the passes.??
  5. Use and update memorydependence analysis and aliasanalysis for logic instead of custom funcitons. also use llvm in built containers. It's sample test code.
!inc(samples/VectorProduct.c)

Output Dot image dotfile

llvm-dataflow-graphs's People

Contributors

datvo06 avatar k3ut0i avatar sgqy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.