| OLD | NEW |
| 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===// | 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===// |
| 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 LLVM to ICE converter. | 10 // This file implements the LLVM to ICE converter. |
| 11 // | 11 // |
| 12 //===----------------------------------------------------------------------===// | 12 //===----------------------------------------------------------------------===// |
| 13 | 13 |
| 14 #include <iostream> | 14 #include "IceConverter.h" |
| 15 | |
| 16 #include "llvm/IR/Constant.h" | |
| 17 #include "llvm/IR/Constants.h" | |
| 18 #include "llvm/IR/DataLayout.h" | |
| 19 #include "llvm/IR/Instruction.h" | |
| 20 #include "llvm/IR/Instructions.h" | |
| 21 #include "llvm/IR/LLVMContext.h" | |
| 22 #include "llvm/IR/Module.h" | |
| 23 | 15 |
| 24 #include "IceCfg.h" | 16 #include "IceCfg.h" |
| 25 #include "IceCfgNode.h" | 17 #include "IceCfgNode.h" |
| 26 #include "IceClFlags.h" | 18 #include "IceClFlags.h" |
| 27 #include "IceConverter.h" | |
| 28 #include "IceDefs.h" | 19 #include "IceDefs.h" |
| 29 #include "IceGlobalContext.h" | 20 #include "IceGlobalContext.h" |
| 30 #include "IceGlobalInits.h" | 21 #include "IceGlobalInits.h" |
| 31 #include "IceInst.h" | 22 #include "IceInst.h" |
| 32 #include "IceOperand.h" | 23 #include "IceOperand.h" |
| 33 #include "IceTargetLowering.h" | 24 #include "IceTargetLowering.h" |
| 34 #include "IceTypes.h" | 25 #include "IceTypes.h" |
| 35 #include "IceTypeConverter.h" | 26 #include "IceTypeConverter.h" |
| 27 #include "llvm/IR/Constant.h" |
| 28 #include "llvm/IR/Constants.h" |
| 29 #include "llvm/IR/DataLayout.h" |
| 30 #include "llvm/IR/Instruction.h" |
| 31 #include "llvm/IR/Instructions.h" |
| 32 #include "llvm/IR/LLVMContext.h" |
| 33 #include "llvm/IR/Module.h" |
| 34 |
| 36 | 35 |
| 37 // TODO(kschimpf): Remove two namespaces being visible at once. | 36 // TODO(kschimpf): Remove two namespaces being visible at once. |
| 38 using namespace llvm; | 37 using namespace llvm; |
| 39 | 38 |
| 40 namespace { | 39 namespace { |
| 41 | 40 |
| 42 // Debugging helper | 41 // Debugging helper |
| 43 template <typename T> static std::string LLVMObjectAsString(const T *O) { | 42 template <typename T> static std::string LLVMObjectAsString(const T *O) { |
| 44 std::string Dump; | 43 std::string Dump; |
| 45 raw_string_ostream Stream(Dump); | 44 raw_string_ostream Stream(Dump); |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 Ctx->pushTimer(TimerID, StackID); | 901 Ctx->pushTimer(TimerID, StackID); |
| 903 } | 902 } |
| 904 LLVM2ICEFunctionConverter FunctionConverter(*this); | 903 LLVM2ICEFunctionConverter FunctionConverter(*this); |
| 905 FunctionConverter.convertFunction(&I); | 904 FunctionConverter.convertFunction(&I); |
| 906 if (TimeThisFunction) | 905 if (TimeThisFunction) |
| 907 Ctx->popTimer(TimerID, StackID); | 906 Ctx->popTimer(TimerID, StackID); |
| 908 } | 907 } |
| 909 } | 908 } |
| 910 | 909 |
| 911 } // end of namespace Ice | 910 } // end of namespace Ice |
| OLD | NEW |