Coder Social home page Coder Social logo

clang-jit's People

Contributors

kray-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clang-jit's Issues

Update support from Clang 8 to Clang 13.

Currently your jit.cpp code supports C++ API of Clang 8, but already Clang 13 is released. I suggest to update your jit.cpp code to support Clang 13.

I did all necessary modifications in order to make it compilable under Clang 13. But as I don't have deep knowledge of Clang C++ library API hence I didn't more like syntaxical compilation fixes without much thinking.

Here is my version of jit.cpp, only this file should be modified. In order to see all changes in code just do windiff jit_old.cpp jit_new.cpp (WinDiff is standard tool under Windows).

I didn't make any Pull request first because I never did any so I don't know much details of how to do that. And second, more important, because I fixed only compilation issues but don't know if it is correct. It needs your expert look at modification in order to figure out if all is alright.

My code works (compilable) and tested both under MSVC 2022 and Win Clang 13. If I run compiled program on fib.c then it gives correct answer and doesn't crash (program successfully finishes).

There is one TODO word in my code, this is the place where I didn't manage to fix code correctly. It is the place where codeGenOptions.DebugPassManager option is used to construct object of llvm::ModuleAnalysisManager type (and other similar managers). I didn't fix this place correctly in a sence that I had to remove option codeGenOptions.DebugPassManager totally in order to make it compilable, hence now these managers will run without debug pass (or debug info?).

I didn't compile Clang 13 myself, but took pre-compiled build from ZigLang github page, from here, precise pre-compiled version that I used is this one (this link may become invalid later).

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.