diff options
author | Christoph Bumiller <[email protected]> | 2012-03-28 21:30:59 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 21:54:00 +0200 |
commit | c04d6d95e0efb8eea4d788d8d7b629209a3afaea (patch) | |
tree | 21228e276d22925cd342b897c8cb86d9a4b6da24 /src/gallium/drivers/nv50/codegen/nv50_ir.h | |
parent | 0056e1b9889ce9cdf3669e5ebc02638e5acc448e (diff) |
nv50/ir: add function for splitting a BasicBlock
Fixes to initial implementation by Francisco Jerez.
Diffstat (limited to 'src/gallium/drivers/nv50/codegen/nv50_ir.h')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir.h b/src/gallium/drivers/nv50/codegen/nv50_ir.h index cf7bd3c0d05..04ea5e6d5a9 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir.h +++ b/src/gallium/drivers/nv50/codegen/nv50_ir.h @@ -882,6 +882,10 @@ public: BasicBlock *idom() const; + // NOTE: currently does not rebuild the dominator tree + BasicBlock *splitBefore(Instruction *, bool attach = true); + BasicBlock *splitAfter(Instruction *, bool attach = true); + DLList& getDF() { return df; } DLList::Iterator iterDF() { return df.iterator(); } @@ -914,6 +918,8 @@ private: private: Function *func; Program *program; + + void splitCommon(Instruction *, BasicBlock *, bool attach); }; class Function |