search for: your_source

Displaying 2 results from an estimated 2 matches for "your_source".

2015 May 02
5
[LLVMdev] Modifying LoopUnrollingPass
Hi Zhoulai, I am trying to modify "LoopUnrollPass" in llvm which produces multiple copies of loop equal to the loop unroll factor.Currently, using multicore architecture, say 3 for example and the execution goes like: for 3 cores if there are 9 iterations of loop core instruction 1 0,3,6 2 1,4,7 3 2,5,8 But I want to to
2015 May 04
2
[LLVMdev] Modifying LoopUnrollingPass
...Now, when you get a list of passes to run before the vectorizer, you need > to get 'unoptimized' IR and run the passes on it - that should give you IR > just before the vectorizer. > > To get the unoptimized IR, you could use > clang -O3 -mllvm -disable-llvm-optzns -emit-llvm your_source.c -S -o > unoptimized_ir.ll > (Please note that we use "-O3 -mllvm -disable-llvm-optzns", not just "-O0" > - that allows us to run analysis passes, but not transformations) > > Now you run 'opt' with passes preceding the vectorizer to get IR before > ve...