Version 11 (modified by hfinkel, 5 years ago)


Welcome to using LLVM/clang on the BG/Q

ANL Early Access

If you have access to ANL's early access development systems, please also see (for usage details):  LLVM on the BG/Q Early-Access Wiki

For the benefit of those without access, here is a copy of our bgclang Download wrapper script (as of 2012-06-02). For use on other systems, you'll need to change some of the paths, but this will let you see what optimization settings are used by default. You should symlink this to bgclang++ to create a C++ wrapper.

Repository Information

I have yet to figure out how to best mirror my local repositories. Here's why:

  • LLVM uses subversion, and I've been using git-svn to manage local BG/Q changes.
  • git-svn uses rebasing to apply local changes on top of upstream changes; this amounts to history rewriting (dangerous but effective). I cannot simply push from the git-svn-managed repository to the public one because doing so would confuse copies cloned from the public version.
  • LLVM uses separate repositories for LLVM and clang, it is not clear how to best combine them into one public repository.

Thus, for the time being, we'll just need to use patches. Maybe I should push into separate (new) branches every time I commit? I'm certainly open to suggestions.



Note: the date tag on the clang patch regressed compared to the previous version because upstream commits rendered later local changes irrelevant.