[#llvm-getOpcodeDef-077] = xref:llvm.adoc[llvm]::getOpcodeDef :relfileprefix: ../ :mrdocs: See if Reg is defined by an single def instruction that is Opcode. Also try to do trivial folding if it's a COPY with same types. Returns null otherwise. == Synopsis Declared in `<llvm/CodeGen/GlobalISel/Utils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/MachineInstr.adoc[MachineInstr]* getOpcodeDef( unsigned int Opcode, xref:llvm/Register.adoc[Register] Reg, xref:llvm/MachineRegisterInfo.adoc[MachineRegisterInfo] const& MRI); ---- == Return Value The defining instruction matching `Opcode,` or nullptr. == Parameters [cols="1,4"] |=== | Name| Description | *Opcode* | Opcode that the defining instruction must match. | *Reg* | Virtual register whose defining instruction is inspected. | *MRI* | Register information for the function. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#