[PATCH] D123964: CodeGen: Replace some uses of LLVMTargetMachine with TargetMachine

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 16:20:44 PDT 2022


arsenm created this revision.
arsenm added reviewers: echristo, rnk, void, MatzeB, qcolombet, craig.topper.
Herald added subscribers: mattd, gchakrabarti, asavonic, StephenFan, hiraditya, dschuff, jholewinski.
Herald added a project: All.
arsenm requested review of this revision.
Herald added subscribers: aheejin, wdng.
Herald added a project: LLVM.

All target knowledge should be in the TargetMachine base
class. LLVMTargetMachine extends with pass machinery, which most code
should not have access to.


https://reviews.llvm.org/D123964

Files:
  llvm/include/llvm/CodeGen/MachineFunction.h
  llvm/include/llvm/CodeGen/MachineModuleInfo.h
  llvm/include/llvm/CodeGen/RegisterUsageInfo.h
  llvm/include/llvm/CodeGen/ScheduleDAG.h
  llvm/include/llvm/Target/TargetMachine.h
  llvm/lib/CodeGen/MIRParser/MIRParser.cpp
  llvm/lib/CodeGen/MachineFunction.cpp
  llvm/lib/CodeGen/MachineModuleInfo.cpp
  llvm/lib/CodeGen/RegUsageInfoCollector.cpp
  llvm/lib/CodeGen/RegisterUsageInfo.cpp
  llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123964.423483.patch
Type: text/x-patch
Size: 13636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220418/f3fa6d69/attachment.bin>


More information about the llvm-commits mailing list