diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-03-12 22:06:51 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-03-12 22:06:51 -0400 |
commit | 2366bb1baf2e9ae5b6ecf19f66ae9e0a4b0d2f36 (patch) | |
tree | c0f990cc42d1c1043d73f2d3e43220c30dfd34dc | |
parent | a1d56728655a3fc87360b45ac8b348bcfdf6ac15 (diff) |
Add some basic documentation for gallivm code
-rw-r--r-- | src/gallium/auxiliary/gallivm/gallivm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/gallivm.h b/src/gallium/auxiliary/gallivm/gallivm.h index 57912a952f..b4d6555d2f 100644 --- a/src/gallium/auxiliary/gallivm/gallivm.h +++ b/src/gallium/auxiliary/gallivm/gallivm.h @@ -33,6 +33,16 @@ #ifndef GALLIVM_H #define GALLIVM_H +/* + LLVM representation consists of two stages - layout independent + intermediate representation gallivm_ir and driver specific + gallivm_prog. TGSI is first being translated into gallivm_ir + after that driver can set number of options on gallivm_ir and + have it compiled into gallivm_prog. gallivm_prog can be either + executed (assuming there's LLVM JIT backend for the current + target) or machine code generation can be done (assuming there's + a LLVM code generator for thecurrent target) + */ #if defined __cplusplus extern "C" { #endif |