summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/gallivm.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-03-12 22:06:51 -0400
committerZack Rusin <[email protected]>2008-03-12 22:06:51 -0400
commit2366bb1baf2e9ae5b6ecf19f66ae9e0a4b0d2f36 (patch)
treec0f990cc42d1c1043d73f2d3e43220c30dfd34dc /src/gallium/auxiliary/gallivm/gallivm.h
parenta1d56728655a3fc87360b45ac8b348bcfdf6ac15 (diff)
Add some basic documentation for gallivm code
Diffstat (limited to 'src/gallium/auxiliary/gallivm/gallivm.h')
-rw-r--r--src/gallium/auxiliary/gallivm/gallivm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/gallivm.h b/src/gallium/auxiliary/gallivm/gallivm.h
index 57912a952fb..b4d6555d2fc 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