[LLVMdev] Need guidance regarding MachineFunctionPass

Tim Northover t.p.northover at gmail.com
Wed Oct 8 10:23:30 PDT 2014


On 8 October 2014 10:18, sachin arora <sachin345678 at gmail.com> wrote:
> Thank you Mr. Tim. I was wondering if you can tell me in which file 'get()'
> is defined. I am having trouble using this function. For example if I write
> 'get(AArch64::LDRXui)' then there is an error generated which says: use of
> undeclared identifier 'get'.

It's defined in the MCInstrInfo class, usually accessed via a
TargetInstrInfo instance (so you often see "TII.get(Whatever)" if it's
used outside a TargetInstrInfo subclass).

Cheers.

Tim.



More information about the llvm-dev mailing list