[llvm-dev] [X86] How to query for Opcode type?

Nivas Valli via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 20 20:30:50 PDT 2017


Hi,

I would like to query the X86InstrInfo tables to determine if a given
opcode is a load or store from stack. I see functions
isFrameLoadOpcode and isFrameStoreOpcode
in lib/Target/X86/X86InstrInfo.cpp that would provide the functionality I
am looking for.

However, these functions are static.

What is the recommended way to perform such queries for a MachineInstr -
short of replicating the logic from X86InstrInfo.cpp in my tool that links
to llvm libraries?

Thanks,

Bharadwaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171020/dc32db4b/attachment.html>


More information about the llvm-dev mailing list