1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

A Basic Look At How The LLVM Compiler Works

Compiler

Published on 29 November 2012 10:39 AM EST
Written by Michael Larabel in Compiler
Comment On This Article

The LLVM compiler infrastructure is frequently talked about on Phoronix whether it be about its Clang C/C++ compiler or one of the innovative use-cases for LLVM such as with the LLVMpipe Gallium3D driver or as a JIT engine within some free software projects like Mono. However, for those that don't understand much of the internals of LLVM, here's a brief overview.

The LLVM project has posted a new blog entry about the life of an instruction in LLVM.

This blog post basically goes over the process of LLVM's multiple compilation stages in how C source-code is ultimately parsed and then transformed and lowered into binary machine code.

This isn't too technical of a posting but rather just a nice overview of the LLVM process. Covered processes include starting out with Clang and generated LLVM IR, SelectionDAG instruction selection, scheduling and emitting a machine instruction, register allocatio, emitting code, the MC layer, and then the assemblers/disassemblers.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Articles & Reviews
  1. NVIDIA's Latest Maxwell Line-Up Against AMD With Catalyst On Linux
  2. Preliminary Tests Of Intel Sandy Bridge & Ivy Bridge vs. Broadwell
  3. AMD FX-8320E Performance On Linux
  4. Linux Compiler Benchmarks Of LLVM Clang 3.5 vs. LLVM Clang 3.6-rc1
  5. Intel Broadwell HD Graphics 5500: Windows 8.1 vs. Linux
  6. Linux Benchmarks Of NVIDIA's Early 2015 GeForce Line-Up
Latest Linux News
  1. Intel Broadwell-U P-State vs. ACPI CPUFreq Scaling Linux Performance
  2. DragonFlyBSD Is Almost To Linux 3.10 Era Intel Graphics Support
  3. New Beta Of Witcher 2 Aims For Greater Performance
  4. NVIDIA Tegra DRM Driver Supports Atomic Mode-Setting In Linux 3.20
  5. Linux "GHOST" Vulnerability Hits Glibc Systems
  6. Linux Game Publishing Remains Offline, Three Years After The CEO Shakeup
  7. PlayStation 4 System Compiler Support Landing In LLVM
  8. Now-Closed KDE Vulnerabilities Remind Us X11 Screen Locks / Screensavers Are Insecure
  9. Vivaldi: A New Chromium-Powered, Multi-Platform Browser
  10. KDE Plasma 5.2 Officially Released
Most Viewed News This Week
  1. Windows 10 To Be A Free Upgrade: What Linux Users Need To Know
  2. LibreOffice 4.4 Is Coming Soon With New Features
  3. TraceFS: The Newest Linux File-System
  4. My Initial Intel Broadwell Linux Experience With The ThinkPad X1 Carbon
  5. Broadwell Linux Ultrabook Running MUCH Cooler Than Haswell
  6. Interstellar Marines On Linux With Catalyst: Bull S*#@
  7. LZHAM 1.0 Lossless Data Compression Codec Released
  8. Linux Users Upset By Chromium's Busted HiDPI Support