[LLVMdev] For the avoidance of doubt...
Chris Lattner
sabre at nondot.org
Mon Jul 30 11:58:15 PDT 2007
On Mon, 30 Jul 2007, Sarah Thompson wrote:
> Would it be feasible to lower all intrinsics (other than, say, debugging
> intrinsics) as an opt pass, in a similar way to the intrinsic lowering
> that was in the non-JITted interpreter? I don't really care too much
> about the performance hit that this would cause because of the added
> 'correctness' it would give, if you see what I mean.
Check out the IntrinsicLowering class. It can lower some of them (e.g.
popcount to individual operations, llvm.memset to memset), but it does not
lower all of them IIRC. It is used by the C backend and the interpreter
implicitly I think.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list