Skip to content

Commit 2fc6f1e

Browse files
committed
Fix warnings
1 parent 9c076db commit 2fc6f1e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

lib/gc/Target/LLVM/GEN/Target.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class GenSerializer : public SerializeGPUModuleBase {
105105
gpu::GPUModuleOp getOperation();
106106

107107
std::optional<SmallVector<char, 0>>
108-
compileToBinary(const std::string &serializedISA);
108+
compileToBinary(const std::string &serializedSPV);
109109

110110
std::optional<SmallVector<char, 0>>
111111
moduleToObject(llvm::Module &llvmModule) override;

lib/gc/Target/LLVMIR/Dialect/GEN/GENToLLVMIRTranslation.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,8 @@ class GENDialectLLVMIRTranslationInterface
4949
auto func = dyn_cast<LLVM::LLVMFuncOp>(op);
5050
if (!func)
5151
return failure();
52-
llvm::LLVMContext &llvmContext = moduleTranslation.getLLVMContext();
53-
llvm::Function *llvmFunc = moduleTranslation.lookupFunction(func.getName());
54-
55-
if (attribute.getName() == gen::GENDialect::getKernelFuncAttrName()) {
56-
// todo; note: migth not need it as we'll have storage classes translated
57-
// already
58-
}
52+
// todo; note: migth not need it as we'll have storage classes translated
53+
// already
5954

6055
return success();
6156
}

0 commit comments

Comments
 (0)