[LLVMdev] [RFC/PATCH] IntrinsicLowering improvements

Peter Collingbourne peter at pcc.me.uk
Tue Jun 22 13:12:36 PDT 2010


This is more of an RFC than for committing (hence the post to
llvmdev) but I'd like to have some opinions on these improvements
to IntrinsicLowering before I go ahead and implement the rest of
the intrinsics.

My main motivation for the single-thread lowering is to be able to run
code that uses these intrinsics in the KLEE symbolic execution engine
but I imagine it could have other uses such as a whole-program LTO
that lowers atomic operations to more efficient non-atomic operations
when it is known to be safe to do so.

The LowerIntrinsicCall method would need to be refactored into
multiple methods I think, but I'm not sure about the granularity.
Do we need more than standard and single-thread?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-for-lowering-atomic-intrinsics-in-single-thr.patch
Type: text/x-diff
Size: 4538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100622/988cc188/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-a-Silent-parameter-to-IntrinsicLowering-LowerInt.patch
Type: text/x-diff
Size: 2925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100622/988cc188/attachment-0001.patch>

More information about the llvm-dev mailing list