commit | 87dbf3e31d5b2fb4fa66701ad01250947fef5363 | [log] [tgz] |
---|---|---|
author | Krzysztof Drewniak <Krzysztof.Drewniak@amd.com> | Thu Nov 18 21:45:27 2021 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 19 11:26:27 2021 -0800 |
tree | 363918332fe9acb863050dcc822bd9c56f649303 | |
parent | 5a7d219ec4d0f3c9d129c20788bdef1e8bee5e07 [diff] |
[MLIR][GPU] Run generic LLVM optimizations when serializing (on AMD) - Adds hooks that allow SerializeTo* passes to arbitrarily transform the produced LLVM Module before it is passed to the code generation passes. - Uses these hooks within the SerializeToHsaco pass in order to run LLVM optimizations and to set the optimization level on the TargetMachine. - Adds an optLevel parameter to SerializeToHsaco Future work may include moving much of what's been added to SerializeToHsaco to SerializeToBlob, but that would require confirmation from the NVVM backend maintainers that it would be appropriate to do so. Depends on D114107 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D114113 GitOrigin-RevId: bd22554af06e1f16dc9ff12eac8987f0ceebe8c1
See https://mlir.llvm.org/ for more information.