bool-ifying xe::cpu

This commit is contained in:
Ben Vanik
2015-05-05 17:21:08 -07:00
parent a38b05db24
commit ade5388728
67 changed files with 270 additions and 347 deletions

View File

@@ -69,7 +69,7 @@ RegisterAllocationPass::~RegisterAllocationPass() {
}
}
int RegisterAllocationPass::Run(HIRBuilder* builder) {
bool RegisterAllocationPass::Run(HIRBuilder* builder) {
// Simple per-block allocator that operates on SSA form.
// Registers do not move across blocks, though this could be
// optimized with some intra-block analysis (dominators/etc).
@@ -151,7 +151,7 @@ int RegisterAllocationPass::Run(HIRBuilder* builder) {
// Unable to spill anything - this shouldn't happen.
XELOGE("Unable to spill any registers");
assert_always();
return 1;
return false;
}
// Demand allocation.
@@ -159,7 +159,7 @@ int RegisterAllocationPass::Run(HIRBuilder* builder) {
// Boned.
XELOGE("Register allocation failed");
assert_always();
return 1;
return false;
}
}
}
@@ -169,7 +169,7 @@ int RegisterAllocationPass::Run(HIRBuilder* builder) {
block = block->next;
}
return 0;
return true;
}
void RegisterAllocationPass::DumpUsage(const char* name) {