[LLVMdev] Querying instruction classes
Jim Grosbach
grosbach at apple.com
Mon Nov 28 17:21:08 PST 2011
Hello,
I believe MCInstrDesc::getSchedClass() is what you're looking for.
-Jim
On Nov 28, 2011, at 5:03 PM, Evandro Menezes wrote:
> I'd appreciate some help in figuring out how to determine which
> InstrItinClass an instruction belongs to.
>
> For example, an InstrItinClass is defined in Schedule.td as:
>
> def FOO : InstrItinClass;
>
> Which is then used to build an InstrItinData in ProcessorItineraries and
> to specify the class of a particular instruction.
>
> I'd like to find out from a given instruction which class it belongs to,
> "FOO" or any other.
>
> TIA
>
> --
> Evandro Menezes Austin, TX emenezes at codeaurora.org
> Qualcomm Innovation Center, Inc is a member of Code Aurora Forum
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list