| OLD | NEW |
| 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// | 1 //===- subzero/src/IceCfg.cpp - Control flow graph 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 Cfg class, including constant pool | 10 // This file implements the Cfg class, including constant pool |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "IceOperand.h" | 21 #include "IceOperand.h" |
| 22 #include "IceTargetLowering.h" | 22 #include "IceTargetLowering.h" |
| 23 | 23 |
| 24 namespace Ice { | 24 namespace Ice { |
| 25 | 25 |
| 26 Cfg::Cfg(GlobalContext *Ctx) | 26 Cfg::Cfg(GlobalContext *Ctx) |
| 27 : Ctx(Ctx), FunctionName(""), ReturnType(IceType_void), | 27 : Ctx(Ctx), FunctionName(""), ReturnType(IceType_void), |
| 28 IsInternalLinkage(false), HasError(false), ErrorMessage(""), Entry(NULL), | 28 IsInternalLinkage(false), HasError(false), ErrorMessage(""), Entry(NULL), |
| 29 NextInstNumber(1), Live(NULL), | 29 NextInstNumber(1), Live(NULL), |
| 30 Target(TargetLowering::createLowering(Ctx->getTargetArch(), this)), | 30 Target(TargetLowering::createLowering(Ctx->getTargetArch(), this)), |
| 31 TargetAssembler( |
| 32 TargetLowering::createAssembler(Ctx->getTargetArch(), this)), |
| 31 CurrentNode(NULL) {} | 33 CurrentNode(NULL) {} |
| 32 | 34 |
| 33 Cfg::~Cfg() {} | 35 Cfg::~Cfg() {} |
| 34 | 36 |
| 35 void Cfg::setError(const IceString &Message) { | 37 void Cfg::setError(const IceString &Message) { |
| 36 HasError = true; | 38 HasError = true; |
| 37 ErrorMessage = Message; | 39 ErrorMessage = Message; |
| 38 Ctx->getStrDump() << "ICE translation error: " << ErrorMessage << "\n"; | 40 Ctx->getStrDump() << "ICE translation error: " << ErrorMessage << "\n"; |
| 39 } | 41 } |
| 40 | 42 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; | 385 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; |
| 384 ++I) { | 386 ++I) { |
| 385 (*I)->dump(this); | 387 (*I)->dump(this); |
| 386 } | 388 } |
| 387 if (getContext()->isVerbose(IceV_Instructions)) { | 389 if (getContext()->isVerbose(IceV_Instructions)) { |
| 388 Str << "}\n"; | 390 Str << "}\n"; |
| 389 } | 391 } |
| 390 } | 392 } |
| 391 | 393 |
| 392 } // end of namespace Ice | 394 } // end of namespace Ice |
| OLD | NEW |