Discussing The LLVM IR Shortcomings

Posted by Michael Larabel on October 05, 2011

While GCC developers are currently discussing merging the D programming language front-end into their compiler, LLVM developers are currently discussing their IR and its sufficiency.

Dan Gohman, an Apple engineer, volleyed a long and technical e-mail to the LLVM development list about the LLVM IR. Dan argues that the intermediate representation for this Apple-sponsored compiler infrastructure is "a poor system for building a Platform." He and many felt that LLVM IR would work well for multiple architectures, but in the end it's not been so pretty. In his email he argues his case at length.

Dan ends up proposing a new platform IR for LLVM. "In conclusion, consider the task of writing an independent implementation of an LLVM IR Platform. The set of capabilities it provides depends on who you talk to. Semantic details are left to chance. There are features which require a bunch of complicated infrastructure to implement which are rarely used. And if you want light-weight execution, you'll probably need to translate it into something else better suited for it first. This all doesn't sound very appealing."

There's many responses already from his message that was sent yesterday. Most of the developers agree with his points. Chris Lattner, the primary developer behind LLVM/Clang and who's been heading Apple's Compiler Group, also agrees with most points raised by his colleague. However, he doesn't agree with the conclusion of creating a new IR. The email from Chris can be read here.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. The Cost Of Ubuntu Disk Encryption
  3. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  4. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
Latest Linux News
  1. New NVIDIA Linux Driver Supports The GeForce GTX 780
  2. Chrome 28 To Offer More Speed Improvements
  3. Digia Announces "Boot To Qt" Project
  4. X.Org Libraries Hit By Round Of Security Issues
  5. Wayland's Weston Gets Output Scaling Support
  6. Raspberry Pi Gets New Wayland Weston Renderer
  7. Debian GNU/Hurd 2013 Release Brings New Packages
  8. Intel Ultrabook Performance Is Faster With Mesa 9.2
  9. Hot Relocation HDD To SSD Support For Btrfs
  10. Phoronix Test Suite 4.6.0 "Utsira" Released
  11. New Intel X.Org Driver Supports All Of Haswell
Latest Forum Talk
  1. Xserver 1.14 support will arrive with Catalyst...
  2. Radeon HD 7850 Catalyst wine performance
  3. X.Org Libraries Hit By Round Of Security Issues
  4. Digia Announces "Boot To Qt" Project
  5. Fedora 18 Comes To ARMv6, Raspberry Pi
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite