summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/gallivm.cpp
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-05-15 17:46:20 -0400
committerZack Rusin <[email protected]>2008-05-17 13:58:44 -0400
commit59766ac273c426557b7790b0fcb566c8095fd820 (patch)
treefb2e73a60a028e6c4bc9e6431eedc8733d66cd27 /src/gallium/auxiliary/gallivm/gallivm.cpp
parent735752e8dceeec9b202147d1d19ef3dc70e08673 (diff)
llvm: implement sub and abs
Diffstat (limited to 'src/gallium/auxiliary/gallivm/gallivm.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/gallivm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/gallivm.cpp b/src/gallium/auxiliary/gallivm/gallivm.cpp
index 48a3b18cdc9..77900e342b1 100644
--- a/src/gallium/auxiliary/gallivm/gallivm.cpp
+++ b/src/gallium/auxiliary/gallivm/gallivm.cpp
@@ -303,11 +303,11 @@ 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);
@@ -315,7 +315,7 @@ struct gallivm_prog * gallivm_ir_compile(struct gallivm_ir *ir)
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));