[LLVMdev] About implementing new intrinsic
dpatel at apple.com
Mon Apr 2 10:15:33 PDT 2007
On Mar 31, 2007, at 6:34 AM, Ferad Zyulkyarov wrote:
> I want to implement a new intrinsic in llvm that will denote a
> parallel section within a function.
What parallelization model are you implementing ?
> I followed the documentation for
> extending llvm (http://llvm.org/docs/ExtendingLLVM.html) but there is
> something about the working mechanism that is not clear for me.
> 1. Why do we have to add support for the C backend? Is this only
> necessary to transform the llvm assembly (bytecode) into C code by
> using the library APIs?
> 2. Is the support that we add for the specific target the one that
> takes part in generating the target specific code (native) from the
> llvm bytecode?
> 3. Can I introduce an intrinsic that is actually a call to my function
> that implements the logic? I suppose it is possible but unfortunately
> I couldn't figure it out. For example, in GCC we can write an
> intrinsic that translates to a C code.
> Ferad Zyulkyarov
> Barcelona Supercomputing Center
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev