Skip to content

Commit

Permalink
Update2
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojbao committed Aug 29, 2024
1 parent 689c795 commit 3e71e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lgc/patch/LowerPopsInterlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ PreservedAnalyses LowerPopsInterlock::run(Function &func, FunctionAnalysisManage
return m_changed ? PreservedAnalyses::none() : PreservedAnalyses::all();
}

// =====================================================================================================================
LowerPopsInterlock::~LowerPopsInterlock() {
delete m_builder;
}

// =====================================================================================================================
// Legalize POPS interlock operations.
//
Expand Down
4 changes: 2 additions & 2 deletions lgc/patch/LowerPopsInterlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class PipelineState;

class LowerPopsInterlock : public llvm::PassInfoMixin<LowerPopsInterlock> {
public:
~LowerPopsInterlock();

llvm::PreservedAnalyses run(llvm::Function &func, llvm::FunctionAnalysisManager &funcAnalysisManager);

static llvm::StringRef name() { return "Lower POPS interlock operations"; }

~LowerPopsInterlock() { delete m_builder; }

private:
void legalizeInterlock(llvm::FunctionAnalysisManager &funcAnalysisManager);
void collectBeginInterlock(PopsBeginInterlockOp &popsBeginInterlockOp);
Expand Down

0 comments on commit 3e71e20

Please sign in to comment.