OLD | NEW |
1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===// | 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
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 // This file implements the skeleton of the TargetLowering class, | 10 // This file implements the skeleton of the TargetLowering class, |
11 // specifically invoking the appropriate lowering method for a given | 11 // specifically invoking the appropriate lowering method for a given |
12 // instruction kind and driving global register allocation. It also | 12 // instruction kind and driving global register allocation. It also |
13 // implements the non-deleted instruction iteration in | 13 // implements the non-deleted instruction iteration in |
14 // LoweringContext. | 14 // LoweringContext. |
15 // | 15 // |
16 //===----------------------------------------------------------------------===// | 16 //===----------------------------------------------------------------------===// |
17 | 17 |
18 #include "llvm/Support/CommandLine.h" | 18 #include "llvm/Support/CommandLine.h" |
19 | 19 |
20 #include "assembler_ia32.h" | 20 #include "assembler_ia32.h" |
21 #include "IceCfg.h" // setError() | 21 #include "IceCfg.h" // setError() |
22 #include "IceCfgNode.h" | 22 #include "IceCfgNode.h" |
| 23 #include "IceGlobalInits.h" |
23 #include "IceOperand.h" | 24 #include "IceOperand.h" |
24 #include "IceRegAlloc.h" | 25 #include "IceRegAlloc.h" |
25 #include "IceTargetLowering.h" | 26 #include "IceTargetLowering.h" |
26 #include "IceTargetLoweringX8632.h" | 27 #include "IceTargetLoweringX8632.h" |
27 | 28 |
28 namespace Ice { | 29 namespace Ice { |
29 | 30 |
30 namespace { | 31 namespace { |
31 | 32 |
32 // TODO(stichnot): Move this machinery into llvm2ice.cpp. | 33 // TODO(stichnot): Move this machinery into llvm2ice.cpp. |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 if (Target == Target_ARM64) | 268 if (Target == Target_ARM64) |
268 return IceTargetGlobalInitARM64::create(Ctx); | 269 return IceTargetGlobalInitARM64::create(Ctx); |
269 #endif | 270 #endif |
270 llvm_unreachable("Unsupported target"); | 271 llvm_unreachable("Unsupported target"); |
271 return nullptr; | 272 return nullptr; |
272 } | 273 } |
273 | 274 |
274 TargetGlobalInitLowering::~TargetGlobalInitLowering() {} | 275 TargetGlobalInitLowering::~TargetGlobalInitLowering() {} |
275 | 276 |
276 } // end of namespace Ice | 277 } // end of namespace Ice |
OLD | NEW |