diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-03 21:54:00 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-03 21:54:00 +0000 |
commit | a52391f2dbff6f93bc29158d9d085ad15cc796ec (patch) | |
tree | ca589cd808674b06e1d5624d388ac31ed1fb5f55 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 250e050a50e4596ead4dfaf51975f37680d129ac (diff) | |
download | bcm5719-llvm-a52391f2dbff6f93bc29158d9d085ad15cc796ec.tar.gz bcm5719-llvm-a52391f2dbff6f93bc29158d9d085ad15cc796ec.zip |
DAG: Provide access to Pass instance from SelectionDAG
This allows accessing an analysis pass during lowering.
llvm-svn: 309991
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index a396f3368cf..c052bc64d7d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -892,8 +892,10 @@ SelectionDAG::SelectionDAG(const TargetMachine &tm, CodeGenOpt::Level OL) } void SelectionDAG::init(MachineFunction &NewMF, - OptimizationRemarkEmitter &NewORE) { + OptimizationRemarkEmitter &NewORE, + Pass *PassPtr) { MF = &NewMF; + SDAGISelPass = PassPtr; ORE = &NewORE; TLI = getSubtarget().getTargetLowering(); TSI = getSubtarget().getSelectionDAGInfo(); |