| 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. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "IceTypes.h" | 25 #include "IceTypes.h" |
| 26 #include "IceTypeConverter.h" | 26 #include "IceTypeConverter.h" |
| 27 #include "llvm/IR/Constant.h" | 27 #include "llvm/IR/Constant.h" |
| 28 #include "llvm/IR/Constants.h" | 28 #include "llvm/IR/Constants.h" |
| 29 #include "llvm/IR/DataLayout.h" | 29 #include "llvm/IR/DataLayout.h" |
| 30 #include "llvm/IR/Instruction.h" | 30 #include "llvm/IR/Instruction.h" |
| 31 #include "llvm/IR/Instructions.h" | 31 #include "llvm/IR/Instructions.h" |
| 32 #include "llvm/IR/LLVMContext.h" | 32 #include "llvm/IR/LLVMContext.h" |
| 33 #include "llvm/IR/Module.h" | 33 #include "llvm/IR/Module.h" |
| 34 | 34 |
| 35 | |
| 36 // TODO(kschimpf): Remove two namespaces being visible at once. | 35 // TODO(kschimpf): Remove two namespaces being visible at once. |
| 37 using namespace llvm; | 36 using namespace llvm; |
| 38 | 37 |
| 39 namespace { | 38 namespace { |
| 40 | 39 |
| 41 // Debugging helper | 40 // Debugging helper |
| 42 template <typename T> static std::string LLVMObjectAsString(const T *O) { | 41 template <typename T> static std::string LLVMObjectAsString(const T *O) { |
| 43 std::string Dump; | 42 std::string Dump; |
| 44 raw_string_ostream Stream(Dump); | 43 raw_string_ostream Stream(Dump); |
| 45 O->print(Stream); | 44 O->print(Stream); |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 Ctx->pushTimer(TimerID, StackID); | 900 Ctx->pushTimer(TimerID, StackID); |
| 902 } | 901 } |
| 903 LLVM2ICEFunctionConverter FunctionConverter(*this); | 902 LLVM2ICEFunctionConverter FunctionConverter(*this); |
| 904 FunctionConverter.convertFunction(&I); | 903 FunctionConverter.convertFunction(&I); |
| 905 if (TimeThisFunction) | 904 if (TimeThisFunction) |
| 906 Ctx->popTimer(TimerID, StackID); | 905 Ctx->popTimer(TimerID, StackID); |
| 907 } | 906 } |
| 908 } | 907 } |
| 909 | 908 |
| 910 } // end of namespace Ice | 909 } // end of namespace Ice |
| OLD | NEW |