Code Monkey home page Code Monkey logo

patmos-clang's People

Contributors

abramobagnara avatar akyrtzi avatar annazaks avatar belkadan avatar bob-wilson avatar chandlerc avatar chapuni avatar d0k avatar ddunbar avatar douggregor avatar dwblaikie avatar echristo avatar eefriedman avatar espindola avatar fpichet avatar ggreif avatar isanbard avatar kjdyck avatar lattner avatar nico avatar nlewycky avatar nunoplopes avatar pcc avatar rjmccall avatar sampo3k avatar stefanhepp avatar tkremenek avatar weverything avatar xuzhongxing avatar zygoloid avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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

Forkers

alexjordan emoun

patmos-clang's Issues

Singlepath: Optimization flags `O2` and `O3` cannot find root singlepath functions

When compiling using clang directly to a singlepath executable, the use of the optimization flags O2 and O3 fails because the root functions are not found.
I.e. for a given main.c program, trying to compile using the command patmos-clang main.c -mpatmos-singlepath=some_root_sp_function -O2 will result in the error:

Following single-path roots were not found:
'some_root_sp_function'
LLVM ERROR: Single-path code generation failed due to missing single-path entry functions!
patmos-clang-3.4: error: link  via llvm-link, opt and llc command failed with exit code 1 (use -v to see invocation)

Manually managing the compile steps does not throw this error. I.e. we can first compile to bitcode using patmos-clang -S main.c -O2 -o main.s, and then use patmos-llc main.s -mpatmos-singlepath=some_root_sp_function -O2 to compile the rest of the way.

Macro expansion in loopbound pragma broken with -E

The TACLe-style loopbound pragma (#pragma loopbound min NUM max NUM) should allow macros for NUM constants. Unfortunately, this macro expansion does not work when only preprocessing with -E. Hence, compilation also fails when -save-temps is specified as command line option.

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.