[LLVMdev] Pointer "data direction"

Sebastian Dreßler dressler at zib.de
Wed Jan 9 06:10:33 PST 2013


suppose the following C function declaration:

    void f(int *in, int *out);

Now further suppose, that _in_ is an array only read from and _out_ is
an array that is only written to.

Based on this, I was wondering whether there is some already existing
LLVM pass (or maybe a part of a pass) that detects those "data
directions" for pointers. I'm not quite sure whether e.g. Alias Analysis
can provide me this information (I suppose it *cannot*).

Best regards,

Mit freundlichen Grüßen / Kind regards

Sebastian Dreßler

Zuse Institute Berlin (ZIB)
Takustraße 7
D-14195 Berlin-Dahlem

dressler at zib.de
Phone: +49 30 84185-261


More information about the llvm-dev mailing list