[llvm-dev] How does sanitizers in compiler-rt work?

Dipanjan Das via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 16 04:11:14 PDT 2017


Can anybody give me any pointer on how compiler-rt, especially the
sanitizers work? Do they operate on IR as any other LLVM pass? Or are they
integral part of the frontend itself? I couldn't spot any documentation on
the internals of compiler-rt project? What happens (sequence of actions)
when I pass -fsanitizer=dataflow to clang?

Precisely, I intend to alter the behaviour of DFSan to suit my need.
Therefore, I need to know how it gets integrated in the tool-chain.
Initially, my idea was to insert the dfsan_set_label() calls to the IR and
pass it to DFSan. However, I am not sure if it's designed to run on the
source only, not on IR.

-- 

Thanks & Regards,
Dipanjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170616/13288783/attachment.html>


More information about the llvm-dev mailing list