[LLVMdev] Adding CFG edges for null pointer exceptions?

James Williams junk at giantblob.com
Sun Jan 31 14:36:49 PST 2010


Is it possible to add edges to the CFG from instructions that reference
memory to exception landing pads? I want to do this so that I can convert
SEGV signals into exceptions that can be safely unwound and caught. My
compiler's existing code generator handles this by having a combined memory
dereference and jump on null instruction. LLVM doesn't seem to have anything
similar - I was thinking I might simulate this by adding a new instrinsic
for potentially faulting memory references. Does anyone have any ideas on

-- James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100131/40a353a6/attachment.html>

More information about the llvm-dev mailing list