summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/gallivm.cpp
diff options
context:
space:
mode:
authorZack Rusin <zack@pixel.(none)>2008-03-01 08:32:31 -0500
committerZack Rusin <[email protected]>2008-03-01 15:28:00 -0500
commit17f543fc4529ca4ce7f73a840ed0fb50d1fec925 (patch)
tree121d1aae6cbfe0ce4ea494c394cb2983228df9f6 /src/gallium/auxiliary/gallivm/gallivm.cpp
parente884c7ed9a14aabaa86f6710c594d20812ed11d9 (diff)
make the first builtin work (dp3)
Diffstat (limited to 'src/gallium/auxiliary/gallivm/gallivm.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/gallivm.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/gallivm.cpp b/src/gallium/auxiliary/gallivm/gallivm.cpp
index d14bb3b99a8..b6f641a3f86 100644
--- a/src/gallium/auxiliary/gallivm/gallivm.cpp
+++ b/src/gallium/auxiliary/gallivm/gallivm.cpp
@@ -306,11 +306,19 @@ struct gallivm_prog * gallivm_ir_compile(struct gallivm_ir *ir)
{
struct gallivm_prog *prog =
(struct gallivm_prog *)calloc(1, sizeof(struct gallivm_prog));
+
+ std::cout << "Before optimizations:"<<std::endl;
+ ir->module->dump();
+ std::cout<<"-------------------------------"<<std::endl;
+
+ PassManager veri;
+ veri.add(createVerifierPass());
+ veri.run(*ir->module);
llvm::Module *mod = llvm::CloneModule(ir->module);
prog->num_consts = ir->num_consts;
memcpy(prog->interpolators, ir->interpolators, sizeof(prog->interpolators));
prog->num_interp = ir->num_interp;
-
+
/* Run optimization passes over it */
PassManager passes;
passes.add(new TargetData(mod));