Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: lib/Target/R600/AMDGPUTargetMachine.cpp

Issue 183273009: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Target/R600/AMDGPUInstructions.td ('k') | lib/Target/R600/AMDILDeviceInfo.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- AMDGPUTargetMachine.cpp - TargetMachine for hw codegen targets-----===// 1 //===-- AMDGPUTargetMachine.cpp - TargetMachine for hw codegen targets-----===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 /// \file 10 /// \file
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 AMDGPUPassConfig::addPreISel() { 108 AMDGPUPassConfig::addPreISel() {
109 const AMDGPUSubtarget &ST = TM->getSubtarget<AMDGPUSubtarget>(); 109 const AMDGPUSubtarget &ST = TM->getSubtarget<AMDGPUSubtarget>();
110 if (ST.device()->getGeneration() > AMDGPUDeviceInfo::HD6XXX) { 110 if (ST.device()->getGeneration() > AMDGPUDeviceInfo::HD6XXX) {
111 addPass(createAMDGPUStructurizeCFGPass()); 111 addPass(createAMDGPUStructurizeCFGPass());
112 addPass(createSIAnnotateControlFlowPass()); 112 addPass(createSIAnnotateControlFlowPass());
113 } 113 }
114 return false; 114 return false;
115 } 115 }
116 116
117 bool AMDGPUPassConfig::addInstSelector() { 117 bool AMDGPUPassConfig::addInstSelector() {
118 addPass(createAMDGPUPeepholeOpt(*TM));
118 addPass(createAMDGPUISelDag(getAMDGPUTargetMachine())); 119 addPass(createAMDGPUISelDag(getAMDGPUTargetMachine()));
119 120
120 const AMDGPUSubtarget &ST = TM->getSubtarget<AMDGPUSubtarget>(); 121 const AMDGPUSubtarget &ST = TM->getSubtarget<AMDGPUSubtarget>();
121 if (ST.device()->getGeneration() <= AMDGPUDeviceInfo::HD6XXX) { 122 if (ST.device()->getGeneration() <= AMDGPUDeviceInfo::HD6XXX) {
122 // This callbacks this pass uses are not implemented yet on SI. 123 // This callbacks this pass uses are not implemented yet on SI.
123 addPass(createAMDGPUIndirectAddressingPass(*TM)); 124 addPass(createAMDGPUIndirectAddressingPass(*TM));
124 } 125 }
125 return false; 126 return false;
126 } 127 }
127 128
(...skipping 27 matching lines...) Expand all
155 addPass(&FinalizeMachineBundlesID); 156 addPass(&FinalizeMachineBundlesID);
156 addPass(createR600Packetizer(*TM)); 157 addPass(createR600Packetizer(*TM));
157 addPass(createR600ControlFlowFinalizer(*TM)); 158 addPass(createR600ControlFlowFinalizer(*TM));
158 } else { 159 } else {
159 addPass(createSILowerControlFlowPass(*TM)); 160 addPass(createSILowerControlFlowPass(*TM));
160 } 161 }
161 162
162 return false; 163 return false;
163 } 164 }
164 165
OLDNEW
« no previous file with comments | « lib/Target/R600/AMDGPUInstructions.td ('k') | lib/Target/R600/AMDILDeviceInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698