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

Side by Side Diff: src/IceTargetLowering.h

Issue 1397933002: Start incorporating the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit and add URL. Created 5 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/IceInstARM32.cpp ('k') | src/IceTargetLowering.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/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 /// \file 10 /// \file
(...skipping 10 matching lines...) Expand all
21 #ifndef SUBZERO_SRC_ICETARGETLOWERING_H 21 #ifndef SUBZERO_SRC_ICETARGETLOWERING_H
22 #define SUBZERO_SRC_ICETARGETLOWERING_H 22 #define SUBZERO_SRC_ICETARGETLOWERING_H
23 23
24 #include "IceDefs.h" 24 #include "IceDefs.h"
25 #include "IceInst.h" // for the names of the Inst subtypes 25 #include "IceInst.h" // for the names of the Inst subtypes
26 #include "IceOperand.h" 26 #include "IceOperand.h"
27 #include "IceTypes.h" 27 #include "IceTypes.h"
28 28
29 namespace Ice { 29 namespace Ice {
30 30
31 // UnimplementedError is defined as a macro so that we can get actual line
32 // numbers.
33 #define UnimplementedError(Flags) \
34 do { \
35 if (!static_cast<const ClFlags &>(Flags).getSkipUnimplemented()) { \
36 /* Use llvm_unreachable instead of report_fatal_error, which gives \
37 better stack traces. */ \
38 llvm_unreachable("Not yet implemented"); \
39 abort(); \
40 } \
41 } while (0)
42
31 /// LoweringContext makes it easy to iterate through non-deleted instructions in 43 /// LoweringContext makes it easy to iterate through non-deleted instructions in
32 /// a node, and insert new (lowered) instructions at the current point. Along 44 /// a node, and insert new (lowered) instructions at the current point. Along
33 /// with the instruction list container and associated iterators, it holds the 45 /// with the instruction list container and associated iterators, it holds the
34 /// current node, which is needed when inserting new instructions in order to 46 /// current node, which is needed when inserting new instructions in order to
35 /// track whether variables are used as single-block or multi-block. 47 /// track whether variables are used as single-block or multi-block.
36 class LoweringContext { 48 class LoweringContext {
37 LoweringContext(const LoweringContext &) = delete; 49 LoweringContext(const LoweringContext &) = delete;
38 LoweringContext &operator=(const LoweringContext &) = delete; 50 LoweringContext &operator=(const LoweringContext &) = delete;
39 51
40 public: 52 public:
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 virtual void lower() {} 473 virtual void lower() {}
462 474
463 protected: 475 protected:
464 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 476 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
465 GlobalContext *Ctx; 477 GlobalContext *Ctx;
466 }; 478 };
467 479
468 } // end of namespace Ice 480 } // end of namespace Ice
469 481
470 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 482 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698