summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
diff options
context:
space:
mode:
authorJeff Niu <jeff@modular.com>2022-07-14 13:31:47 -0700
committerJeff Niu <jeff@modular.com>2022-07-14 13:32:13 -0700
commitb7f93c28096fc8503e4d2d80c43ee2c0ccce480f (patch)
tree31597ae54bf43b89ed139d0d8717073ae38ef024 /mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
parentedee61b55cf9f2b57d68ef8bcd8b5dcd3296ecab (diff)
downloadllvm-b7f93c28096fc8503e4d2d80c43ee2c0ccce480f.tar.gz
[mlir] (NFC) run clang-format on all files
Diffstat (limited to 'mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp')
-rw-r--r--mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp b/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
index b33db153c644..e1b1e7e93d65 100644
--- a/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
+++ b/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
@@ -133,16 +133,15 @@ SerializeToCubinPass::serializeISA(const std::string &isa) {
// Register pass to serialize GPU kernel functions to a CUBIN binary annotation.
void mlir::registerGpuSerializeToCubinPass() {
- PassRegistration<SerializeToCubinPass> registerSerializeToCubin(
- [] {
- // Initialize LLVM NVPTX backend.
- LLVMInitializeNVPTXTarget();
- LLVMInitializeNVPTXTargetInfo();
- LLVMInitializeNVPTXTargetMC();
- LLVMInitializeNVPTXAsmPrinter();
-
- return std::make_unique<SerializeToCubinPass>();
- });
+ PassRegistration<SerializeToCubinPass> registerSerializeToCubin([] {
+ // Initialize LLVM NVPTX backend.
+ LLVMInitializeNVPTXTarget();
+ LLVMInitializeNVPTXTargetInfo();
+ LLVMInitializeNVPTXTargetMC();
+ LLVMInitializeNVPTXAsmPrinter();
+
+ return std::make_unique<SerializeToCubinPass>();
+ });
}
#else // MLIR_GPU_TO_CUBIN_PASS_ENABLE
void mlir::registerGpuSerializeToCubinPass() {}