-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0103272
commit 909edfc
Showing
3 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
// | ||
// Created by mike on 1/10/25. | ||
// | ||
#pragma once | ||
|
||
#ifndef PEEPHOLE_LOAD_ELIMINATION_H | ||
#define PEEPHOLE_LOAD_ELIMINATION_H | ||
#include <luisa/core/dll_export.h> | ||
#include <luisa/core/stl/unordered_map.h> | ||
|
||
#endif //PEEPHOLE_LOAD_ELIMINATION_H | ||
namespace luisa::compute::xir { | ||
|
||
class LoadInst; | ||
class Function; | ||
class Module; | ||
|
||
struct LocalLoadEliminationInfo { | ||
luisa::unordered_map<LoadInst *, LoadInst *> eliminated_instructions; | ||
}; | ||
|
||
[[nodiscard]] LC_XIR_API LocalLoadEliminationInfo local_load_elimination_pass_run_on_function(Function *function) noexcept; | ||
[[nodiscard]] LC_XIR_API LocalLoadEliminationInfo local_load_elimination_pass_run_on_module(Module *module) noexcept; | ||
|
||
}// namespace luisa::compute::xir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// | ||
// Created by mike on 1/10/25. | ||
// | ||
#include <luisa/xir/passes/local_load_elimination.h> | ||
|
||
namespace luisa::compute::xir { | ||
|
||
} |