[LLVMdev] question about readnone

Eli Friedman eli.friedman at gmail.com
Fri Oct 15 11:25:34 PDT 2010


On Fri, Oct 15, 2010 at 10:20 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:
> Hi!
>
> if I have a function with readnone attribute.
> is it then allowed to access an "internal constant"
> which is defined outside the function in llvm ir assembly?

Yes, that's allowed; see http://llvm.org/docs/LangRef.html#fnattrs for
the full definition.

-Eli



More information about the llvm-dev mailing list