CodeGen: Add MachineInstr::getMF(). NFC
authorJustin Bogner <mail@justinbogner.com>
Tue, 10 Oct 2017 23:34:01 +0000 (23:34 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 10 Oct 2017 23:34:01 +0000 (23:34 +0000)
commitec7cba53e616b63981e437d88dbf572510f45970
treebbd800ae7049a6de91cb25c1fcd6fc6cb6c4d40e
parent64b4bcfa05df59cb687c1c5309731257b224135f
CodeGen: Add MachineInstr::getMF(). NFC

Similarly to how Instruction has getFunction, this adds a less verbose
way to write MI->getParent()->getParent(). I'll follow up shortly with
a change that changes a bunch of the uses.

llvm-svn: 315388
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MachineInstr.cpp