[LLVMdev] GetElementPtr

Eli Friedman eli.friedman at gmail.com
Thu Dec 8 18:45:04 PST 2011


On Thu, Dec 8, 2011 at 6:07 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Eli,
>
>    Ok, thanks, this is a big help. So how can I use the TargetData (or get
> the TargetData) without having a DAG?

If you're writing a transformation pass, just write
"getAnalysisIfAvailable<TargetData>()" to get a TargetData*.

-Eli




More information about the llvm-dev mailing list