[LLVMdev] A few questions from a newbie

Bill Wendling isanbard at gmail.com
Mon Apr 20 11:24:12 PDT 2009


On Mon, Apr 20, 2009 at 9:45 AM, Peter Bacon <peter.b.bacon at gmail.com> wrote:
> I don't quite understand what the semantics of Pat in general. Could you
> please explain what
>
> def : Pat<(BfinWrapper (i32 tglobaladdr:$addr)),
>           (LOAD32imm tglobaladdr:$addr)>;
>
> means?
>
This means, in general terms, "when I see the pattern (BfinWrapper
(i32 tglobaladdr:$addr)), substitute that with (LOAD32imm
tglobaladdr:$addr)".

-bw




More information about the llvm-dev mailing list