User Details
- User Since
- Jan 26 2023, 4:54 AM (35 w, 4 d)
Sat, Sep 9
Fri, Sep 8
Tue, Sep 5
Mon, Sep 4
Addressed comments.
Ping for review.
LGTM!
Aug 24 2023
Ok, the following patch also does the trick:
To avoid increasing binary size the following patch should be enough to fix the issue:
diff --git a/mlir/tools/mlir-opt/mlir-opt.cpp b/mlir/tools/mlir-opt/mlir-opt.cpp index b47634476c62..5cd1b40ea6c9 100644 --- a/mlir/tools/mlir-opt/mlir-opt.cpp +++ b/mlir/tools/mlir-opt/mlir-opt.cpp @@ -276,7 +276,14 @@ int main(int argc, char **argv) { DialectRegistry registry; registerAllDialects(registry); registerAllExtensions(registry); - registerAllToLLVMIRTranslations(registry); + + // TODO: Remove these when a more structured extension registration mechanism + // is added. + registerBuiltinDialectTranslation(registry); + registerGPUDialectTranslation(registry); + registerLLVMDialectTranslation(registry); + registerNVVMDialectTranslation(registry); + registerROCDLDialectTranslation(registry);
Aug 21 2023
Addressed comments. If this patch D158464 gets through, this diff will be repurposed to use the changes in the aforementioned diff.
Addressed comments.
Addressed comments.
Aug 19 2023
Aug 18 2023
This patch also solves the need to add registration calls for Target Attributes in Translation registration, see D157703.
Aug 15 2023
Updated the diff to resolve all the conflicts and additions created by pushing all the commits of the new GPU pipeline.
Aug 12 2023
Switched to a single call of std::move
Aug 11 2023
Fix patch application.
Separated gpu-module-to-binary test into 2 tests: nvvm & rocdl.
Also updated lit.cfg.py with:
Addressed the comments.
Moved passes to GPU.
Overall LGTM. My only concern is down-stream users having issues and don't knowing what's happening, because when those registration calls are removed from passes like gpu-to-cubin, they will fail.
Addressed the comments.
Removed private lib.
Rebasing.
Added an assert check for the attribute.
Note: The verifier will also verify that the dyn_cast is valid, as it's a precondition on the elements of the array.
Remove the promised interface, instead use OffloadingTranslationAttrTrait in SelectObjectAttr
and register the interface automatically with the GPUTranslationInterface.
Removing Ods prefix.
Update the gpu.binary attributes to use OffloadingTranslationAttrTrait
instead of OffloadingLLVMTranslationAttrInterface.
Add the OffloadingTranslationAttrTrait trait. This traits decouples gpu.binary op
from LLVM translation, making gpu.binary usable by other translation mechanisms like SPIRV.
Rebasing.
Aug 10 2023
Overall looks good to me, can you add a description & tests for MaxSIOp & MinUIOp?
Aug 9 2023
Ping for review. Solved merge conflicts.
Updated the docs with the comments.
Aug 8 2023
Fixed merge conflicts with D157183.
Changed the description of the CMake variable MLIR_ENABLE_NVPTXCOMPILER. Applied clang-format again.
Aug 7 2023
Adds a couple of syntax tests & fixes a bug not displaying the link option in the attribute.