Skip to content

Commit 616df37

Browse files
committed
clang-format
1 parent 5317a2a commit 616df37

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

mlir/lib/Target/LLVM/NVVM/Target.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,7 @@ NVPTXSerializer::moduleToObject(llvm::Module &llvmModule) {
722722
#undef DEBUG_TYPE
723723

724724
// Return PTX if the compilation target is `assembly`.
725-
if (targetOptions.getCompilationTarget() ==
726-
gpu::CompilationTarget::Assembly)
725+
if (targetOptions.getCompilationTarget() == gpu::CompilationTarget::Assembly)
727726
return SmallVector<char, 0>(serializedISA->begin(), serializedISA->end());
728727

729728
std::optional<SmallVector<char, 0>> result;

mlir/unittests/Target/LLVM/SerializeNVVMTarget.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ TEST_F(MLIRTargetLLVMNVVM, SKIP_WITHOUT_NVPTX(SerializeNVVMToPTX)) {
129129
ASSERT_TRUE(!object->empty());
130130

131131
ASSERT_TRUE(
132-
StringRef(object->data(), object->size()).contains("nvvm_kernel"));
133-
ASSERT_TRUE(
134-
StringRef(object->data(), object->size()).count('\0') == 0);
135-
132+
StringRef(object->data(), object->size()).contains("nvvm_kernel"));
133+
ASSERT_TRUE(StringRef(object->data(), object->size()).count('\0') == 0);
136134
}
137135
}
138136

0 commit comments

Comments
 (0)