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

Unified Diff: src/IceCfg.cpp

Issue 1516753008: Subzero: Use "auto" per (unwritten) auto coding style. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More <cast> instances without the llvm:: prefix Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfg.h ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index dd8416fdae7937f38c982e9b98d397548d6d6a00..f9eeb98172a7ff482f33a0dcd66faf3bc574af66 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -63,7 +63,7 @@ void Cfg::setError(const IceString &Message) {
CfgNode *Cfg::makeNode() {
SizeT LabelIndex = Nodes.size();
- CfgNode *Node = CfgNode::create(this, LabelIndex);
+ auto *Node = CfgNode::create(this, LabelIndex);
Nodes.push_back(Node);
return Node;
}
@@ -104,7 +104,7 @@ constexpr char BlockStatsGlobalPrefix[] = ".L$profiler$block_info$";
VariableDeclaration *nodeNameDeclaration(GlobalContext *Ctx,
const IceString &NodeAsmName) {
- VariableDeclaration *Var = VariableDeclaration::create(Ctx);
+ auto *Var = VariableDeclaration::create(Ctx);
Var->setName(BlockNameGlobalPrefix + NodeAsmName);
Var->setIsConstant(true);
Var->addInitializer(VariableDeclaration::DataInitializer::create(
@@ -117,7 +117,7 @@ VariableDeclaration *nodeNameDeclaration(GlobalContext *Ctx,
VariableDeclaration *
blockProfilingInfoDeclaration(GlobalContext *Ctx, const IceString &NodeAsmName,
VariableDeclaration *NodeNameDeclaration) {
- VariableDeclaration *Var = VariableDeclaration::create(Ctx);
+ auto *Var = VariableDeclaration::create(Ctx);
Var->setName(BlockStatsGlobalPrefix + NodeAsmName);
const SizeT Int64ByteSize = typeWidthInBytes(IceType_i64);
Var->addInitializer(
@@ -526,7 +526,7 @@ void Cfg::sortAndCombineAllocas(CfgVector<Inst *> &Allocas,
auto *Alloca = llvm::cast<InstAlloca>(Allocas[i]);
// Emit a fake definition of the rematerializable variable.
Variable *Dest = Alloca->getDest();
- InstFakeDef *Def = InstFakeDef::create(this, Dest);
+ auto *Def = InstFakeDef::create(this, Dest);
if (BaseVariableType == BVT_StackPointer)
Dest->setRematerializable(getTarget()->getStackReg(), Offsets[i]);
else
« no previous file with comments | « src/IceCfg.h ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698