Merge pull request #2083 from ReinUsesLisp/shader-ir-cbuf-tracking
shader/track: Add a more permissive global memory tracking
This commit is contained in:
commit
f09d1dffd1
30 changed files with 140 additions and 126 deletions
|
@ -171,7 +171,7 @@ public:
|
|||
code.AddLine(fmt::format("case 0x{:x}u: {{", address));
|
||||
++code.scope;
|
||||
|
||||
VisitBasicBlock(bb);
|
||||
VisitBlock(bb);
|
||||
|
||||
--code.scope;
|
||||
code.AddLine('}');
|
||||
|
@ -423,7 +423,7 @@ private:
|
|||
code.AddNewLine();
|
||||
}
|
||||
|
||||
void VisitBasicBlock(const BasicBlock& bb) {
|
||||
void VisitBlock(const NodeBlock& bb) {
|
||||
for (const Node node : bb) {
|
||||
if (const std::string expr = Visit(node); !expr.empty()) {
|
||||
code.AddLine(expr);
|
||||
|
@ -575,7 +575,7 @@ private:
|
|||
code.AddLine("if (" + Visit(conditional->GetCondition()) + ") {");
|
||||
++code.scope;
|
||||
|
||||
VisitBasicBlock(conditional->GetCode());
|
||||
VisitBlock(conditional->GetCode());
|
||||
|
||||
--code.scope;
|
||||
code.AddLine('}');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue