-
Notifications
You must be signed in to change notification settings - Fork 70
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
78501f2
commit ee69bbf
Showing
7 changed files
with
488 additions
and
351 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,18 +1,29 @@ | ||
#pragma once | ||
|
||
#include <luisa/core/stl/unordered_map.h> | ||
|
||
namespace llvm { | ||
class Module; | ||
class LLVMContext; | ||
}// namespace llvm | ||
|
||
namespace luisa::compute::xir { | ||
class PrintInst; | ||
class Module; | ||
}// namespace luisa::compute::xir | ||
|
||
namespace luisa::compute::fallback { | ||
|
||
void luisa_fallback_backend_codegen(llvm::LLVMContext &llvm_ctx, | ||
llvm::Module *llvm_module, | ||
const xir::Module *module) noexcept; | ||
struct FallbackCodeGenFeedback { | ||
using PrintInstMap = luisa::vector<std::pair< | ||
const xir::PrintInst *, | ||
luisa::string /* llvm symbol */>>; | ||
PrintInstMap print_inst_map; | ||
}; | ||
|
||
[[nodiscard]] FallbackCodeGenFeedback | ||
luisa_fallback_backend_codegen(llvm::LLVMContext &llvm_ctx, | ||
llvm::Module *llvm_module, | ||
const xir::Module *module) noexcept; | ||
|
||
}// namespace luisa::compute::fallback |
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
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
Oops, something went wrong.