From: Daniel Dunbar Date: Thu, 13 Nov 2008 22:49:41 +0000 (+0000) Subject: Start a "hacking" page with some simple notes on getting started X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d7c3f954b5cb1f75f95ddb0199dd43136642a94;p=clang Start a "hacking" page with some simple notes on getting started developing clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59270 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/www/hacking.html b/www/hacking.html new file mode 100644 index 0000000000..d70538dd0b --- /dev/null +++ b/www/hacking.html @@ -0,0 +1,82 @@ + + + + + + Hacking on clang + + + + + +
+ +

Hacking on Clang

+ + +

This document provides some hints for how to get started hacking + on Clang for developers who are new to the Clang and/or LLVM + codebases. +

+

+ + +

Developer Documentation

+ + +

Both Clang and LLVM use doxygen to provide API documentation. Their + respective web pages (generated nightly) are here: +

+

+ +

For work on the LLVM IR generation, the LLVM assembly language + reference manual is + also useful.

+ + +

Debugging

+ + +

Inspecting data structures in a debugger: +

+

+ + +

LLVM IR Generation

+ + +

The LLVM IR generation part of clang handles conversion of the + AST nodes output by the Sema module to the LLVM Intermediate + Representation (IR). Historically, this was referred to as + "codegen", and the Clang code for this lives + in lib/CodeGen.

+ +

The output is most easily inspected using the -emit-llvm + option to clang (possibly in conjunction with -o -). You + can also use -emit-llvm-bc to write an LLVM bitcode file + which can be processed by the suite of LLVM tools + like llvm-dis, llvm-nm, etc. See the LLVM + Command Guide + for more information.

+ +
+ + diff --git a/www/menu.html.incl b/www/menu.html.incl index 679e34a788..03b0967c98 100644 --- a/www/menu.html.incl +++ b/www/menu.html.incl @@ -12,6 +12,7 @@ Get Involved C++ Status Clang Internals + Hacking on Clang Performance