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

Side by Side Diff: src/IceTranslator.h

Issue 512933006: LLVM 3.5 merge: Subzero (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 6 years, 2 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 | « src/IceOperand.h ('k') | src/IceTranslator.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 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- C++ -*-===// 1 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- C++ -*-===//
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 declares the general driver class for translating ICE to 10 // This file declares the general driver class for translating ICE to
11 // machine code. 11 // machine code.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H 15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H
16 #define SUBZERO_SRC_ICETRANSLATOR_H 16 #define SUBZERO_SRC_ICETRANSLATOR_H
17 17
18 #include "llvm/ADT/OwningPtr.h" 18 #include "llvm/Support/Compiler.h"
19
20 #include <memory>
19 21
20 namespace llvm { 22 namespace llvm {
21 class Module; 23 class Module;
22 } 24 }
23 25
24 namespace Ice { 26 namespace Ice {
25 27
26 class ClFlags; 28 class ClFlags;
27 class Cfg; 29 class Cfg;
28 class GlobalContext; 30 class GlobalContext;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // otherwise. 70 // otherwise.
69 bool ErrorStatus; 71 bool ErrorStatus;
70 // Ideally, Func would be inside the methods that converts IR to 72 // Ideally, Func would be inside the methods that converts IR to
71 // functions. However, emitting the constant pool requires a valid 73 // functions. However, emitting the constant pool requires a valid
72 // Cfg object, so we need to defer deleting the last non-empty Cfg 74 // Cfg object, so we need to defer deleting the last non-empty Cfg
73 // object to emit the constant pool (via emitConstants). TODO: 75 // object to emit the constant pool (via emitConstants). TODO:
74 // Since all constants are globally pooled in the GlobalContext 76 // Since all constants are globally pooled in the GlobalContext
75 // object, change all Constant related functions to use 77 // object, change all Constant related functions to use
76 // GlobalContext instead of Cfg, and then make emitConstantPool use 78 // GlobalContext instead of Cfg, and then make emitConstantPool use
77 // that. 79 // that.
78 llvm::OwningPtr<Cfg> Func; 80 std::unique_ptr<Cfg> Func;
79 81
80 private: 82 private:
81 Translator(const Translator &) LLVM_DELETED_FUNCTION; 83 Translator(const Translator &) LLVM_DELETED_FUNCTION;
82 Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION; 84 Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION;
83 }; 85 };
84 } 86 }
85 87
86 #endif // SUBZERO_SRC_ICETRANSLATOR_H 88 #endif // SUBZERO_SRC_ICETRANSLATOR_H
OLDNEW
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698