[LLVMdev] Predication on SIMD architectures and LLVM

陳韋任 (Wei-Ren Chen) chenwj at iis.sinica.edu.tw
Fri Oct 19 09:12:49 PDT 2012


Hi Marcello,

On Fri, Oct 19, 2012 at 04:38:29PM +0100, Marcello Maggioni wrote:
> Hello,
> I'm working on a compiler based on LLVM for a SIMD architecture that 
> supports instruction predication. We would like to implement branching 
> on this architecture using predication.
> As you know the LLVM-IR doesn't support instruction predication, so I'm 
> not exactly sure on what is the best way to implement it.
> We came up with some ways to do it in LLVM:

  I recall Ocelot [1], a binary translator which translates PTX into LLVM
also faces the same problem. You might want to take a look on what
Ocelot does.

HTH,
chenwj

[1] http://www.gdiamos.net/papers/ocelot-pact.pdf

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list