583L3llvm - Using LLVM Daya S Khudia (uniqname: dskhudia)...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Using LLVM Daya S Khudia (uniqname: dskhudia) Office Hours: 3-5 in 1695 CSE Tues, Thurs and Friday What is LLVM? ● Modular and reusable compiler technologies. ● Supports a variety of front-ends (C/C++/Fortran). ● Code can be generated for variety of targets (ARM/Alpha/X86). ● Pass framework is an important part of it ○ Modular and well separated from core compiler parts ○ Many transformations and optimization can be written as passes on intermediate representation (IR). ○ IR is also called llvm-bitcode. Running a sample program ● llvm-gcc is installed on andrew, hugo and wilma ● To use it add it to your path ○ csh/tcsh users ⚝ setenv PATH ¡y¡¢£¤f¥¥¡llvm¦gcc¦install¡bin §PATH ○ bash users ⚝ export PATH=¡y¡¢£¤f¥¥¡llvm¦gcc¦install¡bin §PATH ● Assuming LLVM tools (e.g. opt, llc) are already in your path Ɣ XTZWNP QnqP! pSLUXLNp¡N ■ llvm¦gcc ¦emit¦llvm knapsack¨c ¦c ¦o knapsack¨bc ■ llc knapsack¨profile¨bc ¦o knapsack¨profile¨s ■ g©© ¦o knapsack knapsack¨s ■ ¨¡knapsack Using profiling ● ,nserting 3rofiling ○ llvm¡gcc ¡emit¡llvm knapsack¢c ¡c ¡o knapsack¢bc ○ opt ¡insert¡edge¡profiling knapsack¢bc ¡o knapsack¢profile¢bc...
View Full Document

This note was uploaded on 12/26/2011 for the course EECS 583 taught by Professor Flinn during the Fall '08 term at University of Michigan.

Page1 / 9

583L3llvm - Using LLVM Daya S Khudia (uniqname: dskhudia)...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online